diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 091e1d5a..4deebb03 100755 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -1,17 +1,17 @@ - - getData(['module', $this->getUrl(0), 'config', 'feeds'])) : ?> -
- - - getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) ? '

' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '

' : ''; - ?> -
-
- +getData(['module', $this->getUrl(0), 'config', 'feeds'])): ?> +
+ + + getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) ? '

' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '

' : ''; + ?> +
+
+ +
- $article) : ?> - getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) === 0) : ?> + $article): ?> + getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) === 0): ?>

@@ -25,9 +25,9 @@
- signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> + signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> - getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])) . ' - ' . helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])); ?> + getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])) . ' - ' . helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])); ?>

@@ -35,8 +35,8 @@ getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture']) && file_exists(self::FILE_DIR . 'source/' . $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])) - ) : ?> - getData(['module', $this->getUrl(0), 'posts', $articleId, 'pictureSize']) === null ? '100' : $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'pictureSize']); ?> + ): ?> + getData(['module', $this->getUrl(0), 'posts', $articleId, 'pictureSize']) === null ? '100' : $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'pictureSize']); ?> getData(['module', $this->getUrl(0), 'posts', $articleId, 'hidePicture']) == false) { echo 'getUrl(0) . '/edit/' . $articleId . '/' . $_SESSION['csrf']; ?>"> + ): ?> + Éditer
- getData(['module', $this->getUrl(0), 'posts', $articleId, 'commentClose'])) : ?> + getData(['module', $this->getUrl(0), 'posts', $articleId, 'commentClose'])): ?>

Cet article ne reçoit pas de commentaire.

- +

'right']); ?> 1 ? 's' : ''); echo ''; } else { - echo 'Pas encore de commentaire'; + echo 'Pas encore de commentaire'; } ?>

- +
+ ): ?>
getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])); - $thumb = 'mini_' . $parts['basename']; - // Créer la miniature si manquante - if (!file_exists(self::FILE_DIR . 'thumb/' . $thumb)) { - $this->makeThumb( - self::FILE_DIR . 'source/' . $article['picture'], - self::FILE_DIR . 'thumb/' . $thumb, - self::THUMBS_WIDTH - ); - } - ?> + $parts = pathinfo($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'picture'])); + $thumb = 'mini_' . $parts['basename']; + // Créer la miniature si manquante + if (!file_exists(self::FILE_DIR . 'thumb/' . $thumb)) { + $this->makeThumb( + self::FILE_DIR . 'source/' . $article['picture'], + self::FILE_DIR . 'thumb/' . $thumb, + self::THUMBS_WIDTH + ); + } + ?> - <?php echo $article['picture']; ?> + <?php echo $article['picture']; ?>
- +

@@ -129,30 +131,30 @@

- + 'left']); ?>
- - - signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId']));?> - - getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])) . ' - ' . helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])); ?> + + + signature($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'userId'])); ?> + + getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])) . ' - ' . helper::dateUTF8($module::$timeFormat, $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'publishedOn'])); ?>

- getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) : 500 ?> + getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) !== 0 ? $this->getData(['module', $this->getUrl(0), 'config', 'articlesLenght']) : 500 ?>

'), 0, $lenght); ?>... Lire la suite

-
- - +
+ +
- + \ No newline at end of file