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

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block seo %}
  3. {{ parent() }}
  4. <meta property="og:title" content="{{ article.title }} - Blog | Ryvup">
  5. <meta name="keywords" content="{{ article.keywords }}"/>
  6. {# <meta name="description" content="{{ article.content|raw }}"/> #}
  7. {% endblock %}
  8. {% block title %} {{ article.title }} - Blog | {{ parent() }} {% endblock %}
  9. {% block body %}
  10. <div class="breadcrumbs-fs fl-wrap">
  11.     <div class="container">
  12.         <div class="breadcrumbs fl-wrap"><a href="{{ url('app_front_blog') }}">Blog</a><a href="{{ url('app_front_blog_by_category', {'slug': article.category.slug}) }}">{{ article.category.name }}</a><span>{{ article.title }}</span></div>
  13.     </div>
  14. </div>
  15. <section class="grey-blue-bg small-padding">
  16.     <div class="container">
  17.         <div class="row">
  18.             <div class="col-md-8">
  19.                 <div class="post-container fl-wrap">
  20.                     <article class="post-article">
  21.                         <div class="title-devis">
  22.                             <span>{{ article.title }}</span>
  23.                         </div>
  24.                         <div class="list-single-main-media fl-wrap">
  25.                             <div class="single-slider-wrapper fl-wrap">
  26.                                 <div class="single-slider fl-wrap">
  27.                                     <div class="slick-slide-item">
  28.                                         {% if article.image %}
  29.                                         <img src="{{ asset('/uploads/files/articles/' ~ article.image) | imagine_filter('806x250') }}" alt="{{ article.title }}">
  30.                                         {% else %}
  31.                                         <img src="{{ asset('front/images/all/ryvup.jpeg') | imagine_filter('806x250') }}" alt="{{ article.title }}">
  32.                                         {% endif %}
  33.                                     </div>
  34.                                 </div>
  35.                             </div>
  36.                         </div>
  37.                         <div class="list-single-main-item fl-wrap">
  38.                             <div class="control-description">
  39.                                 {{ article.content|raw }}
  40.                             </div>                            
  41.                             <div class="post-opt">
  42.                                 <ul>
  43.                                     <li><i class="fal fa-tags"></i> <a href="{{ url('app_front_blog_by_category', {'slug': article.category.slug}) }}" class="text-theme-blue">{{ article.category.name }}</a></li>
  44.                                     <li><i class="fal fa-calendar"></i> <span>{{ article.createdAt | format_datetime(locale='fr', pattern="dd MMMM YYYY") }}</span></li>
  45.                                     <li><i class="fal fa-share-alt"></i> <span>RYVUP</span></li>
  46.                                 </ul>
  47.                             </div>
  48.                         </div>
  49.                     </article>
  50.                 </div>
  51.             </div>
  52.             <div class="col-md-4">
  53.                 <div class="box-widget-wrap fl-wrap fixed-bar">
  54.                     <div class="box-widget-item fl-wrap">
  55.                         <div class="box-widget">
  56.                             <div class="box-widget-content">
  57.                                 <div class="box-widget-item-header mb-3">
  58.                                     <h3> Demander un devis </h3>
  59.                                 </div>
  60.                                 <div class="text-left">
  61.                                     <p>Location d'autocar, minibus, voiture privée et sanitaire avec chauffeur pour tous vos déplacements</p>
  62.                                     <p>Avec Ryvup, trouver votre transport sur mesure !</p>
  63.                                 </div>
  64.                                 <div class="text-left">
  65.                                     <a href="{{ url('app_client_home') }}" class="btn color2-bg mt-3">
  66.                                        Devis immédiat
  67.                                        <i class="fal fa-angle-right"></i>
  68.                                     </a>
  69.                                 </div>
  70.                             </div>
  71.                         </div>
  72.                     </div>
  73.                     <div class="box-widget-item fl-wrap">
  74.                         <div class="box-widget widget-posts">
  75.                             <div class="box-widget-content">
  76.                                 <div class="box-widget-item-header">
  77.                                     <h3>Articles similaires</h3>
  78.                                 </div>
  79.                                 {% for article in lastArticles %}
  80.                                 <div class="box-image-widget">
  81.                                     <div class="box-image-widget-media">
  82.                                         {% if article.image %}
  83.                                         <img src="{{ asset('/uploads/files/articles/' ~ article.image) | imagine_filter('115x76') }}" alt="{{ article.title }}">
  84.                                         {% else %}
  85.                                         <img src="{{ asset('front/images/all/ryvup.jpeg') | imagine_filter('115x76') }}" alt="{{ article.title }}">
  86.                                         {% endif %}
  87.                                         <a href="{{ url('app_front_blog_read', {'cat_slug': article.category.slug, 'slug': article.slug}) }}" class="color-bg">Détails</a>
  88.                                     </div>
  89.                                     <div class="box-image-widget-details">
  90.                                         <h4>{{ article.title }}</h4>
  91.                                         <span class="widget-posts-date">
  92.                                             <i class="fal fa-calendar"></i> 
  93.                                             {% if article.updatedAt %}
  94.                                                 Modifié le {{ article.updatedAt | format_datetime(locale='fr', pattern="dd MMMM YYYY") }}
  95.                                             {% else %}
  96.                                                 Publié le {{ article.createdAt | format_datetime(locale='fr', pattern="dd MMMM YYYY") }}
  97.                                             {% endif %}
  98.                                         </span>
  99.                                     </div>
  100.                                 </div>    
  101.                                 {% endfor %}                            
  102.                             </div>
  103.                         </div>
  104.                     </div>
  105.                     <div class="box-widget-item fl-wrap">
  106.                         <div class="box-widget">
  107.                             <div class="box-widget-content">
  108.                                 <div class="box-widget-item-header">
  109.                                     <h3>Catégories</h3>
  110.                                 </div>
  111.                                 <ul class="cat-item">
  112.                                     {% set id = article.category.id %}
  113.                                     {% for category in categories %}
  114.                                         {% if category.id != id %}
  115.                                         <li><a href="{{ url('app_front_blog_by_category', {'slug': category.slug}) }}" title="{% if category.name|length > 28 %}{{ category.name }}{% endif %}">{% if category.name|length > 28 %}{{ category.name | slice(0,28) }}...{% else %}{{ category.name }}{% endif %}</a> <span>{{ category.articles|length }}</span></li>
  116.                                         {% endif %}
  117.                                     {% endfor %}
  118.                                 </ul>
  119.                             </div>
  120.                         </div>
  121.                     </div>
  122.                 </div>
  123.             </div>
  124.         </div>
  125.     </div>
  126. </section>
  127. {% endblock %}