templates/common/thumbnail_article.html.twig line 1

Open in your IDE?
  1. {% set urlPost = "#{baseUrl}/articolo/#{a.slug}" %}
  2. <!-- Post Modern-->
  3. <article class="post post-modern post-modern-classic">
  4.     <!-- Post media-->
  5.     <div class="post-media">
  6.         <a class="link-image" href="{{ urlPost }}">
  7.             <img class="img-responsive img-cover" width="370" height="240" src="{{ article.thumbnail }}" alt="{{ article.title }}" />
  8.         </a>
  9.     </div>
  10.     <!-- Post content-->
  11.     <div class="post-content text-left">
  12.         <!-- Post Title-->
  13.         <div class="post-title offset-top-8">
  14.             <h5 class="font-weight-bold">
  15.                 <a href="{{ urlPost }}">{{ article.title }}</a>
  16.             </h5>
  17.         </div>
  18.         <ul class="list-inline list-inline-dashed">
  19.             <li>{{ article.datetime }}</li>
  20.             {% if false %}<li><a class="text-primary" href="#">News</a></li>{% endif %}
  21.         </ul>
  22.         <!-- Post Body-->
  23.         <div class="post-body">{{ article.excerpt|raw }}</div>
  24.         {% if article.category|length > 0 %}
  25.             <div class="tags group group-sm">
  26.                 {% for cat in article.category %}
  27.                     <a class="btn-tag btn {% if idCategory is defined and idCategory == cat.id %}btn-primary{% else %}btn-default{% endif %}"
  28.                        href="{{ baseUrl }}/notizie/categoria/{{ cat.id }}">{{ cat.name }}</a>
  29.                 {% endfor %}
  30.             </div>
  31.         {% endif %}
  32.     </div>
  33. </article>