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

Open in your IDE?
  1. {% extends 'layouts/front.html.twig' %}
  2. {% block bodyClass %}interne single_article {% endblock %}
  3. {% block content %}
  4.     <section class="title-page" style="background:url({{ asset('build/images/title-page.jpg') }})">
  5.         <div class="container">
  6.             <div class="row">
  7.                 <div class="head_page">
  8.                     <div class="head"> {{ post.title }}</div>
  9.                     <div class="sperateur"></div>
  10.                 </div>
  11.                 <div class="arrows_head">
  12.                     <a href="#">
  13.                         <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
  14.                              id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492"
  15.                              style="enable-background:new 0 0 492 492;" xml:space="preserve" fill="#fff">
  16.                     <g>
  17.                         <g>
  18.                             <path xmlns="http://www.w3.org/2000/svg" fill=""
  19.                                   d="M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z"/>
  20.                         </g></svg>
  21.                     <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
  22.                          id="Layer_1" x="0px" y="0px" viewBox="0 0 492 492" style="enable-background:new 0 0 492 492;"
  23.                          xml:space="preserve" fill="#fff">
  24.                     <g>
  25.                         <g>
  26.                             <path xmlns="http://www.w3.org/2000/svg" fill=""
  27.                                   d="M198.608,246.104L382.664,62.04c5.068-5.056,7.856-11.816,7.856-19.024c0-7.212-2.788-13.968-7.856-19.032l-16.128-16.12    C361.476,2.792,354.712,0,347.504,0s-13.964,2.792-19.028,7.864L109.328,227.008c-5.084,5.08-7.868,11.868-7.848,19.084    c-0.02,7.248,2.76,14.028,7.848,19.112l218.944,218.932c5.064,5.072,11.82,7.864,19.032,7.864c7.208,0,13.964-2.792,19.032-7.864    l16.124-16.12c10.492-10.492,10.492-27.572,0-38.06L198.608,246.104z"/>
  28.                         </g></svg>
  29.                     </a>
  30.                 </div>
  31.             </div>
  32.         </div>
  33.     </section>
  34.     <section class="breadcumbs single_bread">
  35.         <div class="container">
  36.             <div class="row">
  37.                 <div class="crumbs"><a href="#"> Home </a> > <a href=""> Blog </a> > <a href="">{{ post.title }}</a></div>
  38.                 <div class="retour"><a href=""> Retour </a></div>
  39.             </div>
  40.         </div>
  41.     </section>
  42.     <section class="single_content">
  43.         <div class="container">
  44.             <div class="row">
  45.                 <div class="col-md-6 col-sm-6 col-xs-12">
  46.                     <div class="title_single">
  47.                         <span class="red"> {{ post.title }} </span>
  48.                         <span class="black"> PubliĆ© le <b>   {{ post.publishAt|date('d/m/Y') }} </b>  </span>
  49.                     </div>
  50.                     <div class="sperateur"></div>
  51.                     <div class="contenu">
  52.                         {{ post.content|raw }}
  53.                     </div>
  54.                 </div>
  55.                 <div class="col-md-6 col-sm-6 col-xs-12">
  56.                     <div class="image_single">
  57.                         {% if post.video %}
  58.                         <video controls autoplay>
  59.                             <source src="{{ asset('uploads/'~post.video) }}" type="video/mp4">
  60.                             Your browser does not support the video tag.
  61.                         </video>
  62.                          {% elseif post.image %}
  63.                             <img src="{{ asset('uploads/'~post.image) }}" />
  64.                          {% endif %}
  65.                     </div>
  66.                 </div>
  67.             </div>
  68.         </div>
  69.     </section>
  70. {% endblock %}