<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* @FactorySupport/video/index.html.twig */
class __TwigTemplate_d510c6221c5b87271514d7fbced2286e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contentBlock' => [$this, 'block_contentBlock'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FactorySupport/video/index.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FactorySupport/video/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FactorySupport/video/index.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "@FactorySupport/video/index.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_contentBlock($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
// line 4
yield "
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">";
// line 9
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resources.pages.title"), "html", null, true);
yield "</h4>
";
// line 10
yield from $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig", "@FactorySupport/video/index.html.twig", 10)->unwrap()->yield($context);
// line 11
yield " </div>
<div class=\"col-lg-8\">
<div class=\"mb-4 mb-lg-4 mb-md-4\">
<h1 class=\"font-italic font-weight-bold mb-0\">
";
// line 15
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "heading", ["height" => 150, "placeholder" => "Heading"]);
// line 19
yield "
</h1>
</div>
<div class=\"row\">
";
// line 23
$context['_parent'] = $context;
$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); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 24
yield " <div class=\"col-lg-6 col-md-6 mb-4 mb-lg-4 mb-md-4\">
";
// line 25
yield from $this->loadTemplate("Components/media/media-block.html.twig", "@FactorySupport/video/index.html.twig", 25)->unwrap()->yield(CoreExtension::merge($context, $context["article"]));
// line 26
yield " </div>
";
// line 27
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
$context["article"], "id", [], "any", false, false, true, 29))]));
// line 32
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 33
yield " </div>
<div class=\"row ";
// line 34
yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, true, 34), "pageCount", [], "any", false, false, true, 34) == 1)) ? ("d-none") : (""));
yield "\">
<div class=\"col-lg-6 offset-lg-3\">
";
// line 36
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); })())));
// line 37
yield " </div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@FactorySupport/video/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">{{ 'Resources.pages.title' | trans }}</h4>
{% include 'document/static_page/sidebar/sidebar.html.twig' %}
</div>
<div class=\"col-lg-8\">
<div class=\"mb-4 mb-lg-4 mb-md-4\">
<h1 class=\"font-italic font-weight-bold mb-0\">
{{ pimcore_input('heading',{
\"height\": 150,
\"placeholder\": \"Heading\"
})
}}
</h1>
</div>
<div class=\"row\">
{% for article in articles %}
<div class=\"col-lg-6 col-md-6 mb-4 mb-lg-4 mb-md-4\">
{% include 'Components/media/media-block.html.twig' with article %}
</div>
{% include 'Components/media/video-modal.html.twig' with
{
modalID: 'Video-' ~ article.id
}
%}
{% endfor %}
</div>
<div class=\"row {{ paginator.paginationData.pageCount == 1 ? 'd-none' }}\">
<div class=\"col-lg-6 offset-lg-3\">
{% include 'Components/pagination.html.twig' with paginator %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "@FactorySupport/video/index.html.twig", "/var/www/webovi/stoelting/pimcore/templates/video/index.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 10, "for" => 23);
static $filters = array("escape" => 9, "trans" => 9);
static $functions = array("pimcore_input" => 15);
try {
$this->sandbox->checkSecurity(
['include', 'for'],
['escape', 'trans'],
['pimcore_input'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}