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

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'Actuality' %}
  3. {% block metaog %}
  4.     <meta property="og:type" content="article">
  5.     <meta property="og:title" content="{{ page.title ~ " - SFMG" }}">
  6.     <meta property="og:description" content="{{ page.resume }}">
  7.     <meta property="og:site_name" content="{{ app.request.server.get('SITENAME') }}">
  8.     <meta property="og:url" content="{{ app.request.uri }}">
  9.     <meta property="og:image" content="{{ absolute_url(vich_uploader_asset(page, 'illustrationFile')) }}">
  10.     <!-- Twitter Card Meta Tags -->
  11.     <meta name="twitter:card" content="summary_large_image">
  12.     <meta name="twitter:title" content="{{ page.title ~ ' - SFMG' }}">
  13.     <meta name="twitter:description" content="{{ page.resume }}">
  14.     <meta name="twitter:image" content="{{ absolute_url(vich_uploader_asset(page, 'illustrationFile')) }}">
  15.     <meta name="twitter:site" content="{{ app.request.server.get('SITENAME') }}">
  16. {% endblock %}
  17. {% block title %}
  18.     {% set title = siteSettings.defaultTitle %}
  19.     {% if SEOPage is defined and SEOPage and SEOPage.metaTitle %}
  20.         {% set title = SEOPage.metaTitle %}
  21.     {% elseif page is defined %}
  22.         {% if page.metaTitle is defined and page.metaTitle is not empty %}
  23.             {% set title = page.metaTitle %}
  24.         {% elseif page.title is not empty %}
  25.             {% set title = page.title ~ " - SFMG" %}
  26.         {% endif %}
  27.     {% endif %}
  28.     {{ title }}
  29. {% endblock %}
  30. {% block metaDescription %}
  31.     {% set metaDesc = siteSettings.defaultMetaDesc %}
  32.     {% if SEOPage is defined and SEOPage and SEOPage.metaDescription %}
  33.         {% set metaDesc = SEOPage.metaDescription %}
  34.     {% elseif page is defined and page %}
  35.         {% if page.metaDescription is defined and page.metaDescription is not empty  %}
  36.             {% set metaDesc = page.metaDescription %}
  37.         {% elseif page.resume is not empty %}
  38.             {% set metaDesc = page.resume %}
  39.         {% endif %}
  40.     {% endif %}
  41.     {{ metaDesc }}
  42. {% endblock %}
  43. {% block stylesheets %}
  44.     {{ parent() }}
  45.     {{ encore_entry_link_tags('pages') }}
  46.     <style>
  47.         :host,
  48.         :root {
  49.             --theme-color: #515462;
  50.             --theme-color-light: #515462AA;
  51.             --theme-color-10: #5154621A;
  52.             --theme-color-50: #51546280;
  53.         }
  54.     </style>
  55. {% endblock %}
  56. {% block body %}
  57.     <div id="breadcrumbToPlace" class="container">
  58.         <div class="links">
  59.             <a href="{{ path('app_homepage') }}"><i class="fa-solid fa-house"></i></a>
  60.             <span> / </span>
  61.             <a href="{{ path('app_actuality_list') }}">Liste des actualités</a>
  62.             <span> / </span>
  63.             <span class="active">
  64.                 {{ page.title }}
  65.             </span>
  66.         </div>
  67.         <div class="title">
  68.             <h1 class="titleTraitLeft">{{ page.title }}</h1>
  69.         </div>
  70.     </div>
  71.     <div id="content" class="container">
  72.         {% set headerActuality = {"date": page.createdAt, "category": page.category, "labels": page.labels } %}
  73.         {% set footerPublication = {"titleShare": "Partagez cette actualité", "titleReturn": "Retourner à la liste des actualités", "urlReturn": path('app_actuality_list')} %}
  74.         {% include "commons/sections.html.twig" with {'sections':page.sections, "headerActuality": headerActuality, "footerPublication": footerPublication} %}
  75.         {% include "commons/sidebar.html.twig" with {'page':page} %}
  76.     </div>
  77.     {% if page.quote %}
  78.         <div class="citation container">
  79.             <img src="{{ asset('/images/YEUX_CHOUETTE.png') }}" alt="yeux de chouette">
  80.             <p>{{ page.quote }}</p>
  81.         </div>
  82.     {% endif %}
  83. {% endblock %}
  84. {% block javascripts %}
  85.     {{ parent() }}
  86.     {{ encore_entry_script_tags('pages') }}
  87. {% endblock %}