<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* page/index.html.twig */
class __TwigTemplate_8a0bc7dae1d32bd14f2732d7bf760ecf406b70bbb409bfa201fe1f409e2f93b2 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/index.html.twig"));
$this->parent = $this->loadTemplate("layout/base.html.twig", "page/index.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_main($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 4
echo " ";
$this->loadTemplate("page/index.html.twig", "page/index.html.twig", 4, "583788031")->display($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "page/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 60 => 4, 51 => 3, 29 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{% extends 'layout/base.html.twig' %}
{% block main %}
{% embed settings.layoutMain %}
{% block content %}
<article class=\"staticPage\">
{% include 'component/banner/h1.html.twig' %}
{{ direct_edit(page) | raw }}
<h1 class=\"staticPage__title\">{{ page.getHeading() }}</h1>
{% if page.getImage or page.getAnnotation() %}
<div class=\"staticPage__top\">
{% if page.getImage %}
<img class=\"staticPage__img\" src=\"{{ page.getImageUri }}\" alt=\"{{ page.getHeading }}\">
{% endif %}
{% if page.getAnnotation() %}
<div class=\"staticPage__annotation\">
{{ page.getAnnotation() | raw }}
</div>
{% endif %}
</div>
{% endif %}
{% if page.getDescription() %}
<div class=\"staticPage__desc\">
{{ page.getDescription() | raw }}
</div>
{% endif %}
{% set photos = page.getImages() %}
{% if photos %}
<div class=\"staticPage__images\">
{% include 'component/shared/photos.html.twig' with {'photos': photos, 'heading': page.getHeadingPhotos, 'photosCount': page.getPhotosCount()} %}
</div>
{% endif %}
{# DS 2022-04-08 V083446 převzato z purusmedy #}
{% if files %}
<div class=\"staticPage__files\">
{% include 'component/shared/files.html.twig' with {'files': files, 'heading': page.getHeadingFiles()} %}
</div>
{% endif %}
{% if page.isShowSubpagesList %}
{% include 'component/pages/subpages.html.twig' with {'subpages':page.getConfirmedSubpages} %}
{% endif %}
{% for key, formInstance in formInstances %}
<div class=\"staticPage__form form\" id=\"Form_{{ formInstance.getId() }}\">
{% include formInstance.getTemplateFile() with { form: formViews[key], instance: formInstance } %}
</div>
{% endfor %}
{% if maps %}
<div class=\"staticPage__googleMap\">
{% include 'component/shared/google_maps.html.twig' with { maps: maps } %}
</div>
{% endif %}
{% if qSearch %}
<div class=\"staticPage__qSearch\">
{% include 'component/pages/q_search.html.twig' with { qSearch: qSearch } %}
</div>
{% endif %}
{# DS 2022-04-08 V083446 převzato z purusmedy #}
{% if newsletterForm is not null %}
{% include 'component/form/newsletterExtended/newsletterExtended.html.twig' %}
{% endif %}
</article>
{% endblock content %}
{% endembed %}
{% endblock main %}
", "page/index.html.twig", "/home/www/vac-star-b2c15/custom/src/EshopBundle/Resources/views/page/index.html.twig");
}
}
/* page/index.html.twig */
class __TwigTemplate_8a0bc7dae1d32bd14f2732d7bf760ecf406b70bbb409bfa201fe1f409e2f93b2___583788031 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
return $this->loadTemplate($this->getAttribute((isset($context["settings"]) ? $context["settings"] : $this->getContext($context, "settings")), "layoutMain", []), "page/index.html.twig", 4);
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page/index.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_content($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 6
echo " <article class=\"staticPage\">
";
// line 7
$this->loadTemplate("component/banner/h1.html.twig", "page/index.html.twig", 7)->display($context);
// line 8
echo " ";
echo $this->env->getExtension('EshopBundle\Twig\EditableExtension')->directEdit((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")));
echo "
<h1 class=\"staticPage__title\">";
// line 9
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getHeading", [], "method"), "html", null, true);
echo "</h1>
";
// line 10
if (($this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getImage", []) || $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getAnnotation", [], "method"))) {
// line 11
echo " <div class=\"staticPage__top\">
";
// line 12
if ($this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getImage", [])) {
// line 13
echo " <img class=\"staticPage__img\" src=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getImageUri", []), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getHeading", []), "html", null, true);
echo "\">
";
}
// line 15
echo "
";
// line 16
if ($this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getAnnotation", [], "method")) {
// line 17
echo " <div class=\"staticPage__annotation\">
";
// line 18
echo $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getAnnotation", [], "method");
echo "
</div>
";
}
// line 21
echo " </div>
";
}
// line 23
echo "
";
// line 24
if ($this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getDescription", [], "method")) {
// line 25
echo " <div class=\"staticPage__desc\">
";
// line 26
echo $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getDescription", [], "method");
echo "
</div>
";
}
// line 29
echo "
";
// line 30
$context["photos"] = $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getImages", [], "method");
// line 31
echo " ";
if ((isset($context["photos"]) ? $context["photos"] : $this->getContext($context, "photos"))) {
// line 32
echo " <div class=\"staticPage__images\">
";
// line 33
$this->loadTemplate("component/shared/photos.html.twig", "page/index.html.twig", 33)->display(twig_array_merge($context, ["photos" => (isset($context["photos"]) ? $context["photos"] : $this->getContext($context, "photos")), "heading" => $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getHeadingPhotos", []), "photosCount" => $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getPhotosCount", [], "method")]));
// line 34
echo " </div>
";
}
// line 36
echo "
";
// line 38
echo " ";
if ((isset($context["files"]) ? $context["files"] : $this->getContext($context, "files"))) {
// line 39
echo " <div class=\"staticPage__files\">
";
// line 40
$this->loadTemplate("component/shared/files.html.twig", "page/index.html.twig", 40)->display(twig_array_merge($context, ["files" => (isset($context["files"]) ? $context["files"] : $this->getContext($context, "files")), "heading" => $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getHeadingFiles", [], "method")]));
// line 41
echo " </div>
";
}
// line 43
echo "
";
// line 44
if ($this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "isShowSubpagesList", [])) {
// line 45
echo " ";
$this->loadTemplate("component/pages/subpages.html.twig", "page/index.html.twig", 45)->display(twig_array_merge($context, ["subpages" => $this->getAttribute((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")), "getConfirmedSubpages", [])]));
// line 46
echo " ";
}
// line 47
echo "
";
// line 48
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["formInstances"]) ? $context["formInstances"] : $this->getContext($context, "formInstances")));
$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["formInstance"]) {
// line 49
echo " <div class=\"staticPage__form form\" id=\"Form_";
echo twig_escape_filter($this->env, $this->getAttribute($context["formInstance"], "getId", [], "method"), "html", null, true);
echo "\">
";
// line 50
$this->loadTemplate($this->getAttribute($context["formInstance"], "getTemplateFile", [], "method"), "page/index.html.twig", 50)->display(twig_array_merge($context, ["form" => $this->getAttribute((isset($context["formViews"]) ? $context["formViews"] : $this->getContext($context, "formViews")), $context["key"], [], "array"), "instance" => $context["formInstance"]]));
// line 51
echo " </div>
";
++$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['formInstance'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 53
echo "
";
// line 54
if ((isset($context["maps"]) ? $context["maps"] : $this->getContext($context, "maps"))) {
// line 55
echo " <div class=\"staticPage__googleMap\">
";
// line 56
$this->loadTemplate("component/shared/google_maps.html.twig", "page/index.html.twig", 56)->display(twig_array_merge($context, ["maps" => (isset($context["maps"]) ? $context["maps"] : $this->getContext($context, "maps"))]));
// line 57
echo " </div>
";
}
// line 59
echo "
";
// line 60
if ((isset($context["qSearch"]) ? $context["qSearch"] : $this->getContext($context, "qSearch"))) {
// line 61
echo " <div class=\"staticPage__qSearch\">
";
// line 62
$this->loadTemplate("component/pages/q_search.html.twig", "page/index.html.twig", 62)->display(twig_array_merge($context, ["qSearch" => (isset($context["qSearch"]) ? $context["qSearch"] : $this->getContext($context, "qSearch"))]));
// line 63
echo " </div>
";
}
// line 65
echo "
";
// line 67
echo " ";
if ( !(null === (isset($context["newsletterForm"]) ? $context["newsletterForm"] : $this->getContext($context, "newsletterForm")))) {
// line 68
echo " ";
$this->loadTemplate("component/form/newsletterExtended/newsletterExtended.html.twig", "page/index.html.twig", 68)->display($context);
// line 69
echo " ";
}
// line 70
echo "
</article>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "page/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 404 => 70, 401 => 69, 398 => 68, 395 => 67, 392 => 65, 388 => 63, 386 => 62, 383 => 61, 381 => 60, 378 => 59, 374 => 57, 372 => 56, 369 => 55, 367 => 54, 364 => 53, 349 => 51, 347 => 50, 342 => 49, 325 => 48, 322 => 47, 319 => 46, 316 => 45, 314 => 44, 311 => 43, 307 => 41, 305 => 40, 302 => 39, 299 => 38, 296 => 36, 292 => 34, 290 => 33, 287 => 32, 284 => 31, 282 => 30, 279 => 29, 273 => 26, 270 => 25, 268 => 24, 265 => 23, 261 => 21, 255 => 18, 252 => 17, 250 => 16, 247 => 15, 239 => 13, 237 => 12, 234 => 11, 232 => 10, 228 => 9, 223 => 8, 221 => 7, 218 => 6, 209 => 5, 60 => 4, 51 => 3, 29 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{% extends 'layout/base.html.twig' %}
{% block main %}
{% embed settings.layoutMain %}
{% block content %}
<article class=\"staticPage\">
{% include 'component/banner/h1.html.twig' %}
{{ direct_edit(page) | raw }}
<h1 class=\"staticPage__title\">{{ page.getHeading() }}</h1>
{% if page.getImage or page.getAnnotation() %}
<div class=\"staticPage__top\">
{% if page.getImage %}
<img class=\"staticPage__img\" src=\"{{ page.getImageUri }}\" alt=\"{{ page.getHeading }}\">
{% endif %}
{% if page.getAnnotation() %}
<div class=\"staticPage__annotation\">
{{ page.getAnnotation() | raw }}
</div>
{% endif %}
</div>
{% endif %}
{% if page.getDescription() %}
<div class=\"staticPage__desc\">
{{ page.getDescription() | raw }}
</div>
{% endif %}
{% set photos = page.getImages() %}
{% if photos %}
<div class=\"staticPage__images\">
{% include 'component/shared/photos.html.twig' with {'photos': photos, 'heading': page.getHeadingPhotos, 'photosCount': page.getPhotosCount()} %}
</div>
{% endif %}
{# DS 2022-04-08 V083446 převzato z purusmedy #}
{% if files %}
<div class=\"staticPage__files\">
{% include 'component/shared/files.html.twig' with {'files': files, 'heading': page.getHeadingFiles()} %}
</div>
{% endif %}
{% if page.isShowSubpagesList %}
{% include 'component/pages/subpages.html.twig' with {'subpages':page.getConfirmedSubpages} %}
{% endif %}
{% for key, formInstance in formInstances %}
<div class=\"staticPage__form form\" id=\"Form_{{ formInstance.getId() }}\">
{% include formInstance.getTemplateFile() with { form: formViews[key], instance: formInstance } %}
</div>
{% endfor %}
{% if maps %}
<div class=\"staticPage__googleMap\">
{% include 'component/shared/google_maps.html.twig' with { maps: maps } %}
</div>
{% endif %}
{% if qSearch %}
<div class=\"staticPage__qSearch\">
{% include 'component/pages/q_search.html.twig' with { qSearch: qSearch } %}
</div>
{% endif %}
{# DS 2022-04-08 V083446 převzato z purusmedy #}
{% if newsletterForm is not null %}
{% include 'component/form/newsletterExtended/newsletterExtended.html.twig' %}
{% endif %}
</article>
{% endblock content %}
{% endembed %}
{% endblock main %}
", "page/index.html.twig", "/home/www/vac-star-b2c15/custom/src/EshopBundle/Resources/views/page/index.html.twig");
}
}