templates/articles/blog.html.twig line 1

Open in your IDE?
  1. {% extends "master.html.twig" %}
  2. {% block meta %}
  3.     {% include "@SuluWebsite/Extension/seo.html.twig" with {
  4.         "seo": extension.seo|default([]),
  5.         "content": content|default([]),
  6.         "urls": urls|default([]),
  7.         "shadowBaseLocale": shadowBaseLocale|default(),
  8.         "defaultLocale": request.defaultLocale|default('de')
  9.     } %}
  10. {% endblock %}
  11. {% block style %}    
  12.     <link rel="stylesheet" href="{{ absolute_url(asset("build/website/css/blog.css")) }}">
  13. {% endblock %}
  14. {% block bgImages %}{{ content.banner[0].url }}{% endblock %}
  15. {% block ogImages %}{{ content.banner[0].url }}{% endblock %}
  16. {% block content %}
  17.     {% block schema %}
  18.         <div class="fil-arrianne-article">
  19.             <ul vocab="https://schema.org/" typeof="BreadcrumbList">
  20.                 <li property="itemListElement" typeof="ListItem"  itemid="https://www.h3campus.fr/">
  21.                     <a property="item" typeof="WebPage" href="https://www.h3campus.fr/">
  22.                         <span property="name">Accueil</span>
  23.                     </a>
  24.                     <meta property="position" content="0">
  25.                 </li>
  26.                 <li property="itemListElement" typeof="ListItem" itemid="https://www.h3campus.fr/blog">
  27.                     <a property="item" typeof="WebPage" href="/blog">
  28.                         <span property="name">Blog</span>
  29.                     </a>
  30.                     <meta property="position" content="1">
  31.                 </li>
  32.                 <li property="itemListElement" typeof="ListItem" itemid="https://www.h3campus.fr{{ app.request.pathInfo }}">
  33.                     <span property="name">{{ content.title }}</span>
  34.                     <meta property="position" content="2">
  35.                 </li>
  36.             </ul>
  37.         </div>
  38.     {% endblock %}
  39.     <div class="content-page-default">
  40.         <div class="info-blog">
  41.             <div class=""><p><a href="/blog">< Retourner sur le blog</a></p></div>
  42.             <div class="author" property="author">
  43.                 {% if extension.excerpt.tags %}
  44.                     <div class="tags {{extension.excerpt.tags[0]}}">{{ extension.excerpt.tags[0] }}</div>
  45.                 {% endif %}
  46.                 {% set authorContact = "" %}
  47.                 {% if author|length %}
  48.                     {% set authorContact = sulu_resolve_contact(author) %}
  49.                 {% else %}
  50.                     {% set authorContact = sulu_resolve_contact(creator) %}
  51.                 {% endif %}
  52.                 {% if authorContact|default('') or published.date|default('') %}
  53.                     <p class="author-by">PubliĆ© par <span>{{ authorContact.fullName }}</span> - Le {{ authored|date("d / m / Y") }}</p>   
  54.                 {% endif %}
  55.             </div>
  56.         </div>
  57.         <hr >
  58.         <div class="video-article">
  59.             {% if content.video_article is not empty %}
  60.                 <iframe src="{{ content.video_article }}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  61.             {% endif %}
  62.         </div>
  63.         <article class="text_article editor-text " property="text_article">
  64.             {{ content.text_article|raw }}
  65.         </article>
  66.         <hr>
  67.         {# {% include "comment/details.html.twig" %} #}
  68.     
  69.         {# <div class="list-comment">
  70.             {{ render_esi(controller(
  71.                 'AppCommentBundle:Comment:cgetComments',
  72.                 { 'threadId': content.title }
  73.             )) }}
  74.         </div> #}
  75.     </div>
  76.     
  77. {% endblock %}
  78. {% block javascripts %}
  79.     <script>window.breadcrumbMap={'json-ld-breadcrumb':'JSON-LD Breadcrumb'}</script>
  80.     <script src="{{ asset('public/appcomment/js/ajax_comment.c4e65814.js') }}"></script>
  81. {% endblock %}