var/cache/dev/twig/49/496b24178b33583c77f6bf0513ccc700.php line 137

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. /* layouts/layout.html.twig */
  14. class __TwigTemplate_9a2ecec66fc935c6af392094fc9df678 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.             'layout_head_meta' => [$this'block_layout_head_meta'],
  25.             'head_stylesheets' => [$this'block_head_stylesheets'],
  26.             'head_scripts' => [$this'block_head_scripts'],
  27.             'inlinescripts' => [$this'block_inlinescripts'],
  28.         ];
  29.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  30.         $this->checkSecurity();
  31.         $this->deferred $this->env->getExtension('Twig\DeferredExtension\DeferredExtension');
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/layout.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/layout.html.twig"));
  40.         // line 1
  41.         $context["currentLanguage"] = twig_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.'1$this->source); })()), "request", [], "any"falsefalsetrue1), "locale", [], "any"falsefalsetrue1);
  42.         // line 2
  43.         $context["schemeAndHttpHost"] = twig_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"falsefalsetrue2), "getSchemeAndHttpHost", [], "method"falsefalsetrue2);
  44.         // line 3
  45.         echo "
  46. <!doctype html>
  47. <html lang=\"";
  48.         // line 5
  49.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["currentLanguage"]) || array_key_exists("currentLanguage"$context) ? $context["currentLanguage"] : (function () { throw new RuntimeError('Variable "currentLanguage" does not exist.'5$this->source); })()), 5$this->source), "html"nulltrue);
  50.         echo "\">
  51. \t<head>
  52. \t\t<!-- Required meta tags -->
  53. \t\t<meta charset=\"utf-8\">
  54. \t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  55.         
  56.        ";
  57.         // line 14
  58.         echo "       ";
  59.         // line 15
  60.         echo "        ";
  61.         $context["baseUrl"] = (($this->sandbox->ensureToStringAllowed(twig_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.'15$this->source); })()), "request", [], "any"falsefalsetrue15), "getSchemeAndHttpHost", [], "method"falsefalsetrue15), 15$this->source) . $this->sandbox->ensureToStringAllowed(twig_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.'15$this->source); })()), "request", [], "any"falsefalsetrue15), "getBaseUrl", [], "method"falsefalsetrue15), 15$this->source)) . $this->sandbox->ensureToStringAllowed(twig_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.'15$this->source); })()), "request", [], "any"falsefalsetrue15), "getPathInfo", [], "method"falsefalsetrue15), 15$this->source));
  62.         // line 16
  63.         echo "
  64.         ";
  65.         // line 18
  66.         echo "        <link rel=\"canonical\" href=\"";
  67.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["baseUrl"]) || array_key_exists("baseUrl"$context) ? $context["baseUrl"] : (function () { throw new RuntimeError('Variable "baseUrl" does not exist.'18$this->source); })()), 18$this->source), "html"nulltrue);
  68.         echo "\" />
  69.         
  70.         
  71.     ";
  72.         // line 21
  73.         ob_start();
  74.         // line 22
  75.         echo "
  76. \t\t";
  77.         // line 25
  78.         echo "
  79. \t\t";
  80.         // line 26
  81.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap"], "method"falsefalsetrue26);
  82.         // line 27
  83.         echo "\t\t";
  84.         // line 28
  85.         echo "        ";
  86.         // line 29
  87.         echo "        ";
  88.         // line 30
  89.         echo "        ";
  90.         // line 31
  91.         echo "        
  92. \t\t";
  93.         // line 32
  94.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> "https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css"=> "print"=> null=> ["onload" => "this.media='all'"]], "method"falsefalsetrue32);
  95.         // line 33
  96.         echo "        ";
  97.         // line 34
  98.         echo "        ";
  99.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> "https://cdnjs.cloudflare.com/ajax/libs/Swiper/9.3.2/swiper-bundle.css"], "method"falsefalsetrue34);
  100.         echo "\t\t
  101.         ";
  102.         // line 36
  103.         echo "\t\t";
  104.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/style.css")], "method"falsefalsetrue36);
  105.         // line 37
  106.         echo "
  107. <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4\" crossorigin=\"anonymous\"></script>
  108. \t\t";
  109.         // line 40
  110.         if (( !array_key_exists("document"$context) ||  !(isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'40$this->source); })()))) {
  111.             // line 41
  112.             echo "            ";
  113.             $context["document"] = Pimcore\Model\Document::getById(1);
  114.             // line 42
  115.             echo "        ";
  116.         }
  117.         // line 43
  118.         echo "
  119.         ";
  120.         // line 44
  121.         if ($this->env->getTest('instanceof')->getCallable()((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'44$this->source); })()), "\\Pimcore\\Model\\Document\\Link")) {
  122.             // line 45
  123.             echo "            ";
  124.             $context["document"] = 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.'45$this->source); })()), "getObject", [], "method"falsefalsetrue45);
  125.             // line 46
  126.             echo "        ";
  127.         }
  128.         // line 47
  129.         echo "
  130.         ";
  131.         // line 48
  132.         if ($this->env->getTest('instanceof')->getCallable()((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'48$this->source); })()), "\\Pimcore\\Model\\Document\\Page")) {
  133.             // line 49
  134.             echo "            ";
  135.             // line 50
  136.             echo "            ";
  137.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "set", [=> 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.'50$this->source); })()), "getTitle", [], "method"falsefalsetrue50)], "method"falsefalsetrue50);
  138.             // line 51
  139.             echo "            ";
  140.             if ( !twig_test_empty(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.'51$this->source); })()), "getDescription", [], "method"falsefalsetrue51))) {
  141.                 // line 52
  142.                 echo "                ";
  143.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_meta')->getCallable()(), "setDescription", [=> 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.'52$this->source); })()), "getDescription", [], "method"falsefalsetrue52)], "method"falsefalsetrue52);
  144.                 // line 53
  145.                 echo "            ";
  146.             }
  147.             // line 54
  148.             echo "
  149.             ";
  150.             // line 55
  151.             if ((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.'55$this->source); })()), "path", [], "any"falsefalsetrue55) != "/")) {
  152.                 // line 56
  153.                 echo "                ";
  154.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "append", [=> "Busetto"], "method"falsefalsetrue56);
  155.                 // line 57
  156.                 echo "                ";
  157.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_title')->getCallable()(), "setSeparator", [=> " | "], "method"falsefalsetrue57);
  158.                 // line 58
  159.                 echo "            ";
  160.             }
  161.             // line 59
  162.             echo "
  163.         ";
  164.         }
  165.         // line 61
  166.         echo "
  167.         ";
  168.         // line 62
  169.         $context["isPortal"] = (array_key_exists("isPortal"$context) && (isset($context["isPortal"]) || array_key_exists("isPortal"$context) ? $context["isPortal"] : (function () { throw new RuntimeError('Variable "isPortal" does not exist.'62$this->source); })()));
  170.         // line 63
  171.         echo "
  172.     ";
  173.         $___internal_parse_0_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  174.         // line 21
  175.         echo twig_spaceless($___internal_parse_0_);
  176.         // line 65
  177.         echo "
  178. \t";
  179.         // line 67
  180.         $this->displayBlock('layout_head_meta'$context$blocks);
  181.         // line 75
  182.         echo "
  183.     ";
  184.         // line 76
  185.         $this->displayBlock('head_stylesheets'$context$blocks);
  186.         // line 79
  187.         echo "
  188.     </head>
  189. \t<body>
  190.         ";
  191.         // line 84
  192.         echo "        ";
  193.         echo $this->env->getFunction('pimcore_inc')->getCallable()((("/" $this->sandbox->ensureToStringAllowed((isset($context["currentLanguage"]) || array_key_exists("currentLanguage"$context) ? $context["currentLanguage"] : (function () { throw new RuntimeError('Variable "currentLanguage" does not exist.'84$this->source); })()), 84$this->source)) . "/snippets/customhead"));
  194.         echo "
  195. \t\t";
  196.         // line 86
  197.         $this->loadTemplate("inc/header.html.twig""layouts/layout.html.twig"86)->display($context);
  198.         // line 87
  199.         echo "
  200. \t\t";
  201.         // line 88
  202.         $this->displayBlock("content"$context$blocks);
  203.         echo "
  204. \t\t";
  205.         // line 90
  206.         $this->loadTemplate("inc/footer.html.twig""layouts/layout.html.twig"90)->display($context);
  207.         // line 91
  208.         echo "
  209.         ";
  210.         // line 94
  211.         echo "\t\t";
  212.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js")], "method"falsefalsetrue94);
  213.         // line 95
  214.         echo "\t\t";
  215.         // line 96
  216.         echo "\t\t";
  217.         // line 97
  218.         echo "\t\t";
  219.         // line 98
  220.         echo "        ";
  221.         // line 101
  222.         echo "\t\t";
  223.         echo "        
  224. \t\t";
  225.         // line 102
  226.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/main.js")], "method"falsefalsetrue102);
  227.         // line 103
  228.         echo "
  229.         ";
  230.         // line 104
  231.         $this->displayBlock('head_scripts'$context$blocks);
  232.         // line 107
  233.         echo "        
  234.         ";
  235.         // line 108
  236.         $this->displayBlock('inlinescripts'$context$blocks);
  237.         // line 111
  238.         echo "
  239. \t</body>
  240. </html>
  241. ";
  242.         
  243.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  244.         
  245.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  246.         $this->deferred->resolve($this$context$blocks);
  247.     }
  248.     public function block_layout_head_meta($context, array $blocks = [])
  249.     {
  250.         $this->deferred->defer($this'layout_head_meta');
  251.     }
  252.     // line 67
  253.     public function block_layout_head_meta_deferred($context, array $blocks = [])
  254.     {
  255.         $macros $this->macros;
  256.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  257.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta"));
  258.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  259.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""layout_head_meta"));
  260.         // line 68
  261.         echo "        ";
  262.         echo $this->env->getFunction('pimcore_head_title')->getCallable()();
  263.         echo "
  264.         ";
  265.         // line 69
  266.         echo $this->env->getFunction('pimcore_head_meta')->getCallable()();
  267.         echo "
  268.         ";
  269.         // line 71
  270.         if (twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_placeholder')->getCallable()("canonical"), "count", [], "method"falsefalsetrue71)) {
  271.             // line 72
  272.             echo "            <link rel=\"canonical\" href=\"";
  273.             echo $this->env->getFunction('pimcore_placeholder')->getCallable()("canonical");
  274.             echo "\"/>
  275.         ";
  276.         }
  277.         // line 74
  278.         echo "    ";
  279.         
  280.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  281.         
  282.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  283.         $this->deferred->resolve($this$context$blocks);
  284.     }
  285.     public function block_head_stylesheets($context, array $blocks = [])
  286.     {
  287.         $this->deferred->defer($this'head_stylesheets');
  288.     }
  289.     // line 76
  290.     public function block_head_stylesheets_deferred($context, array $blocks = [])
  291.     {
  292.         $macros $this->macros;
  293.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  294.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  295.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  296.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_stylesheets"));
  297.         // line 77
  298.         echo "        ";
  299.         echo $this->env->getFunction('pimcore_head_link')->getCallable()();
  300.         echo "
  301.     ";
  302.         
  303.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  304.         
  305.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  306.         $this->deferred->resolve($this$context$blocks);
  307.     }
  308.     public function block_head_scripts($context, array $blocks = [])
  309.     {
  310.         $this->deferred->defer($this'head_scripts');
  311.     }
  312.     // line 104
  313.     public function block_head_scripts_deferred($context, array $blocks = [])
  314.     {
  315.         $macros $this->macros;
  316.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  317.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_scripts"));
  318.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  319.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_scripts"));
  320.         // line 105
  321.         echo "            ";
  322.         echo $this->env->getFunction('pimcore_head_script')->getCallable()();
  323.         echo "
  324.         ";
  325.         
  326.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  327.         
  328.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  329.         $this->deferred->resolve($this$context$blocks);
  330.     }
  331.     public function block_inlinescripts($context, array $blocks = [])
  332.     {
  333.         $this->deferred->defer($this'inlinescripts');
  334.     }
  335.     // line 108
  336.     public function block_inlinescripts_deferred($context, array $blocks = [])
  337.     {
  338.         $macros $this->macros;
  339.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  340.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  341.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  342.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  343.         // line 109
  344.         echo "            ";
  345.         echo $this->env->getFunction('pimcore_inline_script')->getCallable()();
  346.         echo "
  347.         ";
  348.         
  349.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  350.         
  351.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  352.         $this->deferred->resolve($this$context$blocks);
  353.     }
  354.     public function getTemplateName()
  355.     {
  356.         return "layouts/layout.html.twig";
  357.     }
  358.     public function isTraitable()
  359.     {
  360.         return false;
  361.     }
  362.     public function getDebugInfo()
  363.     {
  364.         return array (  388 => 109,  378 => 108,  359 => 105,  349 => 104,  330 => 77,  320 => 76,  304 => 74,  298 => 72,  296 => 71,  291 => 69,  286 => 68,  276 => 67,  256 => 111,  254 => 108,  251 => 107,  249 => 104,  246 => 103,  244 => 102,  240 => 101,  238 => 98,  236 => 97,  234 => 96,  232 => 95,  229 => 94,  225 => 91,  223 => 90,  218 => 88,  215 => 87,  213 => 86,  207 => 84,  201 => 79,  199 => 76,  196 => 75,  194 => 67,  190 => 65,  188 => 21,  184 => 63,  182 => 62,  179 => 61,  175 => 59,  172 => 58,  169 => 57,  166 => 56,  164 => 55,  161 => 54,  158 => 53,  155 => 52,  152 => 51,  149 => 50,  147 => 49,  145 => 48,  142 => 47,  139 => 46,  136 => 45,  134 => 44,  131 => 43,  128 => 42,  125 => 41,  123 => 40,  118 => 37,  115 => 36,  110 => 34,  108 => 33,  106 => 32,  103 => 31,  101 => 30,  99 => 29,  97 => 28,  95 => 27,  93 => 26,  90 => 25,  86 => 22,  84 => 21,  77 => 18,  74 => 16,  71 => 15,  69 => 14,  58 => 5,  54 => 3,  52 => 2,  50 => 1,);
  365.     }
  366.     public function getSourceContext()
  367.     {
  368.         return new Source("{% set currentLanguage = app.request.locale %}
  369. {% set schemeAndHttpHost = app.request.getSchemeAndHttpHost() %}
  370. <!doctype html>
  371. <html lang=\"{{ currentLanguage }}\">
  372. \t<head>
  373. \t\t<!-- Required meta tags -->
  374. \t\t<meta charset=\"utf-8\">
  375. \t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">
  376.         
  377.        {# {%- do pimcore_head_link({rel: 'canonical', href: app.request.getSchemeAndHttpHost() ~ app.request.requestUri}) -%}#}
  378.        {# Ottieni l'URL base senza la query string #}
  379.         {% set baseUrl = app.request.getSchemeAndHttpHost() ~ app.request.getBaseUrl() ~ app.request.getPathInfo() %}
  380.         {# Costruisci il canonical URL senza la query string #}
  381.         <link rel=\"canonical\" href=\"{{ baseUrl }}\" />
  382.         
  383.         
  384.     {% apply spaceless %}
  385. \t\t{# fonts #}
  386. \t\t{% do pimcore_head_link().appendStylesheet('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap') %}
  387. \t\t{# bootstrap css #}
  388.         {#{% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/bootstrap@5.3/dist/css/bootstrap.min.css') %} #}
  389.         {#{% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/css/bootstrap.min.css') %}#}
  390.         {# font awesome #}
  391.         
  392. \t\t{% do pimcore_head_link().appendStylesheet('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css', 'print', null, {onload:\"this.media='all'\"}) %}
  393.         {# swiper slider styles #}
  394.         {% do pimcore_head_link().appendStylesheet('https://cdnjs.cloudflare.com/ajax/libs/Swiper/9.3.2/swiper-bundle.css') %}\t\t
  395.         {# website css #}
  396. \t\t{% do pimcore_head_link().appendStylesheet(asset('assets/css/style.css')) %}
  397. <script src=\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js\" integrity=\"sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4\" crossorigin=\"anonymous\"></script>
  398. \t\t{% if not document is defined or not document %}
  399.             {% set document = pimcore_document(1) %}
  400.         {% endif %}
  401.         {% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Link') %}
  402.             {% set document = document.getObject() %}
  403.         {% endif %}
  404.         {% if document is instanceof('\\\\Pimcore\\\\Model\\\\Document\\\\Page') %}
  405.             {#{% do pimcore_head_title().set(document.properties.navigation_name.data) %}#}
  406.             {% do pimcore_head_title().set(document.getTitle()) %}
  407.             {% if document.getDescription() is not empty %}
  408.                 {% do pimcore_head_meta().setDescription(document.getDescription()) %}
  409.             {% endif %}
  410.             {% if document.path != '/' %}
  411.                 {% do pimcore_head_title().append('Busetto') %}
  412.                 {% do pimcore_head_title().setSeparator(' | ') %}
  413.             {% endif %}
  414.         {% endif %}
  415.         {% set isPortal = ((isPortal is defined) and isPortal) %}
  416.     {% endapply %}
  417. \t{% block layout_head_meta deferred %}
  418.         {{ pimcore_head_title() }}
  419.         {{ pimcore_head_meta() }}
  420.         {% if pimcore_placeholder('canonical').count() %}
  421.             <link rel=\"canonical\" href=\"{{ pimcore_placeholder('canonical') }}\"/>
  422.         {% endif %}
  423.     {% endblock %}
  424.     {% block head_stylesheets deferred %}
  425.         {{ pimcore_head_link() }}
  426.     {% endblock %}
  427.     </head>
  428. \t<body>
  429.         {# snippet for cookies/google codes #}
  430.         {{ pimcore_inc( \"/\" ~ currentLanguage ~ \"/snippets/customhead\")|raw }}
  431. \t\t{% include 'inc/header.html.twig' %}
  432. \t\t{{ block('content') }}
  433. \t\t{% include 'inc/footer.html.twig' %}
  434.         {# jquery #}
  435. \t\t{% do pimcore_head_script().appendFile(asset(\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js\")) %}
  436. \t\t{# awesome icons #}
  437. \t\t{#{% do pimcore_head_script().appendFile(asset(\"https://kit.fontawesome.com/d1105ac658.js\")) %}#}
  438. \t\t{# bootstrap js #}
  439.         {#
  440. \t\t{% do pimcore_head_script().appendFile(asset(\"https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js\")) %}
  441.         #}
  442. \t\t{# main js #}        
  443. \t\t{% do pimcore_head_script().appendFile(asset('assets/js/main.js')) %}
  444.         {% block head_scripts deferred %}
  445.             {{ pimcore_head_script() }}
  446.         {% endblock %}
  447.         
  448.         {% block inlinescripts deferred %}
  449.             {{ pimcore_inline_script() }}
  450.         {% endblock %}
  451. \t</body>
  452. </html>
  453. ""layouts/layout.html.twig""/var/www/html/templates/layouts/layout.html.twig");
  454.     }
  455.     
  456.     public function checkSecurity()
  457.     {
  458.         static $tags = array("set" => 1"apply" => 21"do" => 26"if" => 40"block" => 67"include" => 86);
  459.         static $filters = array("escape" => 5"spaceless" => 21"raw" => 84);
  460.         static $functions = array("pimcore_head_link" => 26"asset" => 36"pimcore_document" => 41"pimcore_head_title" => 50"pimcore_head_meta" => 52"pimcore_inc" => 84"pimcore_head_script" => 94"pimcore_placeholder" => 71"pimcore_inline_script" => 109);
  461.         try {
  462.             $this->sandbox->checkSecurity(
  463.                 ['set''apply''do''if''block''include'],
  464.                 ['escape''spaceless''raw'],
  465.                 ['pimcore_head_link''asset''pimcore_document''pimcore_head_title''pimcore_head_meta''pimcore_inc''pimcore_head_script''pimcore_placeholder''pimcore_inline_script']
  466.             );
  467.         } catch (SecurityError $e) {
  468.             $e->setSourceContext($this->source);
  469.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  470.                 $e->setTemplateLine($tags[$e->getTagName()]);
  471.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  472.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  473.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  474.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  475.             }
  476.             throw $e;
  477.         }
  478.     }
  479.     private $deferred;
  480. }