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

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'Publication' %}
  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.author }}">
  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="{{ asset('images/logo.png') }}">
  10.     <meta name="twitter:card" content="summary_large_image">
  11.     <meta name="twitter:title" content="{{ page.title ~ ' - SFMG' }}">
  12.     <meta name="twitter:description" content="{{ page.author }}">
  13.     <meta name="twitter:image" content="{{ asset('images/logo.png') }}">
  14.     <meta name="twitter:site" content="{{ app.request.server.get('SITENAME') }}">
  15. {% endblock %}
  16. {% block title %}
  17.     {% set title = siteSettings.defaultTitle %}
  18.     {% if SEOPage is defined and SEOPage and SEOPage.metaTitle %}
  19.         {% set title = SEOPage.metaTitle %}
  20.     {% elseif page is defined %}
  21.         {% if page.metaTitle is defined and page.metaTitle is not empty %}
  22.             {% set title = page.metaTitle %}
  23.         {% elseif page.title is not empty %}
  24.             {% set title = page.title ~ " - SFMG" %}
  25.         {% endif %}
  26.     {% endif %}
  27.     {{ title }}
  28. {% endblock %}
  29. {% block metaDescription %}
  30.     {% set metaDesc = siteSettings.defaultMetaDesc %}
  31.     {% if SEOPage is defined and SEOPage and SEOPage.metaDescription %}
  32.         {% set metaDesc = SEOPage.metaDescription %}
  33.     {% elseif page is defined and page %}
  34.         {% if page.metaDescription is defined and page.metaDescription is not empty  %}
  35.             {% set metaDesc = page.metaDescription %}
  36.         {% elseif page.author is not empty %}
  37.             {% set metaDesc = page.author %}
  38.         {% endif %}
  39.     {% endif %}
  40.     {{ metaDesc }}
  41. {% endblock %}
  42. {% set themePublication = getThemePublication() %}
  43. {% block stylesheets %}
  44.     {{ parent() }}
  45.     {{ encore_entry_link_tags('pages') }}
  46.     <style>
  47.         :host,
  48.         :root {
  49.             --theme-color: {{ themePublication.color }};
  50.             --theme-color-light: {{ themePublication.color }}AA;
  51.             --theme-color-10: {{ themePublication.color }}1A;
  52.             --theme-color-50: {{ themePublication.color }}80;
  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="#">Les publications</a>
  62.             <span> / </span>
  63.             <a href="{{ path('app_publication_list') }}">Les publications</a>
  64.             <span> / </span>
  65.             <span class="active theme-page">
  66.             {{ page.title }}
  67.         </span>
  68.         </div>
  69.         <div class="title">
  70.             <h1 class="titleTraitLeft">{{ page.title }}</h1>
  71.         </div>
  72.     </div>
  73.     <div id="content" class="container theme-page">
  74.         {% set headerPublication = {'date': page.date, 'subTitle': page.author} %}
  75.         {% set footerPublication = {"titleShare": "Partagez cette publication", "titleReturn": "Retourner à la liste des publications", "urlReturn": path('app_publication_list')} %}
  76.         {% include "commons/sections.html.twig" with {'sections':page.sections, 'themePage': true, 'headerPublication': headerPublication, 'footerPublication': footerPublication } %}
  77.         {% include "commons/sidebar.html.twig" with {'page':page, 'themePage': true} %}
  78.     </div>
  79.     {% if page.quote %}
  80.         <div class="citation container">
  81.             <img src="{{ asset('/images/YEUX_CHOUETTE.png') }}" alt="yeux de chouette">
  82.             <p>{{ page.quote }}</p>
  83.         </div>
  84.     {% endif %}
  85. {% endblock %}
  86. {% block javascripts %}
  87.     {{ parent() }}
  88.     {{ encore_entry_script_tags('pages') }}
  89. {% endblock %}