<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Slivki/mobile/comment/index.html.twig */
class __TwigTemplate_ebe020554f2ca6b2da19449b64c4219529ad7bbd4d778e5dd853adba17c789a9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'styles' => [$this, 'block_styles'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Slivki/mobile/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/comment/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Slivki/mobile/comment/index.html.twig"));
$this->parent = $this->loadTemplate("Slivki/mobile/base.html.twig", "Slivki/mobile/comment/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_styles($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "styles"));
// line 4
echo " <link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
";
// line 5
$this->displayParentBlock("styles", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo " <nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 11
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", null, true);
echo "\">Главная</a></li>
";
// line 12
if (array_key_exists("category", $context)) {
// line 13
echo " <li class=\"breadcrumb-item\"><a href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("commentsLive");
echo "\">Отзывы</a></li>
";
// line 14
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["parentCategory"]) {
// line 15
echo " <li class=\"breadcrumb-item\"><a href=\"/otzyvy";
echo twig_escape_filter($this->env, $this->extensions['Slivki\Twig\SlivkiTwigExtension']->getCategoryURL($context["parentCategory"]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["parentCategory"], "getName", [], "method", false, false, false, 15), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['parentCategory'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
echo " <li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">";
echo twig_escape_filter($this->env, 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.', 17, $this->source); })()), "getName", [], "method", false, false, false, 17), "html", null, true);
echo "</li>
";
} else {
// line 19
echo " <li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">Отзывы</li>
";
}
// line 21
echo " </ol>
</nav>
<div class=\"content-title alt-font\">
<h1 class=\"\">";
// line 24
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); })())) : ("Отзывы"));
echo "</h1>
</div>
<div class=\"px-2";
// line 26
echo (((0 === 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", false, false, false, 26), twig_constant("Slivki\\Entity\\Category::SUPPLIER_CATEGORY_TYPE")))) ? (" no-child-comment-margin") : (""));
echo "\">
";
// line 27
echo (isset($context["comments"]) || array_key_exists("comments", $context) ? $context["comments"] : (function () { throw new RuntimeError('Variable "comments" does not exist.', 27, $this->source); })());
echo "
</div>
";
// line 29
if ((0 === 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", false, false, false, 29), twig_constant("Slivki\\Entity\\Category::SUPPLIER_CATEGORY_TYPE")))) {
// line 30
echo " ";
$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->source, twig_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", false, false, false, 30), "pathInfo", [], "method", false, false, false, 30) . "?page=")]));
// line 31
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 35
echo " <script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
";
// line 36
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/mobile/comment/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'Slivki/mobile/base.html.twig' %}
{% block styles %}
<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css\" />
{{ parent() }}
{% endblock %}
{% block content %}
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb m-0 py-1 px-2 bg-white\">
<li class=\"breadcrumb-item\"><a href=\"{{ base_url }}\">Главная</a></li>
{% if category is defined %}
<li class=\"breadcrumb-item\"><a href=\"{{ path('commentsLive') }}\">Отзывы</a></li>
{% for parentCategory in parentCategories %}
<li class=\"breadcrumb-item\"><a href=\"/otzyvy{{ getCategoryURL(parentCategory) }}\">{{ parentCategory.getName() }}</a></li>
{% endfor %}
<li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">{{ category.getName() }}</li>
{% else %}
<li class=\"breadcrumb-item active text-muted\" aria-current=\"page\">Отзывы</li>
{% endif %}
</ol>
</nav>
<div class=\"content-title alt-font\">
<h1 class=\"\">{{ title is defined ? title|raw : 'Отзывы' }}</h1>
</div>
<div class=\"px-2{{ category.getTypeID == constant('Slivki\\\\Entity\\\\Category::SUPPLIER_CATEGORY_TYPE') ? ' no-child-comment-margin'}}\">
{{ comments|raw }}
</div>
{% if category.getTypeID == constant('Slivki\\\\Entity\\\\Category::SUPPLIER_CATEGORY_TYPE') %}
{% include 'Slivki/pagination.html.twig' with {'paginationID': 'categoryCommentPagination', 'total': commentsCount//10, 'current': page, 'url': app.request.pathInfo() ~ '?page='} %}
{% endif %}
{% endblock %}
{% block javascripts %}
<script src=\"https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js\"></script>
{{ parent() }}
{% endblock %}", "Slivki/mobile/comment/index.html.twig", "/mnt/data/virtwww/test1/templates/Slivki/mobile/comment/index.html.twig");
}
}