diff options
Diffstat (limited to 'src/view')
-rw-r--r-- | src/view/MainBuilder.php | 5 | ||||
-rw-r--r-- | src/view/templates/modify_block.php | 2 |
2 files changed, 6 insertions, 1 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'; |
diff --git a/src/view/templates/modify_block.php b/src/view/templates/modify_block.php index b44327f..1d097e0 100644 --- a/src/view/templates/modify_block.php +++ b/src/view/templates/modify_block.php | |||
@@ -30,7 +30,7 @@ if($child_node->getName() === 'news_block'){ | |||
30 | </div> | 30 | </div> |
31 | <?php | 31 | <?php |
32 | } | 32 | } |
33 | if($child_node->getNodeData()->getPresentation() !== null){ | 33 | if(Blocks::hasPresentation($child_node->getName())){ |
34 | ?> | 34 | ?> |
35 | <div class="grid_options"> | 35 | <div class="grid_options"> |
36 | <div> | 36 | <div> |