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 | |
parent | 8b27600f86d3df03a47e980a5cfe95ebc3b19919 (diff) | |
download | cms-2900691707ff5f5b39306db8b405d08a33f5b019.zip |
logo linkedin + corrections d'erreurs
-rw-r--r-- | public/assets/linkedin-nb.svg | 1 | ||||
-rw-r--r-- | public/assets/linkedin.svg | 37 | ||||
-rw-r--r-- | src/controller/installation.php | 3 | ||||
-rw-r--r-- | src/view/HeaderBuilder.php | 2 |
4 files changed, 41 insertions, 2 deletions
diff --git a/public/assets/linkedin-nb.svg b/public/assets/linkedin-nb.svg new file mode 100644 index 0000000..42449fc --- /dev/null +++ b/public/assets/linkedin-nb.svg | |||
@@ -0,0 +1 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.3362 18.339H15.6707V14.1622C15.6707 13.1662 15.6505 11.8845 14.2817 11.8845C12.892 11.8845 12.6797 12.9683 12.6797 14.0887V18.339H10.0142V9.75H12.5747V10.9207H12.6092C12.967 10.2457 13.837 9.53325 15.1367 9.53325C17.8375 9.53325 18.337 11.3108 18.337 13.6245V18.339H18.3362ZM7.00373 8.57475C6.14573 8.57475 5.45648 7.88025 5.45648 7.026C5.45648 6.1725 6.14648 5.47875 7.00373 5.47875C7.85873 5.47875 8.55173 6.1725 8.55173 7.026C8.55173 7.88025 7.85798 8.57475 7.00373 8.57475ZM8.34023 18.339H5.66723V9.75H8.34023V18.339ZM19.6697 3H4.32923C3.59498 3 3.00098 3.5805 3.00098 4.29675V19.7033C3.00098 20.4202 3.59498 21 4.32923 21H19.6675C20.401 21 21.001 20.4202 21.001 19.7033V4.29675C21.001 3.5805 20.401 3 19.6675 3H19.6697Z"></path></svg> \ No newline at end of file | |||
diff --git a/public/assets/linkedin.svg b/public/assets/linkedin.svg new file mode 100644 index 0000000..0cb2381 --- /dev/null +++ b/public/assets/linkedin.svg | |||
@@ -0,0 +1,37 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | <svg | ||
3 | viewBox="0 0 24 24" | ||
4 | fill="currentColor" | ||
5 | version="1.1" | ||
6 | id="svg1" | ||
7 | sodipodi:docname="linkedin-nb.svg" | ||
8 | inkscape:version="1.4.1 (93de688d07, 2025-03-30)" | ||
9 | xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" | ||
10 | xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" | ||
11 | xmlns="http://www.w3.org/2000/svg" | ||
12 | xmlns:svg="http://www.w3.org/2000/svg"> | ||
13 | <defs | ||
14 | id="defs1" /> | ||
15 | <sodipodi:namedview | ||
16 | id="namedview1" | ||
17 | pagecolor="#ffffff" | ||
18 | bordercolor="#000000" | ||
19 | borderopacity="0.25" | ||
20 | inkscape:showpageshadow="2" | ||
21 | inkscape:pageopacity="0.0" | ||
22 | inkscape:pagecheckerboard="0" | ||
23 | inkscape:deskcolor="#d1d1d1" | ||
24 | inkscape:zoom="10.166667" | ||
25 | inkscape:cx="12" | ||
26 | inkscape:cy="12.04918" | ||
27 | inkscape:window-width="1916" | ||
28 | inkscape:window-height="1032" | ||
29 | inkscape:window-x="0" | ||
30 | inkscape:window-y="0" | ||
31 | inkscape:window-maximized="1" | ||
32 | inkscape:current-layer="svg1" /> | ||
33 | <path | ||
34 | style="fill:#dd3333;stroke:#dd3333;stroke-width:0.371757" | ||
35 | d="M 4.1311475,20.910086 C 3.6620652,20.794602 3.406594,20.62222 3.2469197,20.313445 3.1179756,20.064093 3.0983607,18.966433 3.0983607,12 c 0,-8.8532304 -0.03017,-8.4236524 0.616419,-8.7770236 C 4.0113978,3.0608698 4.5686607,3.0491803 12,3.0491803 c 7.431339,0 7.988603,0.011689 8.28522,0.1737961 0.174904,0.095588 0.396215,0.3168993 0.491803,0.4918033 C 20.93913,4.0113978 20.95082,4.5686607 20.95082,12 c 0,7.431339 -0.01169,7.988603 -0.173797,8.28522 -0.382317,0.699555 0.06784,0.663798 -8.580302,0.681556 -4.2737702,0.0088 -7.9032784,-0.01674 -8.0655735,-0.05669 z M 8.4098361,14.016393 V 9.6885246 H 7.0327869 5.6557377 v 4.3278684 4.327869 h 1.3770492 1.3770492 z m 4.3454209,1.647541 c 0.02932,-2.484375 0.04625,-2.705496 0.231696,-3.02459 0.281484,-0.48436 0.756161,-0.708704 1.399049,-0.661226 0.611966,0.04519 0.923145,0.28708 1.091282,0.848275 0.07244,0.241789 0.11288,1.297628 0.11288,2.947314 v 2.570555 h 1.383069 1.383068 l -0.0316,-3.270492 C 18.294872,11.985695 18.281225,11.774152 18.080026,11.281074 17.766715,10.513242 17.43091,10.130931 16.795899,9.8191095 16.288904,9.5701499 16.12636,9.5409836 15.245902,9.5409836 c -1.14142,0 -1.628041,0.1717844 -2.237705,0.7899424 l -0.368853,0.373992 V 10.196721 9.6885246 H 11.311475 9.9836066 v 4.3278684 4.327869 H 11.353618 12.72363 Z M 7.8206724,8.3852459 C 8.3791951,8.0051187 8.557377,7.6780083 8.557377,7.0327869 8.557377,6.3875655 8.3791951,6.0604551 7.8206724,5.6803279 7.182213,5.2457963 6.1194771,5.4518592 5.7004047,6.0914446 5.3325524,6.6528581 5.343805,7.486701 5.7261443,7.9988028 6.1804539,8.6073014 7.2141752,8.7980243 7.8206724,8.3852459 Z" | ||
36 | id="path2" /> | ||
37 | </svg> | ||
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')) |