var/cache/dev/twig/3f/3fde0f24df4504abc7f93833c9bae15907f0c52efe08ca0157f80bfc4cafba67.php line 244

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* areas/footer-brick/view.html.twig */
  16. class __TwigTemplate_2c1eda711cb3d717a60d57c2c6df9ac4d96c5bb324a1b2e47ef001185490cc9b extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/footer-brick/view.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/footer-brick/view.html.twig"));
  40.         // line 2
  41.         yield from $this->loadTemplate("areas/footer-brick/view.html.twig""areas/footer-brick/view.html.twig"2"452253431")->unwrap()->yield($context);
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.         yield from [];
  47.     }
  48.     /**
  49.      * @codeCoverageIgnore
  50.      */
  51.     public function getTemplateName(): string
  52.     {
  53.         return "areas/footer-brick/view.html.twig";
  54.     }
  55.     /**
  56.      * @codeCoverageIgnore
  57.      */
  58.     public function getDebugInfo(): array
  59.     {
  60.         return array (  50 => 2,);
  61.     }
  62.     public function getSourceContext(): Source
  63.     {
  64.         return new Source("{# FRONTEND FOLDER pimcore-coolworld/frontend/partials/footer.php #}
  65. {% embed 'app/area-brick-layout.html.twig' %}
  66.     {% block content %}
  67.         <div class=\"text-white bg-blue-900 border-t-[10px] border-blue-500\">
  68.             <div class=\"container grid grid-cols-1 gap-4 py-12 mx-auto leading-8 md:gap-6 md:py-20 sm:grid-cols-2 md:grid-cols-4\">
  69.                 {# The first Column is different in that the links are related to product Categories #}
  70.                 {% include 'areas/footer-brick/partials/_column_product_categories.html.twig' with {'column_id': 'column_1'} %}
  71.                 {# Then place two regular columns #}
  72.                 {% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_2'} %}
  73.                 {% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_3'} %}
  74.                 {# The last column is a default column, but extended with a language switch and social media buttons #}
  75.                 {% include 'areas/footer-brick/partials/_column_regular_language_socials.html.twig' with {'column_id': 'column_4'} %}
  76.             </div>
  77.         </div>
  78.         <div class=\"bg-gray-100\">
  79.             <div class=\"container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row\">
  80.                 <div class=\"max-w-[225px] md:max-w-[335px]\">
  81.                     {% if document.getProperty('navigationRoot') is not null %}
  82.                         <a href=\"{{ document.getProperty('navigationRoot').url | trimUrl }}\">
  83.                             {% if document.getProperty('replacement_logo') is not null %}
  84.                                 {{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
  85.                             {% elseif pimcore_website_config('logo_full').thumbnail is defined %}
  86.                                 {{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
  87.                             {% endif %}
  88.                         </a>
  89.                     {% else %}
  90.                         {% if document.getProperty('replacement_logo') is not null %}
  91.                             {{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
  92.                         {% elseif pimcore_website_config('logo_full') is not null
  93.                             and pimcore_website_config('logo_full').thumbnail is defined %}
  94.                             {{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
  95.                         {% endif %}
  96.                     {% endif %}
  97.                 </div>
  98.                 <div class=\"flex flex-col text-base font-bold md:flex-row\">
  99.                     <span class=\"mb-2 mr-6 md:mb-0\">&copy; {{ \"now\"|date('Y') }} Coolworld Rentals</span>
  100.                     <ul>
  101.                         {% set subFooterLinkCount = pimcore_block(\"subfooter_links\").getCount() %}
  102.                         {% for i in pimcore_block(\"subfooter_links\").iterator %}
  103.                             <li class=\"mb-2 md:mb-0 {{ loop.index != subFooterLinkCount ? \"md:mr-6\" : \"\" }} md:inline hover:underline\">{{ pimcore_link('subfooter_sub_link') }}</li>
  104.                         {% endfor %}
  105.                     </ul>
  106.                 </div>
  107.             </div>
  108.         </div>
  109.         {% set facebook_url = pimcore_website_config('facebook_url', null, data.request.locale) %}
  110.         {% set twitter_url = pimcore_website_config('twitter_url', null, data.request.locale) %}
  111.         {% set linkedin_url = pimcore_website_config('linkedin_url', null, data.request.locale) %}
  112.         {% set instagram_url = pimcore_website_config('instagram_url', null, data.request.locale) %}
  113.         {% set sameAs = [facebook_url, twitter_url, linkedin_url, instagram_url] | filter(u => u) %}
  114.         <script type=\"application/ld+json\">
  115.         {
  116.             \"@context\": \"http://schema.org\",
  117.             \"@type\": \"Organization\",
  118.             \"@id\": \"{{ hostname }}\",
  119.             \"legalName\": \"{{ document.getProperty('organizationLegalName') }}\",
  120.             \"description\": \"{{ document.getProperty('organizationDescription') }}\",
  121.             \"url\": \"{{ hostname }}\",
  122.             \"address\": {
  123.                 \"@type\": \"PostalAddress\",
  124.                     \"streetAddress\": \"{{ document.getProperty('organizationStreet') ?? null }}\",
  125.                     \"addressLocality\": \"{{ document.getProperty('organizationCity') ?? null }}\",
  126.                     \"addressRegion\": \"{{ document.getProperty('organizationState') ?? null }}\",
  127.                     \"postalCode\": \"{{ document.getProperty('organizationZip') ?? null }}\",
  128.                     \"addressCountry\": \"{{ document.getProperty('organizationCountry') ?? null }}\"
  129.             },
  130.             {% if document.getProperty('organizationLogo') %}
  131.                 \"logo\": \"{{ hostname ~ '/var/assets' ~ document.getProperty('organizationLogo').realFullPath }}\",
  132.             {% endif %}
  133.             \"sameAs\": [
  134.                 \"{{ sameAs | join('\",\"') | raw }}\"
  135.             ]
  136.         }
  137.         </script>
  138.     {% endblock %}
  139. {% endembed %}
  140. ""areas/footer-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/footer-brick/view.html.twig");
  141.     }
  142.     
  143.     public function checkSecurity()
  144.     {
  145.         static $tags = ["embed" => 2];
  146.         static $filters = [];
  147.         static $functions = [];
  148.         try {
  149.             $this->sandbox->checkSecurity(
  150.                 ['embed'],
  151.                 [],
  152.                 [],
  153.                 $this->source
  154.             );
  155.         } catch (SecurityError $e) {
  156.             $e->setSourceContext($this->source);
  157.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  158.                 $e->setTemplateLine($tags[$e->getTagName()]);
  159.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  160.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  161.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  162.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  163.             }
  164.             throw $e;
  165.         }
  166.     }
  167. }
  168. /* areas/footer-brick/view.html.twig */
  169. class __TwigTemplate_2c1eda711cb3d717a60d57c2c6df9ac4d96c5bb324a1b2e47ef001185490cc9b___452253431 extends Template
  170. {
  171.     private Source $source;
  172.     /**
  173.      * @var array<string, Template>
  174.      */
  175.     private array $macros = [];
  176.     public function __construct(Environment $env)
  177.     {
  178.         parent::__construct($env);
  179.         $this->source $this->getSourceContext();
  180.         $this->blocks = [
  181.             'content' => [$this'block_content'],
  182.         ];
  183.         $this->sandbox $this->extensions[SandboxExtension::class];
  184.         $this->checkSecurity();
  185.     }
  186.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  187.     {
  188.         return "app/area-brick-layout.html.twig";
  189.     }
  190.     protected function doDisplay(array $context, array $blocks = []): iterable
  191.     {
  192.         $macros $this->macros;
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  194.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/footer-brick/view.html.twig"));
  195.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  196.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/footer-brick/view.html.twig"));
  197.         $this->parent $this->loadTemplate("app/area-brick-layout.html.twig""areas/footer-brick/view.html.twig"2);
  198.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  199.         
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  201.         
  202.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  203.     }
  204.     // line 3
  205.     /**
  206.      * @return iterable<null|scalar|\Stringable>
  207.      */
  208.     public function block_content(array $context, array $blocks = []): iterable
  209.     {
  210.         $macros $this->macros;
  211.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  212.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  213.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  214.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  215.         // line 4
  216.         yield "        <div class=\"text-white bg-blue-900 border-t-[10px] border-blue-500\">
  217.             <div class=\"container grid grid-cols-1 gap-4 py-12 mx-auto leading-8 md:gap-6 md:py-20 sm:grid-cols-2 md:grid-cols-4\">
  218.                 ";
  219.         // line 7
  220.         yield "                ";
  221.         yield from $this->loadTemplate("areas/footer-brick/partials/_column_product_categories.html.twig""areas/footer-brick/view.html.twig"7)->unwrap()->yield(CoreExtension::merge($context, ["column_id" => "column_1"]));
  222.         // line 8
  223.         yield "
  224.                 ";
  225.         // line 10
  226.         yield "                ";
  227.         yield from $this->loadTemplate("areas/footer-brick/partials/_column_regular.html.twig""areas/footer-brick/view.html.twig"10)->unwrap()->yield(CoreExtension::merge($context, ["column_id" => "column_2"]));
  228.         // line 11
  229.         yield "                ";
  230.         yield from $this->loadTemplate("areas/footer-brick/partials/_column_regular.html.twig""areas/footer-brick/view.html.twig"11)->unwrap()->yield(CoreExtension::merge($context, ["column_id" => "column_3"]));
  231.         // line 12
  232.         yield "
  233.                 ";
  234.         // line 14
  235.         yield "                ";
  236.         yield from $this->loadTemplate("areas/footer-brick/partials/_column_regular_language_socials.html.twig""areas/footer-brick/view.html.twig"14)->unwrap()->yield(CoreExtension::merge($context, ["column_id" => "column_4"]));
  237.         // line 15
  238.         yield "            </div>
  239.         </div>
  240.         <div class=\"bg-gray-100\">
  241.             <div class=\"container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row\">
  242.                 <div class=\"max-w-[225px] md:max-w-[335px]\">
  243.                     ";
  244.         // line 20
  245.         if ( !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'20$this->source); })()), "getProperty", ["navigationRoot"], "method"falsefalsetrue20))) {
  246.             // line 21
  247.             yield "                        <a href=\"";
  248.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'21$this->source); })()), "getProperty", ["navigationRoot"], "method"falsefalsetrue21), "url", [], "any"falsefalsetrue21), 21$this->source)), "html"nulltrue);
  249.             yield "\">
  250.                             ";
  251.             // line 22
  252.             if ( !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'22$this->source); })()), "getProperty", ["replacement_logo"], "method"falsefalsetrue22))) {
  253.                 // line 23
  254.                 yield "                                ";
  255.                 yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'23$this->source); })()), "getProperty", ["replacement_logo"], "method"falsefalsetrue23), "thumbnail", ["default"], "method"falsefalsetrue23), "html", [], "any"falsefalsetrue23), 23$this->source);
  256.                 yield "
  257.                             ";
  258.             } elseif (CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", [], "any"truetruetrue24)) {
  259.                 // line 25
  260.                 yield "                                ";
  261.                 yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", ["default"], "method"falsefalsetrue25), "html", [], "any"falsefalsetrue25), 25$this->source);
  262.                 yield "
  263.                             ";
  264.             }
  265.             // line 27
  266.             yield "                        </a>
  267.                     ";
  268.         } else {
  269.             // line 29
  270.             yield "                        ";
  271.             if ( !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'29$this->source); })()), "getProperty", ["replacement_logo"], "method"falsefalsetrue29))) {
  272.                 // line 30
  273.                 yield "                            ";
  274.                 yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'30$this->source); })()), "getProperty", ["replacement_logo"], "method"falsefalsetrue30), "thumbnail", ["default"], "method"falsefalsetrue30), "html", [], "any"falsefalsetrue30), 30$this->source);
  275.                 yield "
  276.                         ";
  277.             } elseif (( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full")) && CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", [], "any"truetruetrue32))) {
  278.                 // line 33
  279.                 yield "                            ";
  280.                 yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", ["default"], "method"falsefalsetrue33), "html", [], "any"falsefalsetrue33), 33$this->source);
  281.                 yield "
  282.                         ";
  283.             }
  284.             // line 35
  285.             yield "                    ";
  286.         }
  287.         // line 36
  288.         yield "                </div>
  289.                 <div class=\"flex flex-col text-base font-bold md:flex-row\">
  290.                     <span class=\"mb-2 mr-6 md:mb-0\">&copy; ";
  291.         // line 38
  292.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""Y"), "html"nulltrue);
  293.         yield " Coolworld Rentals</span>
  294.                     <ul>
  295.                         ";
  296.         // line 40
  297.         $context["subFooterLinkCount"] = CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""subfooter_links"), "getCount", [], "method"falsefalsetrue40);
  298.         // line 41
  299.         yield "                        ";
  300.         $context['_parent'] = $context;
  301.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"block""subfooter_links"), "iterator", [], "any"falsefalsetrue41));
  302.         $context['loop'] = [
  303.           'parent' => $context['_parent'],
  304.           'index0' => 0,
  305.           'index'  => 1,
  306.           'first'  => true,
  307.         ];
  308.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  309.             $length count($context['_seq']);
  310.             $context['loop']['revindex0'] = $length 1;
  311.             $context['loop']['revindex'] = $length;
  312.             $context['loop']['length'] = $length;
  313.             $context['loop']['last'] = === $length;
  314.         }
  315.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  316.             // line 42
  317.             yield "                            <li class=\"mb-2 md:mb-0 ";
  318.             yield (((CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsetrue42) != (isset($context["subFooterLinkCount"]) || array_key_exists("subFooterLinkCount"$context) ? $context["subFooterLinkCount"] : (function () { throw new RuntimeError('Variable "subFooterLinkCount" does not exist.'42$this->source); })()))) ? ("md:mr-6") : (""));
  319.             yield " md:inline hover:underline\">";
  320.             yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""subfooter_sub_link");
  321.             yield "</li>
  322.                         ";
  323.             ++$context['loop']['index0'];
  324.             ++$context['loop']['index'];
  325.             $context['loop']['first'] = false;
  326.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  327.                 --$context['loop']['revindex0'];
  328.                 --$context['loop']['revindex'];
  329.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  330.             }
  331.         }
  332.         $_parent $context['_parent'];
  333.         unset($context['_seq'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  334.         $context array_intersect_key($context$_parent) + $_parent;
  335.         // line 44
  336.         yield "                    </ul>
  337.                 </div>
  338.             </div>
  339.         </div>
  340.         ";
  341.         // line 49
  342.         $context["facebook_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("facebook_url"null$this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'49$this->source); })()), "request", [], "any"falsefalsetrue49), "locale", [], "any"falsefalsetrue49), 49$this->source));
  343.         // line 50
  344.         yield "        ";
  345.         $context["twitter_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("twitter_url"null$this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'50$this->source); })()), "request", [], "any"falsefalsetrue50), "locale", [], "any"falsefalsetrue50), 50$this->source));
  346.         // line 51
  347.         yield "        ";
  348.         $context["linkedin_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("linkedin_url"null$this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'51$this->source); })()), "request", [], "any"falsefalsetrue51), "locale", [], "any"falsefalsetrue51), 51$this->source));
  349.         // line 52
  350.         yield "        ";
  351.         $context["instagram_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("instagram_url"null$this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'52$this->source); })()), "request", [], "any"falsefalsetrue52), "locale", [], "any"falsefalsetrue52), 52$this->source));
  352.         // line 53
  353.         yield "
  354.         ";
  355.         // line 54
  356.         $context["sameAs"] = Twig\Extension\CoreExtension::filter($this->env, [$this->sandbox->ensureToStringAllowed((isset($context["facebook_url"]) || array_key_exists("facebook_url"$context) ? $context["facebook_url"] : (function () { throw new RuntimeError('Variable "facebook_url" does not exist.'54$this->source); })()), 54$this->source), $this->sandbox->ensureToStringAllowed((isset($context["twitter_url"]) || array_key_exists("twitter_url"$context) ? $context["twitter_url"] : (function () { throw new RuntimeError('Variable "twitter_url" does not exist.'54$this->source); })()), 54$this->source), $this->sandbox->ensureToStringAllowed((isset($context["linkedin_url"]) || array_key_exists("linkedin_url"$context) ? $context["linkedin_url"] : (function () { throw new RuntimeError('Variable "linkedin_url" does not exist.'54$this->source); })()), 54$this->source), $this->sandbox->ensureToStringAllowed((isset($context["instagram_url"]) || array_key_exists("instagram_url"$context) ? $context["instagram_url"] : (function () { throw new RuntimeError('Variable "instagram_url" does not exist.'54$this->source); })()), 54$this->source)], function ($__u__) use ($context$macros) { $context["u"] = $__u__; return (isset($context["u"]) || array_key_exists("u"$context) ? $context["u"] : (function () { throw new RuntimeError('Variable "u" does not exist.'54$this->source); })()); });
  357.         // line 55
  358.         yield "
  359.         <script type=\"application/ld+json\">
  360.         {
  361.             \"@context\": \"http://schema.org\",
  362.             \"@type\": \"Organization\",
  363.             \"@id\": \"";
  364.         // line 60
  365.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["hostname"]) || array_key_exists("hostname"$context) ? $context["hostname"] : (function () { throw new RuntimeError('Variable "hostname" does not exist.'60$this->source); })()), 60$this->source), "html"nulltrue);
  366.         yield "\",
  367.             \"legalName\": \"";
  368.         // line 61
  369.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'61$this->source); })()), "getProperty", ["organizationLegalName"], "method"falsefalsetrue61), 61$this->source), "html"nulltrue);
  370.         yield "\",
  371.             \"description\": \"";
  372.         // line 62
  373.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'62$this->source); })()), "getProperty", ["organizationDescription"], "method"falsefalsetrue62), 62$this->source), "html"nulltrue);
  374.         yield "\",
  375.             \"url\": \"";
  376.         // line 63
  377.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["hostname"]) || array_key_exists("hostname"$context) ? $context["hostname"] : (function () { throw new RuntimeError('Variable "hostname" does not exist.'63$this->source); })()), 63$this->source), "html"nulltrue);
  378.         yield "\",
  379.             \"address\": {
  380.                 \"@type\": \"PostalAddress\",
  381.                     \"streetAddress\": \"";
  382.         // line 66
  383.         yield (((CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationStreet"], "method"truetruetrue66) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationStreet"], "method"falsefalsetrue66)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationStreet"], "method"falsefalsetrue66), 66$this->source), "html"nulltrue)) : (null));
  384.         yield "\",
  385.                     \"addressLocality\": \"";
  386.         // line 67
  387.         yield (((CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationCity"], "method"truetruetrue67) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationCity"], "method"falsefalsetrue67)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationCity"], "method"falsefalsetrue67), 67$this->source), "html"nulltrue)) : (null));
  388.         yield "\",
  389.                     \"addressRegion\": \"";
  390.         // line 68
  391.         yield (((CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationState"], "method"truetruetrue68) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationState"], "method"falsefalsetrue68)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationState"], "method"falsefalsetrue68), 68$this->source), "html"nulltrue)) : (null));
  392.         yield "\",
  393.                     \"postalCode\": \"";
  394.         // line 69
  395.         yield (((CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationZip"], "method"truetruetrue69) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationZip"], "method"falsefalsetrue69)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationZip"], "method"falsefalsetrue69), 69$this->source), "html"nulltrue)) : (null));
  396.         yield "\",
  397.                     \"addressCountry\": \"";
  398.         // line 70
  399.         yield (((CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationCountry"], "method"truetruetrue70) &&  !(null === CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationCountry"], "method"falsefalsetrue70)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, ($context["document"] ?? null), "getProperty", ["organizationCountry"], "method"falsefalsetrue70), 70$this->source), "html"nulltrue)) : (null));
  400.         yield "\"
  401.             },
  402.             ";
  403.         // line 72
  404.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'72$this->source); })()), "getProperty", ["organizationLogo"], "method"falsefalsetrue72)) {
  405.             // line 73
  406.             yield "                \"logo\": \"";
  407.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($this->sandbox->ensureToStringAllowed((isset($context["hostname"]) || array_key_exists("hostname"$context) ? $context["hostname"] : (function () { throw new RuntimeError('Variable "hostname" does not exist.'73$this->source); })()), 73$this->source) . "/var/assets") . $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'73$this->source); })()), "getProperty", ["organizationLogo"], "method"falsefalsetrue73), "realFullPath", [], "any"falsefalsetrue73), 73$this->source)), "html"nulltrue);
  408.             yield "\",
  409.             ";
  410.         }
  411.         // line 75
  412.         yield "            \"sameAs\": [
  413.                 \"";
  414.         // line 76
  415.         yield Twig\Extension\CoreExtension::join($this->sandbox->ensureToStringAllowed((isset($context["sameAs"]) || array_key_exists("sameAs"$context) ? $context["sameAs"] : (function () { throw new RuntimeError('Variable "sameAs" does not exist.'76$this->source); })()), 76$this->source), "\",\"");
  416.         yield "\"
  417.             ]
  418.         }
  419.         </script>
  420.     ";
  421.         
  422.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  423.         
  424.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  425.         yield from [];
  426.     }
  427.     /**
  428.      * @codeCoverageIgnore
  429.      */
  430.     public function getTemplateName(): string
  431.     {
  432.         return "areas/footer-brick/view.html.twig";
  433.     }
  434.     /**
  435.      * @codeCoverageIgnore
  436.      */
  437.     public function isTraitable(): bool
  438.     {
  439.         return false;
  440.     }
  441.     /**
  442.      * @codeCoverageIgnore
  443.      */
  444.     public function getDebugInfo(): array
  445.     {
  446.         return array (  454 => 76,  451 => 75,  445 => 73,  443 => 72,  438 => 70,  434 => 69,  430 => 68,  426 => 67,  422 => 66,  416 => 63,  412 => 62,  408 => 61,  404 => 60,  397 => 55,  395 => 54,  392 => 53,  389 => 52,  386 => 51,  383 => 50,  381 => 49,  374 => 44,  355 => 42,  337 => 41,  335 => 40,  330 => 38,  326 => 36,  323 => 35,  317 => 33,  311 => 30,  308 => 29,  304 => 27,  298 => 25,  292 => 23,  290 => 22,  285 => 21,  283 => 20,  276 => 15,  273 => 14,  270 => 12,  267 => 11,  264 => 10,  261 => 8,  258 => 7,  254 => 4,  241 => 3,  50 => 2,);
  447.     }
  448.     public function getSourceContext(): Source
  449.     {
  450.         return new Source("{# FRONTEND FOLDER pimcore-coolworld/frontend/partials/footer.php #}
  451. {% embed 'app/area-brick-layout.html.twig' %}
  452.     {% block content %}
  453.         <div class=\"text-white bg-blue-900 border-t-[10px] border-blue-500\">
  454.             <div class=\"container grid grid-cols-1 gap-4 py-12 mx-auto leading-8 md:gap-6 md:py-20 sm:grid-cols-2 md:grid-cols-4\">
  455.                 {# The first Column is different in that the links are related to product Categories #}
  456.                 {% include 'areas/footer-brick/partials/_column_product_categories.html.twig' with {'column_id': 'column_1'} %}
  457.                 {# Then place two regular columns #}
  458.                 {% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_2'} %}
  459.                 {% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_3'} %}
  460.                 {# The last column is a default column, but extended with a language switch and social media buttons #}
  461.                 {% include 'areas/footer-brick/partials/_column_regular_language_socials.html.twig' with {'column_id': 'column_4'} %}
  462.             </div>
  463.         </div>
  464.         <div class=\"bg-gray-100\">
  465.             <div class=\"container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row\">
  466.                 <div class=\"max-w-[225px] md:max-w-[335px]\">
  467.                     {% if document.getProperty('navigationRoot') is not null %}
  468.                         <a href=\"{{ document.getProperty('navigationRoot').url | trimUrl }}\">
  469.                             {% if document.getProperty('replacement_logo') is not null %}
  470.                                 {{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
  471.                             {% elseif pimcore_website_config('logo_full').thumbnail is defined %}
  472.                                 {{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
  473.                             {% endif %}
  474.                         </a>
  475.                     {% else %}
  476.                         {% if document.getProperty('replacement_logo') is not null %}
  477.                             {{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
  478.                         {% elseif pimcore_website_config('logo_full') is not null
  479.                             and pimcore_website_config('logo_full').thumbnail is defined %}
  480.                             {{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
  481.                         {% endif %}
  482.                     {% endif %}
  483.                 </div>
  484.                 <div class=\"flex flex-col text-base font-bold md:flex-row\">
  485.                     <span class=\"mb-2 mr-6 md:mb-0\">&copy; {{ \"now\"|date('Y') }} Coolworld Rentals</span>
  486.                     <ul>
  487.                         {% set subFooterLinkCount = pimcore_block(\"subfooter_links\").getCount() %}
  488.                         {% for i in pimcore_block(\"subfooter_links\").iterator %}
  489.                             <li class=\"mb-2 md:mb-0 {{ loop.index != subFooterLinkCount ? \"md:mr-6\" : \"\" }} md:inline hover:underline\">{{ pimcore_link('subfooter_sub_link') }}</li>
  490.                         {% endfor %}
  491.                     </ul>
  492.                 </div>
  493.             </div>
  494.         </div>
  495.         {% set facebook_url = pimcore_website_config('facebook_url', null, data.request.locale) %}
  496.         {% set twitter_url = pimcore_website_config('twitter_url', null, data.request.locale) %}
  497.         {% set linkedin_url = pimcore_website_config('linkedin_url', null, data.request.locale) %}
  498.         {% set instagram_url = pimcore_website_config('instagram_url', null, data.request.locale) %}
  499.         {% set sameAs = [facebook_url, twitter_url, linkedin_url, instagram_url] | filter(u => u) %}
  500.         <script type=\"application/ld+json\">
  501.         {
  502.             \"@context\": \"http://schema.org\",
  503.             \"@type\": \"Organization\",
  504.             \"@id\": \"{{ hostname }}\",
  505.             \"legalName\": \"{{ document.getProperty('organizationLegalName') }}\",
  506.             \"description\": \"{{ document.getProperty('organizationDescription') }}\",
  507.             \"url\": \"{{ hostname }}\",
  508.             \"address\": {
  509.                 \"@type\": \"PostalAddress\",
  510.                     \"streetAddress\": \"{{ document.getProperty('organizationStreet') ?? null }}\",
  511.                     \"addressLocality\": \"{{ document.getProperty('organizationCity') ?? null }}\",
  512.                     \"addressRegion\": \"{{ document.getProperty('organizationState') ?? null }}\",
  513.                     \"postalCode\": \"{{ document.getProperty('organizationZip') ?? null }}\",
  514.                     \"addressCountry\": \"{{ document.getProperty('organizationCountry') ?? null }}\"
  515.             },
  516.             {% if document.getProperty('organizationLogo') %}
  517.                 \"logo\": \"{{ hostname ~ '/var/assets' ~ document.getProperty('organizationLogo').realFullPath }}\",
  518.             {% endif %}
  519.             \"sameAs\": [
  520.                 \"{{ sameAs | join('\",\"') | raw }}\"
  521.             ]
  522.         }
  523.         </script>
  524.     {% endblock %}
  525. {% endembed %}
  526. ""areas/footer-brick/view.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/areas/footer-brick/view.html.twig");
  527.     }
  528.     
  529.     public function checkSecurity()
  530.     {
  531.         static $tags = ["extends" => 2"include" => 7"if" => 20"set" => 40"for" => 41];
  532.         static $filters = ["escape" => 21"trimUrl" => 21"raw" => 23"date" => 38"filter" => 54"join" => 76];
  533.         static $functions = ["pimcore_website_config" => 24"pimcore_block" => 40"pimcore_link" => 42];
  534.         try {
  535.             $this->sandbox->checkSecurity(
  536.                 ['extends''include''if''set''for'],
  537.                 ['escape''trimUrl''raw''date''filter''join'],
  538.                 ['pimcore_website_config''pimcore_block''pimcore_link'],
  539.                 $this->source
  540.             );
  541.         } catch (SecurityError $e) {
  542.             $e->setSourceContext($this->source);
  543.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  544.                 $e->setTemplateLine($tags[$e->getTagName()]);
  545.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  546.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  547.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  548.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  549.             }
  550.             throw $e;
  551.         }
  552.     }
  553. }