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

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain 'These' %}
  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.subTitle }}">
  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(asset('images/logo_contact.png')) }}">
  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.subTitle }}">
  14.     <meta name="twitter:image" content="{{ absolute_url(asset('images/logo_contact.png')) }}">
  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.subTitle is not empty %}
  38.             {% set metaDesc = page.subTitle %}
  39.         {% endif %}
  40.     {% endif %}
  41.     {{ metaDesc }}
  42. {% endblock %}
  43. {% set themePublication = getThemePublication() %}
  44. {% block stylesheets %}
  45.     {{ parent() }}
  46.     {{ encore_entry_link_tags('pages') }}
  47.     <style>
  48.         :host,
  49.         :root {
  50.             --theme-color: {{ themePublication.color }};
  51.             --theme-color-light: {{ themePublication.color }}AA;
  52.             --theme-color-10: {{ themePublication.color }}1A;
  53.             --theme-color-50: {{ themePublication.color }}80;
  54.         }
  55.     </style>
  56. {% endblock %}
  57. {% block body %}
  58.     <div id="breadcrumbToPlace" class="container">
  59.         <div class="links">
  60.             <a href="{{ path('app_homepage') }}"><i class="fa-solid fa-house"></i></a>
  61.             <span> / </span>
  62.             <a href="#">Les publications</a>
  63.             <span> / </span>
  64.             <a href="{{ path('app_these_list') }}">Les thèses</a>
  65.             <span> / </span>
  66.             <span class="active theme-page">
  67.             {{ page.title }}
  68.         </span>
  69.         </div>
  70.         <div class="title">
  71.             <h1 class="titleTraitLeft">{{ page.title }}</h1>
  72.         </div>
  73.     </div>
  74.     <div id="content" class="container theme-page">
  75.         {% set headerPublication = {'date': page.date, 'subTitle': page.subTitle} %}
  76.         {% set footerPublication = {"titleShare": "Partagez cette thèse", "titleReturn": "Retourner à la liste des thèses", "urlReturn": path('app_these_list')} %}
  77.         {% include "commons/sections.html.twig" with {'sections':page.sections, 'themePage': true, 'headerPublication': headerPublication, 'footerPublication': footerPublication } %}
  78.         {% include "commons/sidebar.html.twig" with {'page':page, 'themePage': true} %}
  79.     </div>
  80.     {% if page.quote %}
  81.         <div class="citation container">
  82.             <img src="{{ asset('/images/YEUX_CHOUETTE.png') }}" alt="yeux de chouette">
  83.             <p>{{ page.quote }}</p>
  84.         </div>
  85.     {% endif %}
  86. {% endblock %}
  87. {% block javascripts %}
  88.     {{ parent() }}
  89.     {{ encore_entry_script_tags('pages') }}
  90. {% endblock %}