var/cache/dev/twig/e3/e39d298a766e211af7dbf8952c317b69524ae85eb8557f701129d14748bbf14e.php line 40

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/pages/pages.html.twig */
  14. class __TwigTemplate_8aaa7df15ef73353ea5971a6229ae0b204a0dd98f91214def68433d9f9b9d7ed 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.             'mainColumnClass' => [$this'block_mainColumnClass'],
  24.             'main_content' => [$this'block_main_content'],
  25.             'footer' => [$this'block_footer'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "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/pages/pages.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/pages/pages.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""Slivki/pages/pages.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_mainColumnClass($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""mainColumnClass"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""mainColumnClass"));
  55.         // line 4
  56.         echo "    full-width-content
  57. ";
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.         
  61.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  62.     }
  63.     // line 7
  64.     public function block_main_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main_content"));
  71.         // line 8
  72.         echo "    <div class=\"content--page";
  73.         echo ((( !(isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'8$this->source); })()) && (=== 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"falsefalsefalse8), twig_constant("Slivki\\Entity\\InfoPage::DIRECTOR_INFO_TYPE"))))) ? (" content--has-sidebar") : (""));
  74.         echo "\">
  75.     <div class=\"breadcrumbs\">
  76.         <a href=\"";
  77.         // line 10
  78.         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"nulltrue);
  79.         echo "\">Главная</a>
  80.         <i class=\"fa fa-angle-right\"></i> ";
  81.         // line 11
  82.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse11), "html"nulltrue);
  83.         echo "
  84.     </div>
  85.         <div class=\"clear\"></div>
  86.         <div class=\"infoPageBody\">
  87.             ";
  88.         // line 15
  89.         echo (isset($context["text"]) || array_key_exists("text"$context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.'15$this->source); })());
  90.         echo "
  91.         </div>
  92.         ";
  93.         // line 17
  94.         if (( !(isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'17$this->source); })()) && (=== 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"falsefalsefalse17), twig_constant("Slivki\\Entity\\InfoPage::DIRECTOR_INFO_TYPE"))))) {
  95.             // line 18
  96.             echo "            ";
  97.             $this->loadTemplate("Slivki/pages/sidebar.html.twig""Slivki/pages/pages.html.twig"18)->display($context);
  98.             // line 19
  99.             echo "        ";
  100.         }
  101.         // line 20
  102.         echo "    </div>
  103. ";
  104.         
  105.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.     }
  109.     // line 23
  110.     public function block_footer($context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  115.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  117.         // line 24
  118.         echo "    ";
  119.         if ((isset($context["director"]) || array_key_exists("director"$context) ? $context["director"] : (function () { throw new RuntimeError('Variable "director" does not exist.'24$this->source); })())) {
  120.             // line 25
  121.             echo "        ";
  122.             $this->loadTemplate("Slivki/footer_for_partner.html.twig""Slivki/pages/pages.html.twig"25)->display($context);
  123.             // line 26
  124.             echo "    ";
  125.         } else {
  126.             // line 27
  127.             echo "        ";
  128.             $this->displayParentBlock("footer"$context$blocks);
  129.             echo "
  130.     ";
  131.         }
  132.         
  133.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  134.         
  135.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  136.     }
  137.     public function getTemplateName()
  138.     {
  139.         return "Slivki/pages/pages.html.twig";
  140.     }
  141.     public function isTraitable()
  142.     {
  143.         return false;
  144.     }
  145.     public function getDebugInfo()
  146.     {
  147.         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,);
  148.     }
  149.     public function getSourceContext()
  150.     {
  151.         return new Source("{% extends 'base.html.twig' %}
  152. {% block mainColumnClass %}
  153.     full-width-content
  154. {% endblock %}
  155. {% block main_content %}
  156.     <div class=\"content--page{{ not director and not infoPage.getType() == constant('Slivki\\\\Entity\\\\InfoPage::DIRECTOR_INFO_TYPE') ? ' content--has-sidebar'}}\">
  157.     <div class=\"breadcrumbs\">
  158.         <a href=\"{{ base_url }}\">Главная</a>
  159.         <i class=\"fa fa-angle-right\"></i> {{ infoPage.getName() }}
  160.     </div>
  161.         <div class=\"clear\"></div>
  162.         <div class=\"infoPageBody\">
  163.             {{ text|raw }}
  164.         </div>
  165.         {% if not director and not infoPage.getType() == constant('Slivki\\\\Entity\\\\InfoPage::DIRECTOR_INFO_TYPE') %}
  166.             {% include 'Slivki/pages/sidebar.html.twig' %}
  167.         {% endif %}
  168.     </div>
  169. {% endblock %}
  170. {% block footer %}
  171.     {% if director %}
  172.         {% include 'Slivki/footer_for_partner.html.twig' %}
  173.     {% else %}
  174.         {{ parent() }}
  175.     {% endif %}
  176. {% endblock %}""Slivki/pages/pages.html.twig""/mnt/data/virtwww/dima/templates/Slivki/pages/pages.html.twig");
  177.     }
  178. }