diff --git a/module/news/news.php b/module/news/news.php index 24d14f18..2e4aa1be 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -60,6 +60,12 @@ class news extends common { ]; public static $nbrCol = 1; + public static $ItemsHeight = [ + '200px' => 'Petit', + '300px' => 'Moyen', + '400px' => 'Grand' + ]; + /** * Mise à jour du module @@ -178,6 +184,7 @@ class news extends common { 'feedsLabel' => $this->getInput('newsConfigFeedslabel',helper::FILTER_STRING_SHORT), 'itemsperPage' => $this->getInput('newsConfigItemsperPage', helper::FILTER_INT,true), 'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true), + 'itemsHeight' => $this->getInput('newsConfigItemsHeight',helper::FILTER_STRING_SHORT), 'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']) ]]); // Valeurs en sortie diff --git a/module/news/view/config/config.php b/module/news/view/config/config.php index 3a93e4b6..b9cee0bd 100755 --- a/module/news/view/config/config.php +++ b/module/news/view/config/config.php @@ -39,19 +39,25 @@
-
+
'Pagination', 'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperCol']), 'help' => 'Nombre de colonnes par page' ]); ?>
-
+
'Articles par page', 'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsperPage']) ]); ?>
+
+ 'Hauteur', + 'selected' => $this->getData(['module', $this->getUrl(0),'config', 'itemsHeight']) + ]); ?> +
diff --git a/module/news/view/index/index.css b/module/news/view/index/index.css index e4ee7175..195d1a4e 100755 --- a/module/news/view/index/index.css +++ b/module/news/view/index/index.css @@ -21,6 +21,10 @@ background-color: #ECEFF1; padding:5px; }*/ +.newsContent { + overflow: hidden; /* les dépassements seront masqués */ +} + .newsContent { clear: left; @@ -65,4 +69,5 @@ .col2 {width: 100%;} .col3 {width: 100%;} .col4 {width: 100%;} -} \ No newline at end of file +} + diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index e1d85f49..6da77b3e 100755 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -1,11 +1,11 @@
$news): ?> -
+

-
+