var/cache/dev/twig/d1/d16ce7729f3dd6f7a1802cf6ae7d8845.php line 69

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* default/watch-landing.html.twig */
  14. class __TwigTemplate_d23e5ed53fd25a51832b556d048ec292 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'scripts' => [$this'block_scripts'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 6
  32.         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);
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/watch-landing.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/watch-landing.html.twig"));
  41.         // line 1
  42.         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"truetruetrue1)) && 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"falsefalsetrue1))))) {
  43.             // line 2
  44.             $context["_layout"] = "seikoclub/layout.html.twig";
  45.         } else {
  46.             // line 4
  47.             $context["_layout"] = "@CoreShopFrontend/layout.html.twig";
  48.         }
  49.         // line 6
  50.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 8
  57.     public function block_content($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  64.         // line 9
  65.         echo "    ";
  66.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'9$this->source); })())) {
  67.             // line 10
  68.             echo "        <div style=\"height: 100px;\">a</div>
  69.     ";
  70.         }
  71.         // line 12
  72.         echo "    <div class=\"container\">
  73.         <div class=\"magazine-landing-placeholder\"></div>
  74.         ";
  75.         // line 14
  76.         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" => []]);
  77.         // line 24
  78.         echo "
  79.     </div>
  80. ";
  81.         
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  83.         
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  85.     }
  86.     // line 28
  87.     public function block_scripts($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  94.         // line 29
  95.         echo "    ";
  96.         $this->displayParentBlock("scripts"$context$blocks);
  97.         echo "
  98.     ";
  99.         // line 30
  100.         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"falsefalsetrue30);
  101.         
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103.         
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  105.     }
  106.     public function getTemplateName()
  107.     {
  108.         return "default/watch-landing.html.twig";
  109.     }
  110.     public function isTraitable()
  111.     {
  112.         return false;
  113.     }
  114.     public function getDebugInfo()
  115.     {
  116.         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,);
  117.     }
  118.     public function getSourceContext()
  119.     {
  120.         return new Source("{% if clubsite or (editmode and document.path is defined and '/SeikoClub/' in document.path) %}
  121.     {% set _layout = 'seikoclub/layout.html.twig' %}
  122. {% else %}
  123.     {% set _layout = '@CoreShopFrontend/layout.html.twig' %}
  124. {% endif %}
  125. {% extends _layout %}
  126. {% block content %}
  127.     {% if editmode %}
  128.         <div style=\"height: 100px;\">a</div>
  129.     {% endif %}
  130.     <div class=\"container\">
  131.         <div class=\"magazine-landing-placeholder\"></div>
  132.         {{ pimcore_areablock('watch-landing-block', {
  133.             'allowed' : ['watches-landing-banner','watch-landing', 'popular-watches', 'watches-news'],
  134.             'limits' : {
  135.                 'popular-watches': 1,
  136.                 'watches-landing-banner': 1,
  137.                 'watches-news': 1
  138.             },
  139.             'params': {
  140.             }
  141.         }) }}
  142.     </div>
  143. {% endblock %}
  144. {% block scripts %}
  145.     {{ parent() }}
  146.     {% do pimcore_head_script().appendFile(asset('js/watch-landing-banner.js')) %}
  147. {% endblock %}""default/watch-landing.html.twig""/home/zoltan/public_html/boutique-v2/templates/default/watch-landing.html.twig");
  148.     }
  149.     
  150.     public function checkSecurity()
  151.     {
  152.         static $tags = array("if" => 1"set" => 2"do" => 30);
  153.         static $filters = array();
  154.         static $functions = array("pimcore_areablock" => 14"pimcore_head_script" => 30"asset" => 30);
  155.         try {
  156.             $this->sandbox->checkSecurity(
  157.                 ['if''set''do'],
  158.                 [],
  159.                 ['pimcore_areablock''pimcore_head_script''asset']
  160.             );
  161.         } catch (SecurityError $e) {
  162.             $e->setSourceContext($this->source);
  163.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  164.                 $e->setTemplateLine($tags[$e->getTagName()]);
  165.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  166.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  167.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  168.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  169.             }
  170.             throw $e;
  171.         }
  172.     }
  173. }