var/cache/dev/twig/12/125939dd10e560e41fd644dd74f991ba.php line 54

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. /* @FactorySupport/video/index.html.twig */
  15. class __TwigTemplate_d510c6221c5b87271514d7fbced2286e extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'contentBlock' => [$this'block_contentBlock'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "layout/default.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  38.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FactorySupport/video/index.html.twig"));
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FactorySupport/video/index.html.twig"));
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FactorySupport/video/index.html.twig"));
  43.         $this->parent $this->loadTemplate("layout/default.html.twig""@FactorySupport/video/index.html.twig"1);
  44.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  47.         
  48.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49.         
  50.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  51.     }
  52.     // line 3
  53.     public function block_contentBlock($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  57.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contentBlock"));
  62.         // line 4
  63.         yield "
  64. <div class=\"staticPage\">
  65.     <div class=\"container my-5 my-lg-5 my-md-5\">
  66.         <div class=\"row\">
  67.             <div class=\"col-lg-3\">
  68.                 <h4 class=\"font-weight-bold text-uppercase\">";
  69.         // line 9
  70.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources.pages.title"), "html"nulltrue);
  71.         yield "</h4>
  72.                 ";
  73.         // line 10
  74.         yield from         $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig""@FactorySupport/video/index.html.twig"10)->unwrap()->yield($context);
  75.         // line 11
  76.         yield "            </div>
  77.             <div class=\"col-lg-8\">
  78.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  79.                     <h1 class=\"font-italic font-weight-bold mb-0\">
  80.                         ";
  81.         // line 15
  82.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""heading", ["height" => 150"placeholder" => "Heading"]);
  83.         // line 19
  84.         yield "
  85.                     </h1>
  86.                 </div>
  87.                 <div class=\"row\">
  88.                     ";
  89.         // line 23
  90.         $context['_parent'] = $context;
  91.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'23$this->source); })()));
  92.         $context['loop'] = [
  93.           'parent' => $context['_parent'],
  94.           'index0' => 0,
  95.           'index'  => 1,
  96.           'first'  => true,
  97.         ];
  98.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  99.             $length count($context['_seq']);
  100.             $context['loop']['revindex0'] = $length 1;
  101.             $context['loop']['revindex'] = $length;
  102.             $context['loop']['length'] = $length;
  103.             $context['loop']['last'] = === $length;
  104.         }
  105.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  106.             // line 24
  107.             yield "                        <div class=\"col-lg-6 col-md-6 mb-4 mb-lg-4 mb-md-4\">
  108.                             ";
  109.             // line 25
  110.             yield from             $this->loadTemplate("Components/media/media-block.html.twig""@FactorySupport/video/index.html.twig"25)->unwrap()->yield(CoreExtension::merge($context$context["article"]));
  111.             // line 26
  112.             yield "                        </div>
  113.                         ";
  114.             // line 27
  115.             yield from             $this->loadTemplate("Components/media/video-modal.html.twig""@FactorySupport/video/index.html.twig"27)->unwrap()->yield(CoreExtension::merge($context, ["modalID" => ("Video-" CoreExtension::getAttribute($this->env$this->source,             // line 29
  116. $context["article"], "id", [], "any"falsefalsetrue29))]));
  117.             // line 32
  118.             yield "                    ";
  119.             ++$context['loop']['index0'];
  120.             ++$context['loop']['index'];
  121.             $context['loop']['first'] = false;
  122.             if (isset($context['loop']['length'])) {
  123.                 --$context['loop']['revindex0'];
  124.                 --$context['loop']['revindex'];
  125.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  126.             }
  127.         }
  128.         $_parent $context['_parent'];
  129.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  130.         $context array_intersect_key($context$_parent) + $_parent;
  131.         // line 33
  132.         yield "                </div>
  133.                 <div class=\"row ";
  134.         // line 34
  135.         yield (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["paginator"]) || array_key_exists("paginator"$context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.'34$this->source); })()), "paginationData", [], "any"falsefalsetrue34), "pageCount", [], "any"falsefalsetrue34) == 1)) ? ("d-none") : (""));
  136.         yield "\">
  137.                     <div class=\"col-lg-6 offset-lg-3\">
  138.                         ";
  139.         // line 36
  140.         yield from         $this->loadTemplate("Components/pagination.html.twig""@FactorySupport/video/index.html.twig"36)->unwrap()->yield(CoreExtension::merge($context, (isset($context["paginator"]) || array_key_exists("paginator"$context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.'36$this->source); })())));
  141.         // line 37
  142.         yield "                    </div>
  143.                 </div>
  144.             </div>
  145.         </div>
  146.     </div>
  147. </div>
  148. ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.         
  154.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  155.         return; yield '';
  156.     }
  157.     /**
  158.      * @codeCoverageIgnore
  159.      */
  160.     public function getTemplateName()
  161.     {
  162.         return "@FactorySupport/video/index.html.twig";
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function isTraitable()
  168.     {
  169.         return false;
  170.     }
  171.     /**
  172.      * @codeCoverageIgnore
  173.      */
  174.     public function getDebugInfo()
  175.     {
  176.         return array (  159 => 37,  157 => 36,  152 => 34,  149 => 33,  135 => 32,  133 => 29,  132 => 27,  129 => 26,  127 => 25,  124 => 24,  107 => 23,  101 => 19,  99 => 15,  93 => 11,  91 => 10,  87 => 9,  80 => 4,  67 => 3,  38 => 1,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{% extends 'layout/default.html.twig' %}
  181. {% block contentBlock %}
  182. <div class=\"staticPage\">
  183.     <div class=\"container my-5 my-lg-5 my-md-5\">
  184.         <div class=\"row\">
  185.             <div class=\"col-lg-3\">
  186.                 <h4 class=\"font-weight-bold text-uppercase\">{{ 'Resources.pages.title' | trans }}</h4>
  187.                 {% include 'document/static_page/sidebar/sidebar.html.twig' %}
  188.             </div>
  189.             <div class=\"col-lg-8\">
  190.                 <div class=\"mb-4 mb-lg-4 mb-md-4\">
  191.                     <h1 class=\"font-italic font-weight-bold mb-0\">
  192.                         {{ pimcore_input('heading',{
  193.                                 \"height\": 150,
  194.                                 \"placeholder\": \"Heading\"
  195.                             })
  196.                         }}
  197.                     </h1>
  198.                 </div>
  199.                 <div class=\"row\">
  200.                     {% for article in articles %}
  201.                         <div class=\"col-lg-6 col-md-6 mb-4 mb-lg-4 mb-md-4\">
  202.                             {% include 'Components/media/media-block.html.twig' with article %}
  203.                         </div>
  204.                         {% include 'Components/media/video-modal.html.twig' with
  205.                             {
  206.                                 modalID: 'Video-' ~ article.id
  207.                             }
  208.                         %}
  209.                     {% endfor %}
  210.                 </div>
  211.                 <div class=\"row {{ paginator.paginationData.pageCount == 1 ? 'd-none' }}\">
  212.                     <div class=\"col-lg-6 offset-lg-3\">
  213.                         {% include 'Components/pagination.html.twig' with paginator %}
  214.                     </div>
  215.                 </div>
  216.             </div>
  217.         </div>
  218.     </div>
  219. </div>
  220. {% endblock %}""@FactorySupport/video/index.html.twig""/var/www/webovi/stoelting/pimcore/templates/video/index.html.twig");
  221.     }
  222.     
  223.     public function checkSecurity()
  224.     {
  225.         static $tags = array("include" => 10"for" => 23);
  226.         static $filters = array("escape" => 9"trans" => 9);
  227.         static $functions = array("pimcore_input" => 15);
  228.         try {
  229.             $this->sandbox->checkSecurity(
  230.                 ['include''for'],
  231.                 ['escape''trans'],
  232.                 ['pimcore_input'],
  233.                 $this->source
  234.             );
  235.         } catch (SecurityError $e) {
  236.             $e->setSourceContext($this->source);
  237.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  238.                 $e->setTemplateLine($tags[$e->getTagName()]);
  239.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  240.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  241.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  242.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  243.             }
  244.             throw $e;
  245.         }
  246.     }
  247. }