templates/front/Publication/list.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'Publication' %}
  3. {% set themePublication = getThemePublication() %}
  4. {% block stylesheets %}
  5.     {{ parent() }}
  6.     {{ encore_entry_link_tags('pages') }}
  7.     <style>
  8.         :host,
  9.         :root {
  10.             --theme-color: {{ themePublication.color }};
  11.             --theme-color-light: {{ themePublication.color }}AA;
  12.             --theme-color-10: {{ themePublication.color }}1A;
  13.             --theme-color-50: {{ themePublication.color }}80;
  14.         }
  15.     </style>
  16. {% endblock %}
  17. {% block body %}
  18.     <div id="breadcrumbToPlace" class="container">
  19.         <div class="links">
  20.             <a href="{{ path('app_homepage') }}"><i class="fa-solid fa-house"></i></a>
  21.             <span> / </span>
  22.             <a href="#">Les publications</a>
  23.             <span> / </span>
  24.             <span class="active theme-page">
  25.                 Les publications
  26.             </span>
  27.         </div>
  28.         <div class="title">
  29.             <h1 class="titleTraitLeft">{{ page.title }}</h1>
  30.         </div>
  31.     </div>
  32.     <div id="content" class="container theme-page">
  33.         {% include "commons/sections.html.twig" with {'sections':page.sections, 'themePage': true} %}
  34.         {% include "commons/sidebar.html.twig" with {'page':page, 'themePage': true} %}
  35.     </div>
  36.     {% if page.quote %}
  37.         <div class="citation container">
  38.             <img src="{{ asset('/images/YEUX_CHOUETTE.png') }}" alt="yeux de chouette">
  39.             <p>{{ page.quote }}</p>
  40.         </div>
  41.     {% endif %}
  42. {% endblock %}
  43. {% block javascripts %}
  44.     {{ parent() }}
  45.     {{ encore_entry_script_tags('pages') }}
  46.     {% if openTab %}
  47.         <script>
  48.             console.log('openTab');
  49.             document.addEventListener('DOMContentLoaded', function () {
  50.                 const accordionTrigger = document.querySelector('#accordion-trigger-1');
  51.                 const accordionPanel = document.querySelector('#accordion-panel-1');
  52.                 accordionTrigger.setAttribute('aria-expanded', 'true');
  53.                 accordionPanel.setAttribute('aria-hidden', 'false');
  54.                 window.scrollTo({
  55.                     top: accordionTrigger.offsetTop + 200
  56.                 });
  57.             });
  58.         </script>
  59.     {% endif %}
  60. {% endblock %}