templates/category/categorylist.html.twig line 1

Open in your IDE?
  1. <div class="widget widget_categories">
  2.     <h3 class="widget-title">Categories</h3>
  3.     <ul>
  4.         {% for category in categories %}
  5.         <li class="cat-item">
  6.             <a href="{{ path('home_by_category',{'categoryname':category.name }, relative=false) }}" {% if category.id==activecategoryid %} class="bold" {% endif %}>{{ category.name }}</a>
  7.             ({{ category.countpublishedarticles }})
  8.         </li>
  9.         {% endfor %}
  10.         {% if hasnone %}
  11.         <li class="cat-item">
  12.             <a href="{{ path('home_by_category',{'categoryname':'none' }, relative=false) }}" {% if activecategoryid==-2%} class="bold" {% endif %}>(aucune)</a>
  13.             ({{ countnone }})
  14.         </li>
  15.         {% endif %}
  16.     </ul>
  17. </div>