diff options
Diffstat (limited to 'src/controller/installation.php')
-rw-r--r-- | src/controller/installation.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/controller/installation.php b/src/controller/installation.php index 5cfae45..acb87f1 100644 --- a/src/controller/installation.php +++ b/src/controller/installation.php | |||
@@ -115,22 +115,22 @@ function makeStartPage(EntityManager $entityManager){ | |||
115 | /* -- table image -- */ | 115 | /* -- table image -- */ |
116 | // paramètres: file_name, file_path, file_path_mini, mime_type, alt | 116 | // paramètres: file_name, file_path, file_path_mini, mime_type, alt |
117 | $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon"); | 117 | $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon"); |
118 | $logo = new Image("logo-nb-et-ffn.png", NULL, "assets/logo-nb-et-ffn.png", "image/png", "head_logo"); | ||
119 | $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); | 118 | $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); |
120 | $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); | 119 | $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); |
121 | $linkedin = new Image("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin"); | 120 | $linkedin = new Image("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin"); |
122 | $github = new Image("github.svg", NULL, "assets/github.svg", "image/svg+xml", "github"); | 121 | $github = new Image("github.svg", NULL, "assets/github.svg", "image/svg+xml", "github"); |
123 | $fond_piscine = new Image("fond-piscine.jpg", "assets/fond-piscine.jpg", NULL, "images/jpg", "fond-piscine"); | ||
124 | 122 | ||
125 | /* -- table node_data -- */ | 123 | /* -- table node_data -- */ |
126 | // paramètres: data, node, images | 124 | // paramètres: data, node, images |
127 | $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement"], $head_accueil, new ArrayCollection([$favicon])); | 125 | $head_accueil_data = new NodeData(["description" => "page d'accueil"], $head_accueil, new ArrayCollection([$favicon])); |
128 | $head_login_data = new NodeData(["description" => "Connexion"], $head_login, new ArrayCollection([$favicon])); | 126 | $head_login_data = new NodeData(["description" => "Connexion"], $head_login, new ArrayCollection([$favicon])); |
129 | $head_article_data = new NodeData(["description" => ""], $head_article, new ArrayCollection([$favicon])); | 127 | $head_article_data = new NodeData(["description" => ""], $head_article, new ArrayCollection([$favicon])); |
130 | $head_edit_menu_data = new NodeData(["description" => "Menu et chemins"], $head_edit_menu, new ArrayCollection([$favicon])); | 128 | $head_edit_menu_data = new NodeData(["description" => "Menu et chemins"], $head_edit_menu, new ArrayCollection([$favicon])); |
131 | $head_new_page_data = new NodeData(["description" => "Nouvelle page"], $head_new_page, new ArrayCollection([$favicon])); | 129 | $head_new_page_data = new NodeData(["description" => "Nouvelle page"], $head_new_page, new ArrayCollection([$favicon])); |
132 | $header_data = new NodeData(["title" => "Les Nageurs Bigoudens", "description" => "Club, École de natation et Perfectionnement", "social" => ["facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"]], $header, new ArrayCollection([$logo, $facebook, $instagram, $linkedin, $github, $fond_piscine])); | 130 | $header_data = new NodeData(["title" => "Titre", "description" => "Sous-titre", "header_logo" => "assets/logo-nb-et-ffn.png", "header_background" => "assets/fond-piscine.jpg", |
133 | $footer_data = new NodeData(["adresse" => "17, rue Raymonde Folgoas Guillou, 29120 Pont-l’Abbé", "contact_nom" => "Les Nageurs Bigoudens", "e_mail" => "nb.secretariat@orange.fr", "logo_footer" => "assets/logo-nb-et-ffn.png"], $footer); | 131 | "social" => ["facebook" => "https://www.facebook.com", "instagram" => "https://www.instagram.com", "linkedin" => "https://www.linkedin.com"]], |
132 | $header, new ArrayCollection([$facebook, $instagram, $linkedin, $github])); | ||
133 | $footer_data = new NodeData(["contact_nom" => "Nom", "adresse" => "adresse", "e_mail" => "e-mail", "footer_logo" => "assets/logo-nb-et-ffn.png"], $footer); | ||
134 | 134 | ||
135 | /* -- table page -- */ | 135 | /* -- table page -- */ |
136 | $entityManager->persist($accueil); | 136 | $entityManager->persist($accueil); |
@@ -157,12 +157,10 @@ function makeStartPage(EntityManager $entityManager){ | |||
157 | 157 | ||
158 | /* -- table image -- */ | 158 | /* -- table image -- */ |
159 | $entityManager->persist($favicon); | 159 | $entityManager->persist($favicon); |
160 | $entityManager->persist($logo); | ||
161 | $entityManager->persist($facebook); | 160 | $entityManager->persist($facebook); |
162 | $entityManager->persist($instagram); | 161 | $entityManager->persist($instagram); |
163 | $entityManager->persist($linkedin); | 162 | $entityManager->persist($linkedin); |
164 | $entityManager->persist($github); | 163 | $entityManager->persist($github); |
165 | $entityManager->persist($fond_piscine); | ||
166 | 164 | ||
167 | /* -- table node_data -- */ | 165 | /* -- table node_data -- */ |
168 | $entityManager->persist($head_accueil_data); | 166 | $entityManager->persist($head_accueil_data); |