templates/pages/blog.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block css %}
  3.     {{ parent() }}
  4.     <style>
  5.     </style>
  6. {% endblock %}
  7. {% block content %}
  8.     <section id="page-content" class="sidebar-right">
  9.         <div class="container">
  10.             <div class="row">
  11.                 <div class="content col-lg-9">
  12.                     <div id="blog" class="single-post">
  13.                         <div class="post-item">
  14.                             <div class="post-item-wrap">
  15.                                 <div class="post-image">
  16.                                     <a href="">
  17.                                         <img alt="{{ blog.altDescription }}" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}>
  18.                                     </a>
  19.                                 </div>
  20.                                 <div class="post-item-description">
  21.                                     <h2>{{ blog.titre }}</h2>
  22.                                     <div class="post-meta">
  23.                                         <span class="post-meta-date"><i class="fa fa-calendar-o"></i>{{ blog.date | date('d M Y') }}</span>
  24.                                     </div>
  25.                                     <div class="blog-content">
  26.                                         <div>{{ blog.displayContent | raw }}</div>
  27.                                     </div>
  28.                                 </div>
  29.                                 <div class="post-navigation">
  30.                                     {% if previousBlog is not null %}
  31.                                     <a href="{{ path('blog',{'id' : previousBlog.id}) }}" class="post-prev">
  32.                                         <div class="post-prev-title"><span>{{ 'blogs.previous' | admintrans | raw }}</span>{{ previousBlog.titre }}</div>
  33.                                     </a>
  34.                                     {% endif %}
  35.                                     <a href="{{ path('blogs') }}" class="post-all">
  36.                                         <i class="icon-grid"> </i>
  37.                                     </a>
  38.                                     {% if nextBlog is not null %}
  39.                                     <a href="{{ path('blog',{'id' : nextBlog.id}) }}" class="post-next">
  40.                                         <div class="post-next-title"><span>{{ 'blogs.next' | admintrans | raw }}</span>{{ nextBlog.titre }}</div>
  41.                                     </a>
  42.                                     {% endif %}
  43.                                 </div>
  44.                             </div>
  45.                         </div>
  46.                     </div>
  47.                 </div>
  48.                 <div class="sidebar sticky-sidebar col-lg-3">
  49.                     <div class="widget">
  50.                         <h2 class="widget-title">{{ 'blog.other' | admintrans | raw }}</h2>
  51.                         <div class="post-thumbnail-list">
  52.                             {% for blog in otherBlogs %}
  53.                                 <div class="post-thumbnail-entry">
  54.                                     <img alt="{{ blog.altDescription }}" {{ responsive_src(asset('images/upload/' ~ blog.image)) | raw }}>
  55.                                     <div class="post-thumbnail-content">
  56.                                         <a href="{{ path('blog',{'id' : blog.id}) }}">{{ blog.titre }}</a>
  57.                                         <span class="post-date"><i class="fa fa-calendar-o"></i>{{ blog.date | date('d M Y') }}</span>
  58.                                     </div>
  59.                                 </div>
  60.                             {% endfor %}
  61.                         </div>
  62.                     </div>
  63.                 </div>
  64.             </div>
  65.         </div>
  66.     </section>
  67. {% endblock %}
  68.     {% block js  %}
  69.         {{ parent() }}
  70.     {% endblock %}