var/cache/dev/twig/fd/fd62481460ea8a27c45aba1d3c0cabf6.php line 33

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. /* @ElementsDemiFrontend/Layout/layout.html.twig */
  14. class __TwigTemplate_8908925f95f9c4ed0db88e15bfec4776 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Layout/layout.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@ElementsDemiFrontend/Layout/layout.html.twig"));
  33.         // line 1
  34.         echo "<!doctype html>
  35. <html lang=\"";
  36.         // line 2
  37.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "locale", [], "any"falsefalsefalse2), "html"nulltrue);
  38.         echo "\">
  39. <head>
  40.     <script>
  41.     /* ga mock function */
  42.     (function(i,s,r){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  43.     (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();
  44.     })(window,document,'ga');
  45.     </script>
  46.     ";
  47.         // line 10
  48.         if (($this->extensions['App\Twig\LayoutExtension']->hasGetParams() || twig_in_filter("demi_checkout"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "attributes", [], "any"falsefalsefalse10), "get", [=> "_route"], "method"falsefalsefalse10)))) {
  49.             // line 11
  50.             echo "        ";
  51.             twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\SeoHelperBundle\Twig\SeoHelperExtension']->elementsRobots(), "setNoIndex", [=> true], "method"falsefalsefalse11);
  52.             // line 12
  53.             echo "    ";
  54.         }
  55.         // line 13
  56.         echo "    ";
  57.         echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/layout/head.html.twig");
  58.         echo "
  59.     ";
  60.         // line 15
  61.         echo twig_include($this->env$context"Layout/includes/codeHead.html.twig");
  62.         echo "
  63. </head>
  64. <body>
  65. ";
  66.         // line 18
  67.         if (( !$this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getIsWhitelabel", []) &&  !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'18$this->source); })()))) {
  68.             // line 19
  69.             echo "    ";
  70.             echo twig_include($this->env$context"Navigation/navbar.html.twig");
  71.             echo "
  72. ";
  73.         }
  74.         // line 21
  75.         if ($this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getIsWhitelabel", [])) {
  76.             // line 22
  77.             echo "    ";
  78.             twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\JsConfigBundle\Twig\Extension\JsConfigExtension']->jsConfig(), "add", [=> "affiliate"=> true], "method"falsefalsefalse22);
  79.             // line 23
  80.             echo "    ";
  81.             twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\JsConfigBundle\Twig\Extension\JsConfigExtension']->jsConfig(), "add", [=> "affiliateTarget"=> "_blank"], "method"falsefalsefalse23);
  82.             // line 24
  83.             echo "
  84.     <main id=\"main-content\" role=\"main\" class=\"content-block\">
  85.         ";
  86.             // line 26
  87.             $this->displayBlock("content"$context$blocks);
  88.             echo "
  89.     </main>
  90. ";
  91.         } else {
  92.             // line 29
  93.             echo "    <div class=\"main-content--spacing main-content--no-hero-small content-block\">
  94.         ";
  95.             // line 30
  96.             $this->displayBlock("content"$context$blocks);
  97.             echo "
  98.     </div>
  99. ";
  100.         }
  101.         // line 33
  102.         echo "
  103. ";
  104.         // line 34
  105.         if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'34$this->source); })()) && $this->env->getTest('instanceof')->getCallable()(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.'34$this->source); })()), "property", [=> "modal_info"], "method"falsefalsefalse34), "\\Pimcore\\Model\\Document\\Snippet"))) {
  106.             // line 35
  107.             echo "    ";
  108.             echo $this->env->getFunction('pimcore_inc')->getCallable()(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.'35$this->source); })()), "property", [=> "modal_info"], "method"falsefalsefalse35));
  109.             echo "
  110. ";
  111.         }
  112.         // line 37
  113.         echo "
  114. ";
  115.         // line 38
  116.         if ( !$this->extensions['Elements\Demi\Frontend\Twig\DemiConfigurationExtension']->getConfig("getIsWhitelabel", [])) {
  117.             // line 39
  118.             echo "    ";
  119.             echo $this->env->getFunction('pimcore_inc')->getCallable()(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.'39$this->source); })()), "property", [=> "footer"], "method"falsefalsefalse39), ["footerStyleModifier" => "footer--has-smaller-padding content-block"]);
  120.             echo "
  121. ";
  122.         }
  123.         // line 41
  124.         echo "
  125. ";
  126.         // line 42
  127.         echo $this->extensions['Elements\Bundle\JsConfigBundle\Twig\Extension\JsConfigExtension']->jsConfig();
  128.         echo "
  129. ";
  130.         // line 44
  131.         if ((array_key_exists("loadMerchJs"$context) && ((isset($context["loadMerchJs"]) || array_key_exists("loadMerchJs"$context) ? $context["loadMerchJs"] : (function () { throw new RuntimeError('Variable "loadMerchJs" does not exist.'44$this->source); })()) == true))) {
  132.             // line 45
  133.             echo "    ";
  134.             echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/layout/jsScriptsMerchandiseShop.html.twig");
  135.             echo "
  136. ";
  137.         } elseif ((        // line 46
  138. array_key_exists("loadAdditionalServiceJs"$context) && ((isset($context["loadAdditionalServiceJs"]) || array_key_exists("loadAdditionalServiceJs"$context) ? $context["loadAdditionalServiceJs"] : (function () { throw new RuntimeError('Variable "loadAdditionalServiceJs" does not exist.'46$this->source); })()) == true))) {
  139.             // line 47
  140.             echo "    ";
  141.             echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/layout/jsScriptsAdditionalService.html.twig");
  142.             echo "
  143. ";
  144.         } else {
  145.             // line 49
  146.             echo "    ";
  147.             echo twig_include($this->env$context"@ElementsDemiFrontend/Includes/layout/jsScripts.html.twig");
  148.             echo "
  149. ";
  150.         }
  151.         // line 51
  152.         echo "
  153. ";
  154.         // line 53
  155.         $context["now"] = twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\CmsToolsBundle\Twig\CarbonExtension']->carbon(), "now", [], "method"falsefalsefalse53);
  156.         // line 54
  157.         $context["earliestProposedFromDate"] = twig_get_attribute($this->env$this->source$this->extensions['Elements\Bundle\CmsToolsBundle\Twig\CarbonExtension']->carbon(), "createFromFormat", [=> "Y-m-d H:i:s"=> "2020-03-19 12:00:00"], "method"falsefalsefalse54);
  158.         // line 55
  159.         $context["earliestProposedToDate"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["earliestProposedFromDate"]) || array_key_exists("earliestProposedFromDate"$context) ? $context["earliestProposedFromDate"] : (function () { throw new RuntimeError('Variable "earliestProposedFromDate" does not exist.'55$this->source); })()), "copy", [], "method"falsefalsefalse55), "addDays", [=> 7], "method"falsefalsefalse55);
  160.         // line 56
  161.         if (twig_get_attribute($this->env$this->source, (isset($context["earliestProposedFromDate"]) || array_key_exists("earliestProposedFromDate"$context) ? $context["earliestProposedFromDate"] : (function () { throw new RuntimeError('Variable "earliestProposedFromDate" does not exist.'56$this->source); })()), "gt", [=> (isset($context["now"]) || array_key_exists("now"$context) ? $context["now"] : (function () { throw new RuntimeError('Variable "now" does not exist.'56$this->source); })())], "method"falsefalsefalse56)) {
  162.             // line 57
  163.             echo "    <script type=\"text/javascript\" data-cookieconsent=\"ignore\">
  164.         _initialState.searchForm.from = '";
  165.             // line 58
  166.             echo twig_escape_filter($this->env$this->extensions['Elements\Bundle\CmsToolsBundle\Twig\CmsToolsHelperExtension']->customDateFormat((isset($context["earliestProposedFromDate"]) || array_key_exists("earliestProposedFromDate"$context) ? $context["earliestProposedFromDate"] : (function () { throw new RuntimeError('Variable "earliestProposedFromDate" does not exist.'58$this->source); })())), "html"nulltrue);
  167.             echo "';
  168.         _initialState.searchForm.to = '";
  169.             // line 59
  170.             echo twig_escape_filter($this->env$this->extensions['Elements\Bundle\CmsToolsBundle\Twig\CmsToolsHelperExtension']->customDateFormat((isset($context["earliestProposedToDate"]) || array_key_exists("earliestProposedToDate"$context) ? $context["earliestProposedToDate"] : (function () { throw new RuntimeError('Variable "earliestProposedToDate" does not exist.'59$this->source); })())), "html"nulltrue);
  171.             echo "';
  172.     </script>
  173. ";
  174.         }
  175.         // line 62
  176.         echo "<div class=\"custom-cursor js-custom-cursor\"></div>
  177. </body>
  178. </html>
  179. ";
  180.         
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.     }
  185.     public function getTemplateName()
  186.     {
  187.         return "@ElementsDemiFrontend/Layout/layout.html.twig";
  188.     }
  189.     public function isTraitable()
  190.     {
  191.         return false;
  192.     }
  193.     public function getDebugInfo()
  194.     {
  195.         return array (  188 => 62,  182 => 59,  178 => 58,  175 => 57,  173 => 56,  171 => 55,  169 => 54,  167 => 53,  163 => 51,  157 => 49,  151 => 47,  149 => 46,  144 => 45,  142 => 44,  137 => 42,  134 => 41,  128 => 39,  126 => 38,  123 => 37,  117 => 35,  115 => 34,  112 => 33,  106 => 30,  103 => 29,  97 => 26,  93 => 24,  90 => 23,  87 => 22,  85 => 21,  79 => 19,  77 => 18,  71 => 15,  65 => 13,  62 => 12,  59 => 11,  57 => 10,  46 => 2,  43 => 1,);
  196.     }
  197.     public function getSourceContext()
  198.     {
  199.         return new Source("<!doctype html>
  200. <html lang=\"{{ app.request.locale }}\">
  201. <head>
  202.     <script>
  203.     /* ga mock function */
  204.     (function(i,s,r){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  205.     (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();
  206.     })(window,document,'ga');
  207.     </script>
  208.     {% if hasGetParams() or 'demi_checkout' in app.request.attributes.get('_route') %}
  209.         {% do elements_robots().setNoIndex(true) %}
  210.     {% endif %}
  211.     {{ include('@ElementsDemiFrontend/Includes/layout/head.html.twig') }}
  212.     {{ include('Layout/includes/codeHead.html.twig') }}
  213. </head>
  214. <body>
  215. {% if not demi_core_configuration(\"getIsWhitelabel\", {}) and not editmode %}
  216.     {{ include('Navigation/navbar.html.twig') }}
  217. {% endif %}
  218. {% if demi_core_configuration(\"getIsWhitelabel\", {}) %}
  219.     {% do jsConfig().add('affiliate', true) %}
  220.     {% do jsConfig().add('affiliateTarget', '_blank') %}
  221.     <main id=\"main-content\" role=\"main\" class=\"content-block\">
  222.         {{ block('content') }}
  223.     </main>
  224. {% else %}
  225.     <div class=\"main-content--spacing main-content--no-hero-small content-block\">
  226.         {{ block('content') }}
  227.     </div>
  228. {% endif %}
  229. {% if not editmode and document.property('modal_info') is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Snippet') %}
  230.     {{ pimcore_inc(document.property('modal_info')) }}
  231. {% endif %}
  232. {% if not demi_core_configuration(\"getIsWhitelabel\", {}) %}
  233.     {{ pimcore_inc(document.property('footer'), {footerStyleModifier: 'footer--has-smaller-padding content-block'}) }}
  234. {% endif %}
  235. {{ jsConfig() }}
  236. {% if loadMerchJs is defined and loadMerchJs == true %}
  237.     {{ include('@ElementsDemiFrontend/Includes/layout/jsScriptsMerchandiseShop.html.twig') }}
  238. {% elseif loadAdditionalServiceJs is defined and loadAdditionalServiceJs == true %}
  239.     {{ include('@ElementsDemiFrontend/Includes/layout/jsScriptsAdditionalService.html.twig') }}
  240. {%  else %}
  241.     {{ include('@ElementsDemiFrontend/Includes/layout/jsScripts.html.twig') }}
  242. {% endif %}
  243. {% set now = carbon().now() %}
  244. {% set earliestProposedFromDate = carbon().createFromFormat('Y-m-d H:i:s', '2020-03-19 12:00:00') %}
  245. {% set earliestProposedToDate = earliestProposedFromDate.copy().addDays(7) %}
  246. {% if earliestProposedFromDate.gt(now) %}
  247.     <script type=\"text/javascript\" data-cookieconsent=\"ignore\">
  248.         _initialState.searchForm.from = '{{ elements_customDateFormat(earliestProposedFromDate) }}';
  249.         _initialState.searchForm.to = '{{ elements_customDateFormat(earliestProposedToDate) }}';
  250.     </script>
  251. {% endif %}
  252. <div class=\"custom-cursor js-custom-cursor\"></div>
  253. </body>
  254. </html>
  255. ""@ElementsDemiFrontend/Layout/layout.html.twig""/home/steiermark/www/src/Elements/Bundle/DemiFrontendBundle/Resources/views/Layout/layout.html.twig");
  256.     }
  257. }