getName() . '.php'; // = news_block.php, actuellement identique à post_block.php if(file_exists($viewFile)) { if(!empty($node->getNodeData()->getData())) { extract($node->getNodeData()->getData()); } // stratégie d'affichage du contenu (utilisation de méthodes ou de classe List, GridPresentation, etc) $section_class = $node->getNodeData()->getPresentation(); // = list, grid , mosaic ou carousel $cols_min_width = ''; if($section_class === 'grid'){ $min_width = $node->getNodeData()->getColsMinWidth(); $cols_min_width = 'grid-template-columns: repeat(auto-fit, minmax(' . (string)$min_width . 'px, 1fr));'; } // ajouter un article $new_article = ''; if($_SESSION['admin']) { $id = 'n' . $this->id_node; $share_button = '
'; $new_button = ''; $modify_js = 'onclick="openEditor(\'' . $id . '\')"'; $modify_article = '