var/cache/dev/twig/94/94a4b52178dca17806b12a6653586c40948ff049723c5a288009c181860079da.php line 145

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Slivki/mobile/comment/index.html.twig */
  14. class __TwigTemplate_ebe020554f2ca6b2da19449b64c4219529ad7bbd4d778e5dd853adba17c789a9 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'styles' => [$this'block_styles'],
  24.             'content' => [$this'block_content'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "Slivki/mobile/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/comment/index.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Slivki/mobile/comment/index.html.twig"));
  40.         $this->parent $this->loadTemplate("Slivki/mobile/base.html.twig""Slivki/mobile/comment/index.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_styles($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""styles"));
  55.         // line 4
  56.         echo "    <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
  57.     ";
  58.         // line 5
  59.         $this->displayParentBlock("styles"$context$blocks);
  60.         echo "
  61. ";
  62.         
  63.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  64.         
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  66.     }
  67.     // line 8
  68.     public function block_content($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  75.         // line 9
  76.         echo "    <nav aria-label=\"breadcrumb\">
  77.         <ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
  78.             <li class=\"breadcrumb-item\"><a href=\"";
  79.         // line 11
  80.         echo twig_escape_filter($this->env, (isset($context["base_url"]) || array_key_exists("base_url"$context) ? $context["base_url"] : (function () { throw new RuntimeError('Variable "base_url" does not exist.'11$this->source); })()), "html"nulltrue);
  81.         echo "\">Главная</a></li>
  82.             ";
  83.         // line 12
  84.         if (array_key_exists("category"$context)) {
  85.             // line 13
  86.             echo "                <li class=\"breadcrumb-item\"><a href=\"";
  87.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("commentsLive");
  88.             echo "\">Отзывы</a></li>
  89.                 ";
  90.             // line 14
  91.             $context['_parent'] = $context;
  92.             $context['_seq'] = twig_ensure_traversable((isset($context["parentCategories"]) || array_key_exists("parentCategories"$context) ? $context["parentCategories"] : (function () { throw new RuntimeError('Variable "parentCategories" does not exist.'14$this->source); })()));
  93.             foreach ($context['_seq'] as $context["_key"] => $context["parentCategory"]) {
  94.                 // line 15
  95.                 echo "                    <li class=\"breadcrumb-item\"><a href=\"/otzyvy";
  96.                 echo twig_escape_filter($this->env$this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryURL($context["parentCategory"]), "html"nulltrue);
  97.                 echo "\">";
  98.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["parentCategory"], "getName", [], "method"falsefalsefalse15), "html"nulltrue);
  99.                 echo "</a></li>
  100.                 ";
  101.             }
  102.             $_parent $context['_parent'];
  103.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['parentCategory'], $context['_parent'], $context['loop']);
  104.             $context array_intersect_key($context$_parent) + $_parent;
  105.             // line 17
  106.             echo "                <li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">";
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'17$this->source); })()), "getName", [], "method"falsefalsefalse17), "html"nulltrue);
  108.             echo "</li>
  109.             ";
  110.         } else {
  111.             // line 19
  112.             echo "                <li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">Отзывы</li>
  113.             ";
  114.         }
  115.         // line 21
  116.         echo "        </ol>
  117.     </nav>
  118.     <div class=\"content-title alt-font\">
  119.         <h1 class=\"\">";
  120.         // line 24
  121.         echo ((array_key_exists("title"$context)) ? ((isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'24$this->source); })())) : ("Отзывы"));
  122.         echo "</h1>
  123.     </div>
  124.     <div class=\"px-2";
  125.         // line 26
  126.         echo (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'26$this->source); })()), "getTypeID", [], "any"falsefalsefalse26), twig_constant("Slivki\\Entity\\Category::SUPPLIER_CATEGORY_TYPE")))) ? (" no-child-comment-margin") : (""));
  127.         echo "\">
  128.         ";
  129.         // line 27
  130.         echo (isset($context["comments"]) || array_key_exists("comments"$context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.'27$this->source); })());
  131.         echo "
  132.     </div>
  133.     ";
  134.         // line 29
  135.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'29$this->source); })()), "getTypeID", [], "any"falsefalsefalse29), twig_constant("Slivki\\Entity\\Category::SUPPLIER_CATEGORY_TYPE")))) {
  136.             // line 30
  137.             echo "        ";
  138.             $this->loadTemplate("Slivki/pagination.html.twig""Slivki/mobile/comment/index.html.twig"30)->display(twig_array_merge($context, ["paginationID" => "categoryCommentPagination""total" => (int) floor(((isset($context["commentsCount"]) || array_key_exists("commentsCount"$context) ? $context["commentsCount"] : (function () { throw new RuntimeError('Variable "commentsCount" does not exist.'30$this->source); })()) / 10)), "current" => (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'30$this->source); })()), "url" => (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "request", [], "any"falsefalsefalse30), "pathInfo", [], "method"falsefalsefalse30) . "?page=")]));
  139.             // line 31
  140.             echo "    ";
  141.         }
  142.         
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  144.         
  145.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  146.     }
  147.     // line 34
  148.     public function block_javascripts($context, array $blocks = [])
  149.     {
  150.         $macros $this->macros;
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  152.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  154.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  155.         // line 35
  156.         echo "    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
  157.     ";
  158.         // line 36
  159.         $this->displayParentBlock("javascripts"$context$blocks);
  160.         echo "
  161. ";
  162.         
  163.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  164.         
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  166.     }
  167.     public function getTemplateName()
  168.     {
  169.         return "Slivki/mobile/comment/index.html.twig";
  170.     }
  171.     public function isTraitable()
  172.     {
  173.         return false;
  174.     }
  175.     public function getDebugInfo()
  176.     {
  177.         return array (  183 => 36,  180 => 35,  170 => 34,  159 => 31,  156 => 30,  154 => 29,  149 => 27,  145 => 26,  140 => 24,  135 => 21,  131 => 19,  125 => 17,  114 => 15,  110 => 14,  105 => 13,  103 => 12,  99 => 11,  95 => 9,  85 => 8,  73 => 5,  70 => 4,  60 => 3,  37 => 1,);
  178.     }
  179.     public function getSourceContext()
  180.     {
  181.         return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
  182. {% block styles %}
  183.     <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
  184.     {{ parent() }}
  185. {% endblock %}
  186. {% block content %}
  187.     <nav aria-label=\"breadcrumb\">
  188.         <ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
  189.             <li class=\"breadcrumb-item\"><a href=\"{{ base_url }}\">Главная</a></li>
  190.             {% if category is defined  %}
  191.                 <li class=\"breadcrumb-item\"><a href=\"{{ path('commentsLive') }}\">Отзывы</a></li>
  192.                 {% for parentCategory in parentCategories %}
  193.                     <li class=\"breadcrumb-item\"><a href=\"/otzyvy{{ getCategoryURL(parentCategory) }}\">{{ parentCategory.getName() }}</a></li>
  194.                 {% endfor %}
  195.                 <li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">{{ category.getName() }}</li>
  196.             {% else %}
  197.                 <li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">Отзывы</li>
  198.             {% endif %}
  199.         </ol>
  200.     </nav>
  201.     <div class=\"content-title alt-font\">
  202.         <h1 class=\"\">{{ title is defined ? title|raw : 'Отзывы' }}</h1>
  203.     </div>
  204.     <div class=\"px-2{{ category.getTypeID == constant('Slivki\\\\Entity\\\\Category::SUPPLIER_CATEGORY_TYPE') ? ' no-child-comment-margin'}}\">
  205.         {{ comments|raw }}
  206.     </div>
  207.     {% if category.getTypeID == constant('Slivki\\\\Entity\\\\Category::SUPPLIER_CATEGORY_TYPE') %}
  208.         {% include 'Slivki/pagination.html.twig' with {'paginationID': 'categoryCommentPagination', 'total': commentsCount//10, 'current': page, 'url': app.request.pathInfo() ~ '?page='} %}
  209.     {% endif %}
  210. {% endblock %}
  211. {% block javascripts %}
  212.     <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
  213.     {{ parent() }}
  214. {% endblock %}""Slivki/mobile/comment/index.html.twig""/mnt/data/virtwww/test1/templates/Slivki/mobile/comment/index.html.twig");
  215.     }
  216. }