diff options
author | polo <ordipolo@gmx.fr> | 2025-05-12 22:29:51 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-05-12 22:29:51 +0200 |
commit | 2900691707ff5f5b39306db8b405d08a33f5b019 (patch) | |
tree | 6001253ad36088235c3645f6d21a58f4ec3061ae /src | |
parent | 8b27600f86d3df03a47e980a5cfe95ebc3b19919 (diff) | |
download | cms-2900691707ff5f5b39306db8b405d08a33f5b019.zip |
logo linkedin + corrections d'erreurs
Diffstat (limited to 'src')
-rw-r--r-- | src/controller/installation.php | 3 | ||||
-rw-r--r-- | src/view/HeaderBuilder.php | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/controller/installation.php b/src/controller/installation.php index a8e427c..37d1c3b 100644 --- a/src/controller/installation.php +++ b/src/controller/installation.php | |||
@@ -106,12 +106,13 @@ function makeStartPage(EntityManager $entityManager){ | |||
106 | $logo = new Image("logo-120x75.jpg", NULL, "assets/logo-120x75.jpg", "image/png", "head_logo"); | 106 | $logo = new Image("logo-120x75.jpg", NULL, "assets/logo-120x75.jpg", "image/png", "head_logo"); |
107 | $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); | 107 | $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); |
108 | $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); | 108 | $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); |
109 | $linkedin = new Image("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin"); | ||
109 | $fond_piscine = new Image("fond-piscine.jpg", "assets/fond-piscine.jpg", NULL, "images/jpg", "fond-piscine"); | 110 | $fond_piscine = new Image("fond-piscine.jpg", "assets/fond-piscine.jpg", NULL, "images/jpg", "fond-piscine"); |
110 | 111 | ||
111 | /* -- table node_data -- */ | 112 | /* -- table node_data -- */ |
112 | // paramètres: data, node, images | 113 | // paramètres: data, node, images |
113 | $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens"], $head_accueil, new ArrayCollection([$favicon])); | 114 | $head_accueil_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens"], $head_accueil, new ArrayCollection([$favicon])); |
114 | $header_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "title" => "Les Nageurs Bigoudens", "facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"], $header, new ArrayCollection([$logo, $facebook, $instagram, $fond_piscine])); | 115 | $header_data = new NodeData(["description" => "Club, École de natation et Perfectionnement", "social" => ["title" => "Les Nageurs Bigoudens", "facebook_link" => "https://www.facebook.com/nageursbigoudens29120", "instagram_link" => "https://www.instagram.com/nageursbigoudens/"]], $header, new ArrayCollection([$logo, $facebook, $instagram, $linkedin, $fond_piscine])); |
115 | $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); | 116 | $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); |
116 | $head_login_data = new NodeData(["description" => "Connexion", "title" => "Connexion"], $head_login, new ArrayCollection([$favicon])); | 117 | $head_login_data = new NodeData(["description" => "Connexion", "title" => "Connexion"], $head_login, new ArrayCollection([$favicon])); |
117 | $head_article_data = new NodeData(["description" => "", "title" => ""], $head_article, new ArrayCollection([$favicon])); | 118 | $head_article_data = new NodeData(["description" => "", "title" => ""], $head_article, new ArrayCollection([$favicon])); |
diff --git a/src/view/HeaderBuilder.php b/src/view/HeaderBuilder.php index de824a0..b49b24c 100644 --- a/src/view/HeaderBuilder.php +++ b/src/view/HeaderBuilder.php | |||
@@ -57,7 +57,7 @@ class HeaderBuilder extends AbstractBuilder | |||
57 | { | 57 | { |
58 | if(str_contains($image->getFileName(), $keys[$i])){ | 58 | if(str_contains($image->getFileName(), $keys[$i])){ |
59 | $social_networks .= '<a href="' . $social[$keys[$i]] . '" target="_blank" rel="noopener noreferrer"> | 59 | $social_networks .= '<a href="' . $social[$keys[$i]] . '" target="_blank" rel="noopener noreferrer"> |
60 | <img src="' . rtrim($image->getFilePathMini(), '/') . '" alt="' . $social[$keys[$i]] . '_alt"></a>'; | 60 | <img src="' . rtrim($image->getFilePathMini(), '/') . '" alt="' . $keys[$i] . '_alt"></a>'; |
61 | break; | 61 | break; |
62 | } | 62 | } |
63 | if(str_contains($image->getFileName(), 'logo')) | 63 | if(str_contains($image->getFileName(), 'logo')) |