<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* default/watch-landing.html.twig */
class __TwigTemplate_d23e5ed53fd25a51832b556d048ec292 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 6
return $this->loadTemplate((isset($context["_layout"]) || array_key_exists("_layout", $context) ? $context["_layout"] : (function () { throw new RuntimeError('Variable "_layout" does not exist.', 6, $this->source); })()), "default/watch-landing.html.twig", 6);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/watch-landing.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/watch-landing.html.twig"));
// line 1
if (((isset($context["clubsite"]) || array_key_exists("clubsite", $context) ? $context["clubsite"] : (function () { throw new RuntimeError('Variable "clubsite" does not exist.', 1, $this->source); })()) || (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })()) && twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "path", [], "any", true, true, true, 1)) && twig_in_filter("/SeikoClub/", twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 1, $this->source); })()), "path", [], "any", false, false, true, 1))))) {
// line 2
$context["_layout"] = "seikoclub/layout.html.twig";
} else {
// line 4
$context["_layout"] = "@CoreShopFrontend/layout.html.twig";
}
// line 6
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 9
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 9, $this->source); })())) {
// line 10
echo " <div style=\"height: 100px;\">a</div>
";
}
// line 12
echo " <div class=\"container\">
<div class=\"magazine-landing-placeholder\"></div>
";
// line 14
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "watch-landing-block", ["allowed" => ["watches-landing-banner", "watch-landing", "popular-watches", "watches-news"], "limits" => ["popular-watches" => 1, "watches-landing-banner" => 1, "watches-news" => 1], "params" => []]);
// line 24
echo "
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 28
public function block_scripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 29
echo " ";
$this->displayParentBlock("scripts", $context, $blocks);
echo "
";
// line 30
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/watch-landing-banner.js")], "method", false, false, true, 30);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/watch-landing.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 119 => 30, 114 => 29, 104 => 28, 92 => 24, 90 => 14, 86 => 12, 82 => 10, 79 => 9, 69 => 8, 59 => 6, 56 => 4, 53 => 2, 51 => 1, 38 => 6,);
}
public function getSourceContext()
{
return new Source("{% if clubsite or (editmode and document.path is defined and '/SeikoClub/' in document.path) %}
{% set _layout = 'seikoclub/layout.html.twig' %}
{% else %}
{% set _layout = '@CoreShopFrontend/layout.html.twig' %}
{% endif %}
{% extends _layout %}
{% block content %}
{% if editmode %}
<div style=\"height: 100px;\">a</div>
{% endif %}
<div class=\"container\">
<div class=\"magazine-landing-placeholder\"></div>
{{ pimcore_areablock('watch-landing-block', {
'allowed' : ['watches-landing-banner','watch-landing', 'popular-watches', 'watches-news'],
'limits' : {
'popular-watches': 1,
'watches-landing-banner': 1,
'watches-news': 1
},
'params': {
}
}) }}
</div>
{% endblock %}
{% block scripts %}
{{ parent() }}
{% do pimcore_head_script().appendFile(asset('js/watch-landing-banner.js')) %}
{% endblock %}", "default/watch-landing.html.twig", "/home/zoltan/public_html/boutique-v2/templates/default/watch-landing.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "set" => 2, "do" => 30);
static $filters = array();
static $functions = array("pimcore_areablock" => 14, "pimcore_head_script" => 30, "asset" => 30);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'do'],
[],
['pimcore_areablock', 'pimcore_head_script', 'asset']
);
} 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;
}
}
}