diff options
Diffstat (limited to 'src/view/MainBuilder.php')
-rw-r--r-- | src/view/MainBuilder.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/MainBuilder.php b/src/view/MainBuilder.php index e4f91f3..a04130a 100644 --- a/src/view/MainBuilder.php +++ b/src/view/MainBuilder.php | |||
@@ -75,6 +75,11 @@ class MainBuilder extends AbstractBuilder | |||
75 | if($child_node->getName() === 'news_block'){ | 75 | if($child_node->getName() === 'news_block'){ |
76 | $order = $child_node->getNodeData()->getChronoOrder() ? 'chrono' : 'antichrono'; | 76 | $order = $child_node->getNodeData()->getChronoOrder() ? 'chrono' : 'antichrono'; |
77 | } | 77 | } |
78 | |||
79 | // présentation par défaut | ||
80 | if(Blocks::hasPresentation($child_node->getName()) && $child_node->getNodeData()->getPresentation() === null){ | ||
81 | $child_node->getNodeData()->setPresentation('full_width'); // pas de persistence ici | ||
82 | } | ||
78 | 83 | ||
79 | ob_start(); | 84 | ob_start(); |
80 | require self::VIEWS_PATH . 'modify_block.php'; | 85 | require self::VIEWS_PATH . 'modify_block.php'; |