<?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/pages/pages.html.twig */
class __TwigTemplate_8aaa7df15ef73353ea5971a6229ae0b204a0dd98f91214def68433d9f9b9d7ed extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'mainColumnClass' => [$this, 'block_mainColumnClass'],
'main_content' => [$this, 'block_main_content'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "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/pages/pages.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/pages/pages.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "Slivki/pages/pages.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_mainColumnClass($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", "mainColumnClass"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "mainColumnClass"));
// line 4
echo " full-width-content
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_main_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", "main_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main_content"));
// line 8
echo " <div class=\"content--page";
echo ((( !(isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 8, $this->source); })()) && (0 === twig_compare( !twig_get_attribute($this->env, $this->source, (isset($context["infoPage"]) || array_key_exists("infoPage", $context) ? $context["infoPage"] : (function () { throw new RuntimeError('Variable "infoPage" does not exist.', 8, $this->source); })()), "getType", [], "method", false, false, false, 8), twig_constant("Slivki\\Entity\\InfoPage::DIRECTOR_INFO_TYPE"))))) ? (" content--has-sidebar") : (""));
echo "\">
<div class=\"breadcrumbs\">
<a href=\"";
// line 10
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.', 10, $this->source); })()), "html", null, true);
echo "\">Главная</a>
<i class=\"fa fa-angle-right\"></i> ";
// line 11
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["infoPage"]) || array_key_exists("infoPage", $context) ? $context["infoPage"] : (function () { throw new RuntimeError('Variable "infoPage" does not exist.', 11, $this->source); })()), "getName", [], "method", false, false, false, 11), "html", null, true);
echo "
</div>
<div class=\"clear\"></div>
<div class=\"infoPageBody\">
";
// line 15
echo (isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 15, $this->source); })());
echo "
</div>
";
// line 17
if (( !(isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 17, $this->source); })()) && (0 === twig_compare( !twig_get_attribute($this->env, $this->source, (isset($context["infoPage"]) || array_key_exists("infoPage", $context) ? $context["infoPage"] : (function () { throw new RuntimeError('Variable "infoPage" does not exist.', 17, $this->source); })()), "getType", [], "method", false, false, false, 17), twig_constant("Slivki\\Entity\\InfoPage::DIRECTOR_INFO_TYPE"))))) {
// line 18
echo " ";
$this->loadTemplate("Slivki/pages/sidebar.html.twig", "Slivki/pages/pages.html.twig", 18)->display($context);
// line 19
echo " ";
}
// line 20
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 23
public function block_footer($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", "footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 24
echo " ";
if ((isset($context["director"]) || array_key_exists("director", $context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.', 24, $this->source); })())) {
// line 25
echo " ";
$this->loadTemplate("Slivki/footer_for_partner.html.twig", "Slivki/pages/pages.html.twig", 25)->display($context);
// line 26
echo " ";
} else {
// line 27
echo " ";
$this->displayParentBlock("footer", $context, $blocks);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Slivki/pages/pages.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 151 => 27, 148 => 26, 145 => 25, 142 => 24, 132 => 23, 121 => 20, 118 => 19, 115 => 18, 113 => 17, 108 => 15, 101 => 11, 97 => 10, 91 => 8, 81 => 7, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block mainColumnClass %}
full-width-content
{% endblock %}
{% block main_content %}
<div class=\"content--page{{ not director and not infoPage.getType() == constant('Slivki\\\\Entity\\\\InfoPage::DIRECTOR_INFO_TYPE') ? ' content--has-sidebar'}}\">
<div class=\"breadcrumbs\">
<a href=\"{{ base_url }}\">Главная</a>
<i class=\"fa fa-angle-right\"></i> {{ infoPage.getName() }}
</div>
<div class=\"clear\"></div>
<div class=\"infoPageBody\">
{{ text|raw }}
</div>
{% if not director and not infoPage.getType() == constant('Slivki\\\\Entity\\\\InfoPage::DIRECTOR_INFO_TYPE') %}
{% include 'Slivki/pages/sidebar.html.twig' %}
{% endif %}
</div>
{% endblock %}
{% block footer %}
{% if director %}
{% include 'Slivki/footer_for_partner.html.twig' %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}", "Slivki/pages/pages.html.twig", "/mnt/data/virtwww/dima/templates/Slivki/pages/pages.html.twig");
}
}