templates/front/Page/show.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'Page' %}
  3. {% block title %}
  4.     {% set title = siteSettings.defaultTitle %}
  5.     {% if SEOPage is defined and SEOPage and SEOPage.metaTitle %}
  6.         {% set title = SEOPage.metaTitle %}
  7.     {% elseif page is defined and page %}
  8.         {% if page.metaTitle is not null %}
  9.             {% set title = page.metaTitle %}
  10.         {% else %}
  11.             {% set title = page.title ~ " - " ~ app.request.server.get('SITENAME') %}
  12.         {% endif %}
  13.     {% endif %}
  14.     {{ title }}
  15. {% endblock %}
  16. {% block stylesheets %}
  17.     {{ parent() }}
  18.     {{ encore_entry_link_tags('pages') }}
  19.     <style>
  20.         :host,
  21.         :root {
  22.             --theme-color: {{ theme.color }};
  23.             --theme-color-light: {{ theme.color }}AA;
  24.             --theme-color-10: {{ theme.color }}1A;
  25.             --theme-color-50: {{ theme.color }}80;
  26.         }
  27.     </style>
  28. {% endblock %}
  29. {% block body %}
  30.     <div id="breadcrumbToPlace" class="container">
  31.         <div class="links">
  32.             <a href="{{ path('app_homepage') }}"><i class="fa-solid fa-house"></i></a>
  33.             <span> / </span>
  34.             <a href="#">{{ page.theme ? page.theme.name : 'Les publications'}}</a>
  35.             <span> / </span>
  36.             <span class="active theme-page">
  37.                 {{ page.title }}
  38.             </span>
  39.         </div>
  40.         <div class="title">
  41.             <h1 class="titleTraitLeft">{{ page.title }}</h1>
  42.         </div>
  43.     </div>
  44.     <div id="content" class="container theme-page">
  45.         {% include "commons/sections.html.twig" with {'sections':page.sections, 'themePage': true} %}
  46.         {% include "commons/sidebar.html.twig" with {'page':page, 'themePage': true} %}
  47.     </div>
  48.     {% if page.quote %}
  49.         <div class="citation container">
  50.             <img src="{{ asset('/images/YEUX_CHOUETTE.png') }}" alt="yeux de chouette">
  51.             <p>{{ page.quote }}</p>
  52.         </div>
  53.     {% endif %}
  54. {% endblock %}
  55. {% block javascripts %}
  56.     {{ parent() }}
  57.     {{ encore_entry_script_tags('pages') }}
  58. {% endblock %}