var/cache/dev/twig/a2/a2bab09faad327a37df0707476e844a5.php line 170

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. /* @theme/base.html.twig */
  14. class __TwigTemplate_85b74497cfb2a49e6a968961d3a53ccd 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.             'metatitle' => [$this'block_metatitle'],
  25.             'metadescription' => [$this'block_metadescription'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.             'bodyattributes' => [$this'block_bodyattributes'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@theme/base.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@theme/base.html.twig"));
  39.         // line 1
  40.         echo "<!doctype html>
  41. <html class=\"no-js\" lang=\"en\">
  42.     <head>
  43.         <meta charset=\"utf-8\">
  44.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  45.         <title>";
  46.         // line 6
  47.         $this->displayBlock('metatitle'$context$blocks);
  48.         echo " | ";
  49.         echo twig_escape_filter($this->env, (isset($context["sitename"]) || array_key_exists("sitename"$context) ? $context["sitename"] : (function () { throw new RuntimeError('Variable "sitename" does not exist.'6$this->source); })()), "html"nulltrue);
  50.         echo "</title>
  51.         <meta name=\"robots\" content=\"index,follow\">
  52.         <meta name=\"description\" content=\"";
  53.         // line 8
  54.         $this->displayBlock('metadescription'$context$blocks);
  55.         echo "\">
  56.         <meta name=\"format-detection\" content=\"telephone=no\">
  57.         ";
  58.         // line 12
  59.         echo "        ";
  60.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CMS_ACCESS")) {
  61.             // line 13
  62.             echo "            ";
  63.             $this->loadTemplate("Widgets/admin-css-imports.html.twig""@theme/base.html.twig"13)->display($context);
  64.             // line 14
  65.             echo "        ";
  66.         }
  67.         // line 15
  68.         echo "
  69.         ";
  70.         // line 17
  71.         echo "        ";
  72.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  73.         echo "
  74.         ";
  75.         // line 18
  76.         $this->displayBlock('stylesheets'$context$blocks);
  77.         // line 19
  78.         echo "        <script defer src=\"https://kit.fontawesome.com/eace9dba9c.js\" crossorigin=\"anonymous\"></script>
  79.         ";
  80.         // line 22
  81.         echo "        ";
  82.         $this->loadTemplate("@theme/common/og.html.twig""@theme/base.html.twig"22)->display($context);
  83.         // line 23
  84.         echo "
  85.         ";
  86.         // line 25
  87.         echo "        ";
  88.         $this->loadTemplate("@theme/common/icons.html.twig""@theme/base.html.twig"25)->display($context);
  89.         // line 26
  90.         echo "
  91.         ";
  92.         // line 28
  93.         echo "        <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  94.         <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  95.         <link href=\"https://fonts.googleapis.com/css2?family=Roboto\" rel=\"preload\" as=\"style\" onload=\"this.rel='https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap'\">
  96.         ";
  97.         // line 33
  98.         echo "        ";
  99.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  100.         echo "
  101.         ";
  102.         // line 34
  103.         $this->displayBlock('javascripts'$context$blocks);
  104.         // line 35
  105.         echo "    </head>
  106.     ";
  107.         // line 37
  108.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CMS_ACCESS")) {
  109.             // line 38
  110.             echo "        <body class=\"skin-blue sidebar-collapse sidebar-mini\" data-env=\"";
  111.             echo twig_escape_filter($this->envtwig_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.'38$this->source); })()), "environment", [], "any"falsefalsefalse38), "html"nulltrue);
  112.             echo "\" data-gtmcode=\"";
  113.             echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code"$context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.'38$this->source); })()), "html"nulltrue);
  114.             echo "\">
  115.         ";
  116.             // line 39
  117.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\AdminDefaultController::showAdminHeader"));
  118.             echo "
  119.     ";
  120.         } else {
  121.             // line 41
  122.             echo "        <body";
  123.             if ((twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'41$this->source); })()), "id", [], "any"falsefalsefalse41) == 1)) {
  124.                 echo " class=\"home\" ";
  125.             }
  126.             $this->displayBlock('bodyattributes'$context$blocks);
  127.             echo " data-env=\"";
  128.             echo twig_escape_filter($this->envtwig_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.'41$this->source); })()), "environment", [], "any"falsefalsefalse41), "html"nulltrue);
  129.             echo "\" data-gtmcode=\"";
  130.             echo twig_escape_filter($this->env, (isset($context["gtm_code"]) || array_key_exists("gtm_code"$context) ? $context["gtm_code"] : (function () { throw new RuntimeError('Variable "gtm_code" does not exist.'41$this->source); })()), "html"nulltrue);
  131.             echo "\">
  132.     ";
  133.         }
  134.         // line 43
  135.         echo "
  136.         ";
  137.         // line 45
  138.         echo "        ";
  139.         $this->loadTemplate("@theme/common/site-header.html.twig""@theme/base.html.twig"45)->display($context);
  140.         // line 46
  141.         echo "        ";
  142.         $this->loadTemplate("@theme/common/alert-notifications.html.twig""@theme/base.html.twig"46)->display($context);
  143.         // line 47
  144.         echo "
  145.         ";
  146.         // line 49
  147.         echo "        <div class=\"content-cms\">
  148.             ";
  149.         // line 50
  150.         $this->displayBlock('body'$context$blocks);
  151.         // line 51
  152.         echo "        </div>
  153.         ";
  154.         // line 54
  155.         echo "        ";
  156.         $this->loadTemplate("@theme/common/site-footer.html.twig""@theme/base.html.twig"54)->display($context);
  157.         // line 55
  158.         echo "        ";
  159.         $this->loadTemplate("@theme/common/consent.html.twig""@theme/base.html.twig"55)->display($context);
  160.         // line 56
  161.         echo "
  162.         ";
  163.         // line 58
  164.         echo "        <script src=\"";
  165.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/modernizr-3.5.0.min.js"), "html"nulltrue);
  166.         echo "\" defer></script>
  167.         ";
  168.         // line 60
  169.         echo "        <script src=\"";
  170.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/js/jquery.min.js"), "html"nulltrue);
  171.         echo "\"></script>
  172.         ";
  173.         // line 61
  174.         $this->loadTemplate("Widgets/admin-js-imports.html.twig""@theme/base.html.twig"61)->display($context);
  175.         // line 62
  176.         echo "
  177.     </body>
  178. </html>
  179. ";
  180.         
  181.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  182.         
  183.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  184.     }
  185.     // line 6
  186.     public function block_metatitle($context, array $blocks = [])
  187.     {
  188.         $macros $this->macros;
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatitle"));
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metatitle"));
  193.         
  194.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  195.         
  196.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197.     }
  198.     // line 8
  199.     public function block_metadescription($context, array $blocks = [])
  200.     {
  201.         $macros $this->macros;
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     // line 18
  212.     public function block_stylesheets($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  219.         
  220.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  221.         
  222.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  223.     }
  224.     // line 34
  225.     public function block_javascripts($context, array $blocks = [])
  226.     {
  227.         $macros $this->macros;
  228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  231.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  232.         
  233.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  234.         
  235.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  236.     }
  237.     // line 41
  238.     public function block_bodyattributes($context, array $blocks = [])
  239.     {
  240.         $macros $this->macros;
  241.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  242.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyattributes"));
  243.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  244.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyattributes"));
  245.         
  246.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  247.         
  248.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  249.     }
  250.     // line 50
  251.     public function block_body($context, array $blocks = [])
  252.     {
  253.         $macros $this->macros;
  254.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  255.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  256.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  257.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  258.         
  259.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  260.         
  261.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  262.     }
  263.     /**
  264.      * @codeCoverageIgnore
  265.      */
  266.     public function getTemplateName()
  267.     {
  268.         return "@theme/base.html.twig";
  269.     }
  270.     /**
  271.      * @codeCoverageIgnore
  272.      */
  273.     public function isTraitable()
  274.     {
  275.         return false;
  276.     }
  277.     /**
  278.      * @codeCoverageIgnore
  279.      */
  280.     public function getDebugInfo()
  281.     {
  282.         return array (  293 => 50,  275 => 41,  257 => 34,  239 => 18,  221 => 8,  203 => 6,  190 => 62,  188 => 61,  183 => 60,  178 => 58,  175 => 56,  172 => 55,  169 => 54,  165 => 51,  163 => 50,  160 => 49,  157 => 47,  154 => 46,  151 => 45,  148 => 43,  135 => 41,  130 => 39,  123 => 38,  121 => 37,  117 => 35,  115 => 34,  110 => 33,  104 => 28,  101 => 26,  98 => 25,  95 => 23,  92 => 22,  88 => 19,  86 => 18,  81 => 17,  78 => 15,  75 => 14,  72 => 13,  69 => 12,  63 => 8,  56 => 6,  49 => 1,);
  283.     }
  284.     public function getSourceContext()
  285.     {
  286.         return new Source("<!doctype html>
  287. <html class=\"no-js\" lang=\"en\">
  288.     <head>
  289.         <meta charset=\"utf-8\">
  290.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  291.         <title>{% block metatitle %}{% endblock %} | {{ sitename }}</title>
  292.         <meta name=\"robots\" content=\"index,follow\">
  293.         <meta name=\"description\" content=\"{% block metadescription %}{% endblock %}\">
  294.         <meta name=\"format-detection\" content=\"telephone=no\">
  295.         {# ADMIN ONLY CSS FILES MERGED INTO SINGLE INCLUDE FILE #}
  296.         {% if is_granted('ROLE_CMS_ACCESS') %}
  297.             {% include 'Widgets/admin-css-imports.html.twig' %}
  298.         {% endif %}
  299.         {# WEBPACK COMPILED CSS #}
  300.         {{ encore_entry_link_tags('app') }}
  301.         {% block stylesheets %}{% endblock %}
  302.         <script defer src=\"https://kit.fontawesome.com/eace9dba9c.js\" crossorigin=\"anonymous\"></script>
  303.         {# OPENGRAPH #}
  304.         {% include '@theme/common/og.html.twig' %}
  305.         {# FAVICONS #}
  306.         {% include '@theme/common/icons.html.twig' %}
  307.         {# FONTS #}
  308.         <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
  309.         <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>
  310.         <link href=\"https://fonts.googleapis.com/css2?family=Roboto\" rel=\"preload\" as=\"style\" onload=\"this.rel='https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap'\">
  311.         {# WEBPACK COMPILED JS - USES DEFER #}
  312.         {{ encore_entry_script_tags('app') }}
  313.         {% block javascripts %}{% endblock %}
  314.     </head>
  315.     {% if is_granted('ROLE_CMS_ACCESS') %}
  316.         <body class=\"skin-blue sidebar-collapse sidebar-mini\" data-env=\"{{ app.environment }}\" data-gtmcode=\"{{ gtm_code }}\">
  317.         {{ render(controller('App\\\\Controller\\\\AdminDefaultController::showAdminHeader')) }}
  318.     {% else %}
  319.         <body{% if page.id == 1 %} class=\"home\" {% endif %}{% block bodyattributes %}{% endblock %} data-env=\"{{ app.environment }}\" data-gtmcode=\"{{ gtm_code }}\">
  320.     {% endif %}
  321.         {# HEADER #}
  322.         {% include '@theme/common/site-header.html.twig' %}
  323.         {% include '@theme/common/alert-notifications.html.twig' %}
  324.         {# CONTENT #}
  325.         <div class=\"content-cms\">
  326.             {% block body %}{% endblock %}
  327.         </div>
  328.         {# FOOTER #}
  329.         {% include '@theme/common/site-footer.html.twig' %}
  330.         {% include \"@theme/common/consent.html.twig\" %}
  331.         {# SCRIPTS #}
  332.         <script src=\"{{ asset('/js/modernizr-3.5.0.min.js')}}\" defer></script>
  333.         {#<script src=\"{{ asset('//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js')}}\"></script>#}
  334.         <script src=\"{{ asset('/js/jquery.min.js')}}\"></script>
  335.         {% include 'Widgets/admin-js-imports.html.twig' %}
  336.     </body>
  337. </html>
  338. ""@theme/base.html.twig""/var/www/html/s/stablescaffolding/templates/themes/theme/base.html.twig");
  339.     }
  340. }