diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
| commit | f0d1cd5d68579b462cf01a4a9f7d558a231bc072 (patch) | |
| tree | 2769cef714275d86781a46c2d1f1a8981e3b4bcf /src/installation.php | |
| parent | 44f4110d53f58086b17d17afe81b0da0978d2a29 (diff) | |
| download | cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.tar.gz cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.tar.bz2 cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.zip | |
description de page déplacée dans la table page
Diffstat (limited to 'src/installation.php')
| -rw-r--r-- | src/installation.php | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/installation.php b/src/installation.php index 452df60..dd0ca77 100644 --- a/src/installation.php +++ b/src/installation.php | |||
| @@ -90,13 +90,13 @@ HTACCESS; | |||
| 90 | function makeStartPage(EntityManager $entityManager){ | 90 | function makeStartPage(EntityManager $entityManager){ |
| 91 | /* -- table page -- */ | 91 | /* -- table page -- */ |
| 92 | // paramètres: name_page, end_of_path, reachable, in_menu, hidden, position, parent | 92 | // paramètres: name_page, end_of_path, reachable, in_menu, hidden, position, parent |
| 93 | $accueil = new Page('Accueil', 'accueil', true, true, false, 1, NULL); | 93 | $accueil = new Page('Accueil', 'accueil', "Page d'accueil", true, true, false, 1, NULL); |
| 94 | $article = new Page('Article', 'article', true, false, false, NULL, NULL); | 94 | $article = new Page('Article', 'article', "", true, false, false, NULL, NULL); |
| 95 | $connection = new Page('Connexion', 'connection', true, false, false, NULL, NULL); | 95 | $connection = new Page('Connexion', 'connection', "Connexion", true, false, false, NULL, NULL); |
| 96 | $my_account = new Page('Mon compte', 'user_edit', true, false, false, NULL, NULL); | 96 | $my_account = new Page('Mon compte', 'user_edit', "Mon compte", true, false, false, NULL, NULL); |
| 97 | $menu_paths = new Page("Menu et chemins", 'menu_chemins', true, false, false, NULL, NULL); | 97 | $menu_paths = new Page("Menu et chemins", 'menu_chemins', "Menu et chemins", true, false, false, NULL, NULL); |
| 98 | //$edit_page = new Page("Modification d'une page", 'modif_page', true, false, false, NULL, NULL); // pas de page "Modification de la page" | 98 | //$edit_page = new Page("Modification d'une page", 'modif_page', '', true, false, false, NULL, NULL); // hypothétique page "Modification de la page" |
| 99 | $new_page = new Page('Nouvelle page', 'nouvelle_page', true, false, false, NULL, NULL); | 99 | $new_page = new Page('Nouvelle page', 'nouvelle_page', "Nouvelle page", true, false, false, NULL, NULL); |
| 100 | 100 | ||
| 101 | /* -- table node -- */ | 101 | /* -- table node -- */ |
| 102 | // paramètres: name_node, article_timestamp, attributes, position, parent, page, article | 102 | // paramètres: name_node, article_timestamp, attributes, position, parent, page, article |
| @@ -126,15 +126,15 @@ function makeStartPage(EntityManager $entityManager){ | |||
| 126 | 126 | ||
| 127 | /* -- table node_data -- */ | 127 | /* -- table node_data -- */ |
| 128 | // paramètres: data, node, images | 128 | // paramètres: data, node, images |
| 129 | $head_accueil_data = new NodeData(["description" => "Page d'accueil"], $head_accueil, new ArrayCollection([$favicon])); | 129 | $head_accueil_data = new NodeData([], $head_accueil, new ArrayCollection([$favicon])); |
| 130 | $head_login_data = new NodeData(["description" => "Connexion"], $head_login, new ArrayCollection([$favicon])); | 130 | $head_login_data = new NodeData([], $head_login, new ArrayCollection([$favicon])); |
| 131 | $head_my_account_data = new NodeData(["description" => "Mon compte"], $head_my_account, new ArrayCollection([$favicon])); | 131 | $head_my_account_data = new NodeData([], $head_my_account, new ArrayCollection([$favicon])); |
| 132 | $head_article_data = new NodeData(["description" => ""], $head_article, new ArrayCollection([$favicon])); | 132 | $head_article_data = new NodeData([], $head_article, new ArrayCollection([$favicon])); |
| 133 | $head_edit_menu_data = new NodeData(["description" => "Menu et chemins"], $head_edit_menu, new ArrayCollection([$favicon])); | 133 | $head_edit_menu_data = new NodeData([], $head_edit_menu, new ArrayCollection([$favicon])); |
| 134 | $head_new_page_data = new NodeData(["description" => "Nouvelle page"], $head_new_page, new ArrayCollection([$favicon])); | 134 | $head_new_page_data = new NodeData([], $head_new_page, new ArrayCollection([$favicon])); |
| 135 | $header_data = new NodeData(["title" => "Titre", "description" => "Sous-titre", "header_logo" => "assets/logo-nb-et-ffn.png", "header_background" => "assets/fond-piscine.jpg", | 135 | $header_data = new NodeData(["title" => "Titre", "description" => "Sous-titre", "header_logo" => "assets/logo-nb-et-ffn.png", "header_background" => "assets/fond-piscine.jpg", |
| 136 | "social" => ["facebook" => "https://www.facebook.com", "instagram" => "https://www.instagram.com", "linkedin" => "https://www.linkedin.com"]], | 136 | "social" => ["facebook" => "https://www.facebook.com", "instagram" => "https://www.instagram.com", "linkedin" => "https://www.linkedin.com"]], |
| 137 | $header, new ArrayCollection([$facebook, $instagram, $linkedin, $github])); | 137 | $header, new ArrayCollection([$facebook, $instagram, $linkedin, $github])); |
| 138 | $footer_data = new NodeData(["contact_nom" => "Nom", "adresse" => "adresse", "e_mail" => "e-mail", "footer_logo" => "assets/logo-nb-et-ffn.png"], $footer); | 138 | $footer_data = new NodeData(["contact_nom" => "Nom", "adresse" => "adresse", "e_mail" => "e-mail", "footer_logo" => "assets/logo-nb-et-ffn.png"], $footer); |
| 139 | 139 | ||
| 140 | /* -- table page -- */ | 140 | /* -- table page -- */ |
| @@ -143,7 +143,7 @@ function makeStartPage(EntityManager $entityManager){ | |||
| 143 | $entityManager->persist($connection); | 143 | $entityManager->persist($connection); |
| 144 | $entityManager->persist($my_account); | 144 | $entityManager->persist($my_account); |
| 145 | $entityManager->persist($menu_paths); | 145 | $entityManager->persist($menu_paths); |
| 146 | //$entityManager->persist($edit_page); // pas de page "Modification de la page" | 146 | //$entityManager->persist($edit_page); // hypothétique page "Modification de la page" |
| 147 | $entityManager->persist($new_page); | 147 | $entityManager->persist($new_page); |
| 148 | 148 | ||
| 149 | /* -- table node -- */ | 149 | /* -- table node -- */ |
