From 1895089ec9516a0337fc0c17c2acddf0c8ef5628 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Sun, 22 Jun 2025 23:37:29 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20m=C3=A9dias=20sociaux=20dans=20la=20pag?= =?UTF-8?q?e=20edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/public/edit.html.twig | 13 ++++++++ templates/public/edit/social_media.html.twig | 31 ++++++++++++++++++-- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/templates/public/edit.html.twig b/templates/public/edit.html.twig index e1715cb2..5760b5c9 100644 --- a/templates/public/edit.html.twig +++ b/templates/public/edit.html.twig @@ -70,8 +70,21 @@ {% endif %} {% include 'public/edit/ask_angela.html.twig' %} + {% include 'public/edit/social_media.html.twig' %} +
+ + + Téléphone + + +
{% include 'public/edit/tags.html.twig' %}
diff --git a/templates/public/edit/social_media.html.twig b/templates/public/edit/social_media.html.twig index 4ff0c381..d1040cc2 100644 --- a/templates/public/edit/social_media.html.twig +++ b/templates/public/edit/social_media.html.twig @@ -1,9 +1,34 @@ {# (medias sociaux TODO) #} {% block social_medias %} -
-
+
+ Réseaux sociaux -
+ {% set social_medias = { + 'mastodon': { 'icon': 'bi-mastodon', 'label': 'Mastodon' }, + 'facebook': { 'icon': 'bi-facebook', 'label': 'Facebook' }, + 'instagram': { 'icon': 'bi-instagram', 'label': 'Instagram' }, + 'tiktok': { 'icon': 'bi-tiktok', 'label': 'TikTok' }, + 'youtube': { 'icon': 'bi-youtube', 'label': 'YouTube' }, + 'linkedin': { 'icon': 'bi-linkedin', 'label': 'LinkedIn' }, + } %} + +
+ {% for key, social in social_medias %} + {% set tag_name = 'contact:' ~ key %} +
+ + + {{ social.label }} + + +
+ {% endfor %} +
{% endblock social_medias %} \ No newline at end of file