templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/two_columns.html.twig' %}
  2. {% block leftcol %}
  3.     <div class="row">
  4.         <div class="col-md-12">
  5.             {% for articleData in articlesData %}
  6.                 {% set article = articleData.article %}
  7.                 <div class="news_box" onclick="location.href = '{{ path('_blog_view', {id: article.id}) }}';">
  8.                     <div class="news_backbox2" style="background: url({{ articleData.bannerUri }}) no-repeat center center; background-size: cover;">
  9.                         <div class="news_titlebox2">
  10.                             <a href="{{ path('_blog_view', {id: article.id}) }}">{{ article.title }}</a>
  11.                             <div class="news_subtitlebox">
  12.                                 <div class="title4" style="float: right; margin-right: 15px; margin-top: 5px; color: #aaaaaa;">
  13.                                     <img src="{{ asset('/images/main/icons/comments_flip.png') }}" width="16"
  14.                                          height="16" alt="" title=""> {{ article.totalComments|length }}
  15.                                 </div>
  16.                                 {{ article.bottomLine }}
  17.                             </div>
  18.                         </div>
  19.                     </div>
  20.                 </div>
  21.             {% else %}
  22.                 <p>{{ 'blog.no_news'|trans }}</p>
  23.             {% endfor %}
  24.         </div>
  25.     </div>
  26. {% endblock %}
  27. {% block rightcol %}
  28.     {{ parent() }}
  29.     {% if counters is not empty %}
  30.     <div class="tipstitle">{{ 'counters.title'|trans }}</div>
  31.     <div class="tipscontent">
  32.         <ul>
  33.             {% for counterTrans, counterValue in counters %}
  34.                 <li>{{ counterTrans|trans }} : {{ counterValue|number_format(0, ',', ' ') }}</li>
  35.             {% endfor %}
  36.         </ul>
  37.     </div>
  38.     {% endif %}
  39. {% endblock %}