getName() . '.php'; if(file_exists($viewFile)) { if(!empty($node->getNodeData()->getData())) { extract($node->getNodeData()->getData()); } // ajouter un article $new_article = ''; $new_article_admin_buttons = ''; if($_SESSION['admin']) { $id = 'new'; //$link = new URL(['page' => CURRENT_PAGE, 'action' => 'open_editor']); $js = 'onclick="openEditor(\'' . $id . '\')"'; //$new_article = '
'; $new_article = '

' . "\n" . '

'; $close_js = 'onclick="closeEditor(\'' . $id . '\')"'; $close_editor = '
'; $submit_js = 'onclick="submitArticle(\'' . $id . '\')"'; $submit_article = '
'; $new_article_admin_buttons = $close_editor . $submit_article; } $this->useChildrenBuilder($node); $content = $this->html; ob_start(); require $viewFile; $this->html = ob_get_clean(); // pas de concaténation ici, on écrase } } }