vendor/uvdesk/support-center-bundle/Resources/views/Themes/categoryView.html.twig line 1

Open in your IDE?
  1. <div class="uv-kb-section">
  2.     <div class="uv-kb-section-head">
  3.         <h1 class="uv-text-center">{{ "Browse via Categories"|trans}}</h1>
  4.         <p class="uv-text-center uv-fixed-width">{{ "Looking for something specific? Choose a relevant category from below to explore possible solutions"|trans}}</p>
  5.     </div>
  6.     <div class="uv-kb-section-layout uv-kb-layout-category">
  7.         {% if solutions.categories is defined and solutions.categories is not empty %}
  8.             {% for category in solutions.categories %}
  9.                 {% if category.articles is defined and category.articles is not empty %}
  10.                     <div class="uv-kb-folder uv-kb-category">
  11.                         <p class="uv-category-heading">{{ category.name }}</p>
  12.                         <p class="uv-folder-description">{{ category.description }}</p>
  13.                         <ul>
  14.                             {% for article in category.articles %}
  15.                                 <li><a href="{{ path('helpdesk_knowledgebase_read_slug_article', {'slug': article.slug}) }}">{{ article.name }}</a></li>
  16.                             {% endfor %}
  17.                         </ul>
  18.                         <a href="{{ path('helpdesk_knowledgebase_category', {'category': category.id}) }}" class="uv-btn-small">{{ "View all articles"|trans }}</a>
  19.                     </div>
  20.                 {% endif %}
  21.             {% endfor %}
  22.             <div style="text-align: center; margin-top: 30px;">
  23.                 <a href="{{ path('helpdesk_knowledgebase_category_collection') }}" class="uv-btn">{{ "View all categories"|trans }}</a>
  24.             </div>
  25.         {% else %}
  26.             <p>{{ "No Categories Found!"|trans }}</p>
  27.         {% endif %}
  28.     </div>
  29. </div>