diff options
Diffstat (limited to 'src/view/NewsBlockBuilder.php')
-rw-r--r-- | src/view/NewsBlockBuilder.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/NewsBlockBuilder.php b/src/view/NewsBlockBuilder.php index 4716c63..76e42c5 100644 --- a/src/view/NewsBlockBuilder.php +++ b/src/view/NewsBlockBuilder.php | |||
@@ -23,9 +23,10 @@ class NewsBlockBuilder extends AbstractBuilder | |||
23 | 23 | ||
24 | // stratégie d'affichage du contenu (utilisation de méthodes ou de classe List, GridPresentation, etc) | 24 | // stratégie d'affichage du contenu (utilisation de méthodes ou de classe List, GridPresentation, etc) |
25 | $section_class = $node->getNodeData()->getPresentation()->getName(); // = list, grid , mosaic ou carousel | 25 | $section_class = $node->getNodeData()->getPresentation()->getName(); // = list, grid , mosaic ou carousel |
26 | $cols_min_width = ''; | ||
26 | if($section_class === 'grid'){ | 27 | if($section_class === 'grid'){ |
27 | $min_width = (string)$node->getNodeData()->getColsMinWidth(); | 28 | $min_width = $node->getNodeData()->getColsMinWidth(); |
28 | $cols_min_width = 'grid-template-columns: repeat(auto-fit, minmax(' . $min_width . 'px, 1fr));'; | 29 | $cols_min_width = 'grid-template-columns: repeat(auto-fit, minmax(' . (string)$min_width . 'px, 1fr));'; |
29 | } | 30 | } |
30 | 31 | ||
31 | // ajouter un article | 32 | // ajouter un article |