aboutsummaryrefslogtreecommitdiff
path: root/src/installation.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2025-08-26 01:15:33 +0200
committerpolo <ordipolo@gmx.fr>2025-08-26 01:15:33 +0200
commitf4df3e9b9df3d54ce58796f923da70ff7e566018 (patch)
treebbd037099976d0411533823b26a34949d04f286c /src/installation.php
parentb02b44d1da7e9ddd7a341d29a597accfbb78155c (diff)
downloadcms-f4df3e9b9df3d54ce58796f923da70ff7e566018.zip
séparation bloc / mise en page, bloc spécial pour les actus, renommage de classes, fichiers, etc
Diffstat (limited to 'src/installation.php')
-rw-r--r--src/installation.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/installation.php b/src/installation.php
index 5adb697..dd3aa35 100644
--- a/src/installation.php
+++ b/src/installation.php
@@ -7,6 +7,7 @@ use App\Entity\Page;
7use App\Entity\Node; 7use App\Entity\Node;
8use App\Entity\NodeData; 8use App\Entity\NodeData;
9use App\Entity\Image; 9use App\Entity\Image;
10use App\Entity\Presentation;
10use Doctrine\Common\Collections\ArrayCollection; 11use Doctrine\Common\Collections\ArrayCollection;
11use Doctrine\ORM\EntityManager; 12use Doctrine\ORM\EntityManager;
12 13
@@ -116,6 +117,10 @@ function makeStartPage(EntityManager $entityManager){
116 $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL); 117 $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL);
117 $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL); 118 $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL);
118 119
120 /* -- table presentation -- */
121 $list = new Presentation('list');
122 $grid = new Presentation('grid');
123
119 /* -- table image -- */ 124 /* -- table image -- */
120 // paramètres: file_name, file_path, file_path_mini, mime_type, alt 125 // paramètres: file_name, file_path, file_path_mini, mime_type, alt
121 $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon"); 126 $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon");
@@ -162,6 +167,10 @@ function makeStartPage(EntityManager $entityManager){
162 $entityManager->persist($bloc_edit_menu); 167 $entityManager->persist($bloc_edit_menu);
163 $entityManager->persist($head_new_page); 168 $entityManager->persist($head_new_page);
164 $entityManager->persist($bloc_new_page); 169 $entityManager->persist($bloc_new_page);
170
171 /* -- table presentation -- */
172 $entityManager->persist($list);
173 $entityManager->persist($grid);
165 174
166 /* -- table image -- */ 175 /* -- table image -- */
167 $entityManager->persist($favicon); 176 $entityManager->persist($favicon);