From 630a63185ad87ea5d5d7ef8c1a01404d95dd4862 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 7 Apr 2020 10:17:42 +0200 Subject: [PATCH] [10.0.058] Miniature du blog --- core/core.php | 2 +- module/blog/view/index/index.php | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index f4211823..5ce4cb33 100644 --- a/core/core.php +++ b/core/core.php @@ -37,7 +37,7 @@ class common { const THUMBS_WIDTH = 320; // Numéro de version - const ZWII_VERSION = '10.0.057'; + const ZWII_VERSION = '10.0.058'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index e5861540..05b283c6 100644 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -4,8 +4,20 @@ $article): ?>
+ makeThumb( self::FILE_DIR . 'source/' . $article['picture'], + self::FILE_DIR . 'thumb/' . $thumb, + self::THUMBS_WIDTH); + } + + ?> - <?php echo $article['picture']; ?> + <?php echo $article['picture']; ?>