Skip to content

Commit

Permalink
Open Communication Guidelines
Browse files Browse the repository at this point in the history
- added Open Communication Guidelines to the news footer
- corrected copyright date
  • Loading branch information
xentenza committed Mar 26, 2024
1 parent 84213b0 commit 6f305e3
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 4 deletions.
41 changes: 41 additions & 0 deletions assets/components/organisms/footer/footer-legal-news.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{% if language is not defined %}{% set language = 'fr' %}{% endif %}

{% if language == 'fr' %}
<div class="footer-legal">
<div class="footer-legal-links">
<a href="https://www.epfl.ch/about/overview/fr/reglements-et-directives/mentions-legales/">Accessibilité</a>
<a href="https://www.epfl.ch/about/overview/fr/reglements-et-directives/mentions-legales/">Mentions légales</a>
<a href="https://go.epfl.ch/protection-des-donnees/">Protection des données</a>
<a href="https://go.epfl.ch/charte">Charte</a>
</div>
<div>
<p>&copy; 2024 EPFL, tous droits réservés</p>
</div>
</div>
{% endif %}
{% if language == 'en' %}
<div class="footer-legal">
<div class="footer-legal-links">
<a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Accessibility</a>
<a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Disclaimer</a>
<a href="https://go.epfl.ch/privacy-policy/">Privacy policy</a>
<a href="https://go.epfl.ch/guidelines">Charter</a>
</div>
<div>
<p>&copy; 2024 EPFL, all rights reserved</p>
</div>
</div>
{% endif %}
{% if language == 'de' %}
<div class="footer-legal">
<div class="footer-legal-links">
<a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Zugänglichkeit</a>
<a href="https://www.epfl.ch/about/overview/regulations-and-guidelines/disclaimer/">Impressum</a>
<a href="https://go.epfl.ch/privacy-policy/">Datenschutzerklärung</a>
<a href="https://go.epfl.ch/guidelines">Richtlinien</a>
</div>
<div>
<p>&copy; 2024 EPFL, alle Rechte vorbehalten</p>
</div>
</div>
{% endif %}
6 changes: 3 additions & 3 deletions assets/components/organisms/footer/footer-legal.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a href="https://go.epfl.ch/protection-des-donnees/">Protection des données</a>
</div>
<div>
<p>&copy; 2023 EPFL, tous droits réservés</p>
<p>&copy; 2024 EPFL, tous droits réservés</p>
</div>
</div>
{% endif %}
Expand All @@ -20,7 +20,7 @@
<a href="https://go.epfl.ch/privacy-policy/">Privacy policy</a>
</div>
<div>
<p>&copy; 2023 EPFL, all rights reserved</p>
<p>&copy; 2024 EPFL, all rights reserved</p>
</div>
</div>
{% endif %}
Expand All @@ -32,7 +32,7 @@
<a href="https://go.epfl.ch/privacy-policy/">Datenschutzerklärung</a>
</div>
<div>
<p>&copy; 2023 EPFL, alle Rechte vorbehalten</p>
<p>&copy; 2024 EPFL, alle Rechte vorbehalten</p>
</div>
</div>
{% endif %}
42 changes: 42 additions & 0 deletions assets/components/organisms/footer/footer-light-news.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% if language is not defined %}{% set language = 'fr' %}{% endif %}

<footer class="footer-light" role="contentinfo">
<div class="row">
<div class="col-6 mx-auto mx-md-0 mb-4 col-md-3 col-lg-2">
<a href="#">
<img src="svg/epfl-logo.svg" alt="Logo EPFL, École polytechnique fédérale de Lausanne" class="img-fluid">
</a>
</div>
<div class="col-md-9 col-lg-10 mb-4">
<div class="ml-md-2 ml-lg-5">
<ul class="list-inline list-unstyled">
{% if language == 'de' %}
<li class="list-inline-item">Kontakt</li>
{% else %}
<li class="list-inline-item">Contact</li>
{% endif %}
<li class="list-inline-item text-muted pl-3"><small>EPFL CH-1015 Lausanne</small></li>
<li class="list-inline-item text-muted pl-3"><small>+41 21 693 11 11</small></li>
</ul>
<div class="footer-light-socials">
{% if language == 'fr' %}
<p class="footer-title footer-title-no-underline">Suivez l'EPFL sur les réseaux sociaux</p>
{% endif %}
{% if language == 'en' %}
<p class="footer-title footer-title-no-underline">Follow EPFL on social media</p>
{% endif %}
{% if language == 'de' %}
<p class="footer-title footer-title-no-underline">Der EPFL in sozialen Netzwerken folgen</p>
{% endif %}
{% include '@atoms/social-icon/social-icon-link-group.twig' with { negative: true } %}
</div>
{% include "@organisms/footer/footer-legal-news.twig" with { 'language': language } %}
</div>
</div>
</div>
</footer>

<button id="back-to-top" class="btn btn-primary btn-back-to-top">
<span class="sr-only">Back to top</span>
{% include '@atoms/icon/icon.twig' with {icon: 'icon-chevron-top'} %}
</button>
2 changes: 2 additions & 0 deletions assets/components/organisms/footer/footer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ variants:
title: Footer dark light
notes: Add .bg-dark to the light container
wrapper: bg-dark container
- name: light-news
title: Footer light for news
notes: |
### Standard
french
5 changes: 5 additions & 0 deletions assets/components/pages/news-detail/news-detail.twig
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,8 @@

</div>
{% endblock %}

{% block footer %}
{% include '@organisms/footer/footer-light-news.twig' %}
{% endblock %}

2 changes: 1 addition & 1 deletion assets/components/pages/news-homepage/news-homepage.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="bg-gray-100 pt-5">
<div class="container">
{% block footer %}
{% include '@organisms/footer/footer-light.twig' %}
{% include '@organisms/footer/footer-light-news.twig' %}
{% endblock %}
</div>
</div>
Expand Down

0 comments on commit 6f305e3

Please sign in to comment.