diff options
| author | polo <ordipolo@gmx.fr> | 2025-09-01 18:52:17 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-09-01 18:52:17 +0200 |
| commit | f477314613beb26b0ce4c61ec0b1900df1de1cb1 (patch) | |
| tree | d41ace78a572a11887e7cfa2611c3f02fb04e51c /src/view/PostBlockBuilder.php | |
| parent | e642cd51d7e8599537f8514bef8d5d16096dddf8 (diff) | |
| download | cms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.tar.gz cms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.tar.bz2 cms-f477314613beb26b0ce4c61ec0b1900df1de1cb1.zip | |
renommage des présentations,modif présentation des blocs et largeur min (donc nb de colonnes) en mode grid, corrections de bugs et erreurs 404, le param page_modif n'est plus une action, légère symfonyfication du routeur
Diffstat (limited to 'src/view/PostBlockBuilder.php')
| -rw-r--r-- | src/view/PostBlockBuilder.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/view/PostBlockBuilder.php b/src/view/PostBlockBuilder.php index 6ec91f7..8ad0498 100644 --- a/src/view/PostBlockBuilder.php +++ b/src/view/PostBlockBuilder.php | |||
| @@ -21,11 +21,12 @@ class PostBlockBuilder extends AbstractBuilder | |||
| 21 | extract($node->getNodeData()->getData()); | 21 | extract($node->getNodeData()->getData()); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | $presentation = $node->getNodeData()->getPresentation()->getName(); // affichage list ou grid | 24 | // stratégie d'affichage du contenu (utilisation de méthodes ou de classe List, GridPresentation, etc) |
| 25 | 25 | $section_class = $node->getNodeData()->getPresentation()->getName(); // = list, grid , mosaic ou carousel | |
| 26 | // exécution de la stratégie (utilisation de méthodes ou de classe List, Grid, CarouselPresentation) | 26 | if($section_class === 'grid'){ |
| 27 | $section_class = $presentation; | 27 | $min_width = (string)$node->getNodeData()->getColsMinWidth(); |
| 28 | $section_child_class = $presentation === 'grid' ? 'grid_columns' : ''; | 28 | $cols_min_width = 'grid-template-columns: repeat(auto-fit, minmax(' . $min_width . 'px, 1fr));'; |
| 29 | } | ||
| 29 | 30 | ||
| 30 | // ajouter un article | 31 | // ajouter un article |
| 31 | $new_article = ''; | 32 | $new_article = ''; |
