var/cache/dev/twig/a7/a74332377c9bdccf038789330e416de8.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* /pages/page.html.twig */
  16. class __TwigTemplate_3f6ed57fcc712d2f300c92a3bf226d89 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'customcss' => [$this'block_customcss'],
  29.             'body' => [$this'block_body'],
  30.             'javascripts' => [$this'block_javascripts'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 2
  36.         return "base.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""/pages/page.html.twig"));
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""/pages/page.html.twig"));
  45.         $this->parent $this->load("base.html.twig"2);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 4
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_customcss(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""customcss"));
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""customcss"));
  63.         // line 5
  64.         yield "    ";
  65.         yield from $this->yieldParentBlock("customcss"$context$blocks);
  66.         yield "
  67.     <link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/custom/css/media.min.";
  68.         // line 6
  69.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "server", [], "any"falsefalsefalse6), "get", ["APP_PREVCACHE"], "method"falsefalsefalse6), "html"nulltrue);
  70.         yield ".css\" />
  71. ";
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.         
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76.         yield from [];
  77.     }
  78.     // line 9
  79.     /**
  80.      * @return iterable<null|scalar|\Stringable>
  81.      */
  82.     public function block_body(array $context, array $blocks = []): iterable
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  89.         // line 10
  90.         yield "
  91.     <div class=\" ms-hero-page ms-hero-bg-info mb-6\" style=\"background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('";
  92.         // line 11
  93.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'11$this->source); })()), "picture", [], "any"falsefalsefalse11), "small", [], "any"falsefalsefalse11), "html"nulltrue);
  94.         yield "');\">
  95.         ";
  96.         // line 13
  97.         if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["pageinfo"]) || array_key_exists("pageinfo"$context) ? $context["pageinfo"] : (function () { throw new RuntimeError('Variable "pageinfo" does not exist.'13$this->source); })()), "info", [], "any"falsefalsefalse13) != "")) {
  98.             // line 14
  99.             yield "            <div class=\"container\" style=\"position: relative; top: -80px\">
  100.                 <div id=\"id-header-news\">
  101.                     <i class=\"fa fa-info-circle\"></i>
  102.                     <div class=\"marquee\">
  103.                         <div class=\"marquee-content\">";
  104.             // line 18
  105.             yield CoreExtension::getAttribute($this->env$this->source, (isset($context["pageinfo"]) || array_key_exists("pageinfo"$context) ? $context["pageinfo"] : (function () { throw new RuntimeError('Variable "pageinfo" does not exist.'18$this->source); })()), "info", [], "any"falsefalsefalse18);
  106.             yield "</div>
  107.                     </div>
  108.                 </div>
  109.             </div>
  110.         ";
  111.         }
  112.         // line 23
  113.         yield "
  114.         <div class=\"text-center color-white mt-6 mb-6 index-1\">
  115.             <h1>";
  116.         // line 25
  117.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'25$this->source); })()), "title", [], "any"falsefalsefalse25), "html"nulltrue);
  118.         yield "</h1>
  119.         </div>
  120.     </div>
  121.     ";
  122.         // line 30
  123.         if ((Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["html"]) || array_key_exists("html"$context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.'30$this->source); })()), 205) == "list1")) {
  124.             // line 31
  125.             yield "        <article class=\"container\" style=\"margin-top: -110px\">
  126.             <div class=\"row\">
  127.                 <div class=\"col-lg-8\">
  128.                     ";
  129.             // line 34
  130.             yield (isset($context["html"]) || array_key_exists("html"$context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.'34$this->source); })());
  131.             yield "
  132.                 </div>
  133.                 ";
  134.             // line 36
  135.             yield from $this->load("partials/sidecol.html.twig"36)->unwrap()->yield($context);
  136.             // line 37
  137.             yield "            </div>
  138.         </article>
  139.     ";
  140.         } else {
  141.             // line 40
  142.             yield "        <div class=\"container\" style=\"margin-top: -110px\">
  143.         <div class=\"row\">
  144.             <div class=\"col-lg-9\">
  145.                 ";
  146.             // line 43
  147.             yield (isset($context["html"]) || array_key_exists("html"$context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.'43$this->source); })());
  148.             yield "
  149.             </div>
  150.             ";
  151.             // line 45
  152.             yield from $this->load("partials/sidecol.html.twig"45)->unwrap()->yield($context);
  153.             // line 46
  154.             yield "        </div>
  155.     ";
  156.         }
  157.         // line 48
  158.         yield "
  159. </div>
  160. ";
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.         yield from [];
  166.     }
  167.     // line 54
  168.     /**
  169.      * @return iterable<null|scalar|\Stringable>
  170.      */
  171.     public function block_javascripts(array $context, array $blocks = []): iterable
  172.     {
  173.         $macros $this->macros;
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  178.         // line 55
  179.         yield "    ";
  180.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  181.         yield "
  182.     <script src=\"/assets/js/component-carousels-1.js\"></script>
  183.     <script>
  184.         \$(document).ready(function(){
  185.             ";
  186.         // line 60
  187.         if ((Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["html"]) || array_key_exists("html"$context) ? $context["html"] : (function () { throw new RuntimeError('Variable "html" does not exist.'60$this->source); })()), 205) != "list1")) {
  188.             // line 61
  189.             yield "                \$('article.card').css('min-height', '1460px');
  190.             ";
  191.         }
  192.         // line 63
  193.         yield "            \$( 'a.custom-collapsed' ).click(function( index ) {
  194.                 console.log(element_id);
  195.                     var element_id = \$(this).data('id');
  196.                     var toggle = \$(this).data('toggle');
  197.                     if (toggle == 'collapse') {
  198.                         \$(this).removeClass('collapsed');
  199.                         \$(this).addClass('collapse');
  200.                         \$(this).data('toggle', 'collapsed');
  201.                         \$('#'+element_id).collapse('show');
  202.                     }
  203.                     else {
  204.                         \$(this).removeClass('collapse');
  205.                         \$(this).addClass('collapsed');
  206.                         \$(this).data('collapse');
  207.                         \$(this).data('toggle', 'collapse');
  208.                         \$('#'+element_id).collapse('hide');
  209.                     }
  210.             });
  211.             //<a class=\"collapsed\" role=\"button\" data-toggle=\"collapse\" data-id=\"collapse16\" aria-expanded=\"false\" aria-controls=\"collapse16\">
  212.         });
  213.     </script>
  214. ";
  215.         
  216.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  217.         
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  219.         yield from [];
  220.     }
  221.     /**
  222.      * @codeCoverageIgnore
  223.      */
  224.     public function getTemplateName(): string
  225.     {
  226.         return "/pages/page.html.twig";
  227.     }
  228.     /**
  229.      * @codeCoverageIgnore
  230.      */
  231.     public function isTraitable(): bool
  232.     {
  233.         return false;
  234.     }
  235.     /**
  236.      * @codeCoverageIgnore
  237.      */
  238.     public function getDebugInfo(): array
  239.     {
  240.         return array (  222 => 63,  218 => 61,  216 => 60,  207 => 55,  194 => 54,  180 => 48,  176 => 46,  174 => 45,  169 => 43,  164 => 40,  159 => 37,  157 => 36,  152 => 34,  147 => 31,  145 => 30,  137 => 25,  133 => 23,  125 => 18,  119 => 14,  117 => 13,  112 => 11,  109 => 10,  96 => 9,  83 => 6,  78 => 5,  65 => 4,  42 => 2,);
  241.     }
  242.     public function getSourceContext(): Source
  243.     {
  244.         return new Source("{# @var page \\App\\Controller\\Objects\\Page #}
  245. {% extends 'base.html.twig' %}
  246. {% block customcss %}
  247.     {{ parent() }}
  248.     <link rel=\"stylesheet\" type=\"text/css\" href=\"/assets/custom/css/media.min.{{ app.request.server.get('APP_PREVCACHE') }}.css\" />
  249. {% endblock %}
  250. {% block body %}
  251.     <div class=\" ms-hero-page ms-hero-bg-info mb-6\" style=\"background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('{{ page.picture.small }}');\">
  252.         {% if pageinfo.info != '' %}
  253.             <div class=\"container\" style=\"position: relative; top: -80px\">
  254.                 <div id=\"id-header-news\">
  255.                     <i class=\"fa fa-info-circle\"></i>
  256.                     <div class=\"marquee\">
  257.                         <div class=\"marquee-content\">{{ pageinfo.info|raw }}</div>
  258.                     </div>
  259.                 </div>
  260.             </div>
  261.         {% endif %}
  262.         <div class=\"text-center color-white mt-6 mb-6 index-1\">
  263.             <h1>{{ page.title }}</h1>
  264.         </div>
  265.     </div>
  266.     {% if html|raw|slice(20, 5) == 'list1' %}
  267.         <article class=\"container\" style=\"margin-top: -110px\">
  268.             <div class=\"row\">
  269.                 <div class=\"col-lg-8\">
  270.                     {{ html|raw }}
  271.                 </div>
  272.                 {% include 'partials/sidecol.html.twig' %}
  273.             </div>
  274.         </article>
  275.     {% else %}
  276.         <div class=\"container\" style=\"margin-top: -110px\">
  277.         <div class=\"row\">
  278.             <div class=\"col-lg-9\">
  279.                 {{ html|raw }}
  280.             </div>
  281.             {% include 'partials/sidecol.html.twig' %}
  282.         </div>
  283.     {% endif %}
  284. </div>
  285. {% endblock %}
  286. {% block javascripts %}
  287.     {{ parent() }}
  288.     <script src=\"/assets/js/component-carousels-1.js\"></script>
  289.     <script>
  290.         \$(document).ready(function(){
  291.             {% if html|raw|slice(20, 5) != 'list1' %}
  292.                 \$('article.card').css('min-height', '1460px');
  293.             {% endif %}
  294.             \$( 'a.custom-collapsed' ).click(function( index ) {
  295.                 console.log(element_id);
  296.                     var element_id = \$(this).data('id');
  297.                     var toggle = \$(this).data('toggle');
  298.                     if (toggle == 'collapse') {
  299.                         \$(this).removeClass('collapsed');
  300.                         \$(this).addClass('collapse');
  301.                         \$(this).data('toggle', 'collapsed');
  302.                         \$('#'+element_id).collapse('show');
  303.                     }
  304.                     else {
  305.                         \$(this).removeClass('collapse');
  306.                         \$(this).addClass('collapsed');
  307.                         \$(this).data('collapse');
  308.                         \$(this).data('toggle', 'collapse');
  309.                         \$('#'+element_id).collapse('hide');
  310.                     }
  311.             });
  312.             //<a class=\"collapsed\" role=\"button\" data-toggle=\"collapse\" data-id=\"collapse16\" aria-expanded=\"false\" aria-controls=\"collapse16\">
  313.         });
  314.     </script>
  315. {% endblock %}
  316. ""/pages/page.html.twig""/var/www/clients/client0/web40/private/templates/pages/page.html.twig");
  317.     }
  318. }