templates/Slivki/mobile/comment/index.html.twig line 1

Open in your IDE?
  1. {% extends 'Slivki/mobile/base.html.twig' %}
  2. {% block styles %}
  3.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css" />
  4.     {{ parent() }}
  5. {% endblock %}
  6. {% block content %}
  7.     <nav aria-label="breadcrumb">
  8.         <ol class="breadcrumb m-0 py-1 px-2 bg-white">
  9.             <li class="breadcrumb-item"><a href="{{ base_url }}">Главная</a></li>
  10.             {% if category is defined  %}
  11.                 <li class="breadcrumb-item"><a href="{{ path('commentsLive') }}">Отзывы</a></li>
  12.                 {% for parentCategory in parentCategories %}
  13.                     <li class="breadcrumb-item"><a href="/otzyvy{{ getCategoryURL(parentCategory) }}">{{ parentCategory.getName() }}</a></li>
  14.                 {% endfor %}
  15.                 <li class="breadcrumb-item active text-muted" aria-current="page">{{ category.getName() }}</li>
  16.             {% else %}
  17.                 <li class="breadcrumb-item active text-muted" aria-current="page">Отзывы</li>
  18.             {% endif %}
  19.         </ol>
  20.     </nav>
  21.     <div class="content-title alt-font">
  22.         <h1 class="">{{ title is defined ? title|raw : 'Отзывы' }}</h1>
  23.     </div>
  24.     <div class="px-2{{ category.getTypeID == constant('Slivki\\Entity\\Category::SUPPLIER_CATEGORY_TYPE') ? ' no-child-comment-margin'}}">
  25.         {{ comments|raw }}
  26.     </div>
  27.     {% if category.getTypeID == constant('Slivki\\Entity\\Category::SUPPLIER_CATEGORY_TYPE') %}
  28.         {% include 'Slivki/pagination.html.twig' with {'paginationID': 'categoryCommentPagination', 'total': commentsCount//10, 'current': page, 'url': app.request.pathInfo() ~ '?page='} %}
  29.     {% endif %}
  30. {% endblock %}
  31. {% block javascripts %}
  32.     <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
  33.     {{ parent() }}
  34. {% endblock %}