<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* areas/footer-brick/view.html.twig */
class __TwigTemplate_2c1eda711cb3d717a60d57c2c6df9ac4d96c5bb324a1b2e47ef001185490cc9b extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/footer-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/footer-brick/view.html.twig"));
// line 2
yield from $this->loadTemplate("areas/footer-brick/view.html.twig", "areas/footer-brick/view.html.twig", 2, "452253431")->unwrap()->yield($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/footer-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 50 => 2,);
}
public function getSourceContext(): Source
{
return new Source("{# FRONTEND FOLDER pimcore-coolworld/frontend/partials/footer.php #}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<div class=\"text-white bg-blue-900 border-t-[10px] border-blue-500\">
<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\">
{# The first Column is different in that the links are related to product Categories #}
{% include 'areas/footer-brick/partials/_column_product_categories.html.twig' with {'column_id': 'column_1'} %}
{# Then place two regular columns #}
{% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_2'} %}
{% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_3'} %}
{# The last column is a default column, but extended with a language switch and social media buttons #}
{% include 'areas/footer-brick/partials/_column_regular_language_socials.html.twig' with {'column_id': 'column_4'} %}
</div>
</div>
<div class=\"bg-gray-100\">
<div class=\"container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row\">
<div class=\"max-w-[225px] md:max-w-[335px]\">
{% if document.getProperty('navigationRoot') is not null %}
<a href=\"{{ document.getProperty('navigationRoot').url | trimUrl }}\">
{% if document.getProperty('replacement_logo') is not null %}
{{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
{% elseif pimcore_website_config('logo_full').thumbnail is defined %}
{{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
{% endif %}
</a>
{% else %}
{% if document.getProperty('replacement_logo') is not null %}
{{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
{% elseif pimcore_website_config('logo_full') is not null
and pimcore_website_config('logo_full').thumbnail is defined %}
{{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
{% endif %}
{% endif %}
</div>
<div class=\"flex flex-col text-base font-bold md:flex-row\">
<span class=\"mb-2 mr-6 md:mb-0\">© {{ \"now\"|date('Y') }} Coolworld Rentals</span>
<ul>
{% set subFooterLinkCount = pimcore_block(\"subfooter_links\").getCount() %}
{% for i in pimcore_block(\"subfooter_links\").iterator %}
<li class=\"mb-2 md:mb-0 {{ loop.index != subFooterLinkCount ? \"md:mr-6\" : \"\" }} md:inline hover:underline\">{{ pimcore_link('subfooter_sub_link') }}</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% set facebook_url = pimcore_website_config('facebook_url', null, data.request.locale) %}
{% set twitter_url = pimcore_website_config('twitter_url', null, data.request.locale) %}
{% set linkedin_url = pimcore_website_config('linkedin_url', null, data.request.locale) %}
{% set instagram_url = pimcore_website_config('instagram_url', null, data.request.locale) %}
{% set sameAs = [facebook_url, twitter_url, linkedin_url, instagram_url] | filter(u => u) %}
<script type=\"application/ld+json\">
{
\"@context\": \"http://schema.org\",
\"@type\": \"Organization\",
\"@id\": \"{{ hostname }}\",
\"legalName\": \"{{ document.getProperty('organizationLegalName') }}\",
\"description\": \"{{ document.getProperty('organizationDescription') }}\",
\"url\": \"{{ hostname }}\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \"{{ document.getProperty('organizationStreet') ?? null }}\",
\"addressLocality\": \"{{ document.getProperty('organizationCity') ?? null }}\",
\"addressRegion\": \"{{ document.getProperty('organizationState') ?? null }}\",
\"postalCode\": \"{{ document.getProperty('organizationZip') ?? null }}\",
\"addressCountry\": \"{{ document.getProperty('organizationCountry') ?? null }}\"
},
{% if document.getProperty('organizationLogo') %}
\"logo\": \"{{ hostname ~ '/var/assets' ~ document.getProperty('organizationLogo').realFullPath }}\",
{% endif %}
\"sameAs\": [
\"{{ sameAs | join('\",\"') | raw }}\"
]
}
</script>
{% endblock %}
{% endembed %}
", "areas/footer-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/footer-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["embed" => 2];
static $filters = [];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['embed'],
[],
[],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}
/* areas/footer-brick/view.html.twig */
class __TwigTemplate_2c1eda711cb3d717a60d57c2c6df9ac4d96c5bb324a1b2e47ef001185490cc9b___452253431 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
return "app/area-brick-layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/footer-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/footer-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/footer-brick/view.html.twig", 2);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
yield " <div class=\"text-white bg-blue-900 border-t-[10px] border-blue-500\">
<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\">
";
// line 7
yield " ";
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"]));
// line 8
yield "
";
// line 10
yield " ";
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"]));
// line 11
yield " ";
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"]));
// line 12
yield "
";
// line 14
yield " ";
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"]));
// line 15
yield " </div>
</div>
<div class=\"bg-gray-100\">
<div class=\"container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row\">
<div class=\"max-w-[225px] md:max-w-[335px]\">
";
// line 20
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", false, false, true, 20))) {
// line 21
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\UrlExtension']->trimUrl($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, 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.', 21, $this->source); })()), "getProperty", ["navigationRoot"], "method", false, false, true, 21), "url", [], "any", false, false, true, 21), 21, $this->source)), "html", null, true);
yield "\">
";
// line 22
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", false, false, true, 22))) {
// line 23
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 23, $this->source); })()), "getProperty", ["replacement_logo"], "method", false, false, true, 23), "thumbnail", ["default"], "method", false, false, true, 23), "html", [], "any", false, false, true, 23), 23, $this->source);
yield "
";
} elseif (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", [], "any", true, true, true, 24)) {
// line 25
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", ["default"], "method", false, false, true, 25), "html", [], "any", false, false, true, 25), 25, $this->source);
yield "
";
}
// line 27
yield " </a>
";
} else {
// line 29
yield " ";
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", false, false, true, 29))) {
// line 30
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 30, $this->source); })()), "getProperty", ["replacement_logo"], "method", false, false, true, 30), "thumbnail", ["default"], "method", false, false, true, 30), "html", [], "any", false, false, true, 30), 30, $this->source);
yield "
";
} 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", true, true, true, 32))) {
// line 33
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("logo_full"), "thumbnail", ["default"], "method", false, false, true, 33), "html", [], "any", false, false, true, 33), 33, $this->source);
yield "
";
}
// line 35
yield " ";
}
// line 36
yield " </div>
<div class=\"flex flex-col text-base font-bold md:flex-row\">
<span class=\"mb-2 mr-6 md:mb-0\">© ";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y"), "html", null, true);
yield " Coolworld Rentals</span>
<ul>
";
// line 40
$context["subFooterLinkCount"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "subfooter_links"), "getCount", [], "method", false, false, true, 40);
// line 41
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "subfooter_links"), "iterator", [], "any", false, false, true, 41));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 42
yield " <li class=\"mb-2 md:mb-0 ";
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 42) != (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") : (""));
yield " md:inline hover:underline\">";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "subfooter_sub_link");
yield "</li>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 44
yield " </ul>
</div>
</div>
</div>
";
// line 49
$context["facebook_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("facebook_url", null, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, true, 49), "locale", [], "any", false, false, true, 49), 49, $this->source));
// line 50
yield " ";
$context["twitter_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("twitter_url", null, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, true, 50), "locale", [], "any", false, false, true, 50), 50, $this->source));
// line 51
yield " ";
$context["linkedin_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("linkedin_url", null, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, true, 51), "locale", [], "any", false, false, true, 51), 51, $this->source));
// line 52
yield " ";
$context["instagram_url"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("instagram_url", null, $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, true, 52), "locale", [], "any", false, false, true, 52), 52, $this->source));
// line 53
yield "
";
// line 54
$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); })()); });
// line 55
yield "
<script type=\"application/ld+json\">
{
\"@context\": \"http://schema.org\",
\"@type\": \"Organization\",
\"@id\": \"";
// line 60
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", null, true);
yield "\",
\"legalName\": \"";
// line 61
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", false, false, true, 61), 61, $this->source), "html", null, true);
yield "\",
\"description\": \"";
// line 62
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", false, false, true, 62), 62, $this->source), "html", null, true);
yield "\",
\"url\": \"";
// line 63
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", null, true);
yield "\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \"";
// line 66
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationStreet"], "method", true, true, true, 66) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationStreet"], "method", false, false, true, 66)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationStreet"], "method", false, false, true, 66), 66, $this->source), "html", null, true)) : (null));
yield "\",
\"addressLocality\": \"";
// line 67
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationCity"], "method", true, true, true, 67) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationCity"], "method", false, false, true, 67)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationCity"], "method", false, false, true, 67), 67, $this->source), "html", null, true)) : (null));
yield "\",
\"addressRegion\": \"";
// line 68
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationState"], "method", true, true, true, 68) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationState"], "method", false, false, true, 68)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationState"], "method", false, false, true, 68), 68, $this->source), "html", null, true)) : (null));
yield "\",
\"postalCode\": \"";
// line 69
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationZip"], "method", true, true, true, 69) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationZip"], "method", false, false, true, 69)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationZip"], "method", false, false, true, 69), 69, $this->source), "html", null, true)) : (null));
yield "\",
\"addressCountry\": \"";
// line 70
yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationCountry"], "method", true, true, true, 70) && !(null === CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationCountry"], "method", false, false, true, 70)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, ($context["document"] ?? null), "getProperty", ["organizationCountry"], "method", false, false, true, 70), 70, $this->source), "html", null, true)) : (null));
yield "\"
},
";
// line 72
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", false, false, true, 72)) {
// line 73
yield " \"logo\": \"";
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->source, 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.', 73, $this->source); })()), "getProperty", ["organizationLogo"], "method", false, false, true, 73), "realFullPath", [], "any", false, false, true, 73), 73, $this->source)), "html", null, true);
yield "\",
";
}
// line 75
yield " \"sameAs\": [
\"";
// line 76
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), "\",\"");
yield "\"
]
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/footer-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{# FRONTEND FOLDER pimcore-coolworld/frontend/partials/footer.php #}
{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
<div class=\"text-white bg-blue-900 border-t-[10px] border-blue-500\">
<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\">
{# The first Column is different in that the links are related to product Categories #}
{% include 'areas/footer-brick/partials/_column_product_categories.html.twig' with {'column_id': 'column_1'} %}
{# Then place two regular columns #}
{% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_2'} %}
{% include 'areas/footer-brick/partials/_column_regular.html.twig' with {'column_id': 'column_3'} %}
{# The last column is a default column, but extended with a language switch and social media buttons #}
{% include 'areas/footer-brick/partials/_column_regular_language_socials.html.twig' with {'column_id': 'column_4'} %}
</div>
</div>
<div class=\"bg-gray-100\">
<div class=\"container flex flex-col justify-between gap-6 py-10 mx-auto md:items-center md:flex-row\">
<div class=\"max-w-[225px] md:max-w-[335px]\">
{% if document.getProperty('navigationRoot') is not null %}
<a href=\"{{ document.getProperty('navigationRoot').url | trimUrl }}\">
{% if document.getProperty('replacement_logo') is not null %}
{{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
{% elseif pimcore_website_config('logo_full').thumbnail is defined %}
{{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
{% endif %}
</a>
{% else %}
{% if document.getProperty('replacement_logo') is not null %}
{{ document.getProperty('replacement_logo').thumbnail('default').html|raw }}
{% elseif pimcore_website_config('logo_full') is not null
and pimcore_website_config('logo_full').thumbnail is defined %}
{{ pimcore_website_config('logo_full').thumbnail('default').html|raw }}
{% endif %}
{% endif %}
</div>
<div class=\"flex flex-col text-base font-bold md:flex-row\">
<span class=\"mb-2 mr-6 md:mb-0\">© {{ \"now\"|date('Y') }} Coolworld Rentals</span>
<ul>
{% set subFooterLinkCount = pimcore_block(\"subfooter_links\").getCount() %}
{% for i in pimcore_block(\"subfooter_links\").iterator %}
<li class=\"mb-2 md:mb-0 {{ loop.index != subFooterLinkCount ? \"md:mr-6\" : \"\" }} md:inline hover:underline\">{{ pimcore_link('subfooter_sub_link') }}</li>
{% endfor %}
</ul>
</div>
</div>
</div>
{% set facebook_url = pimcore_website_config('facebook_url', null, data.request.locale) %}
{% set twitter_url = pimcore_website_config('twitter_url', null, data.request.locale) %}
{% set linkedin_url = pimcore_website_config('linkedin_url', null, data.request.locale) %}
{% set instagram_url = pimcore_website_config('instagram_url', null, data.request.locale) %}
{% set sameAs = [facebook_url, twitter_url, linkedin_url, instagram_url] | filter(u => u) %}
<script type=\"application/ld+json\">
{
\"@context\": \"http://schema.org\",
\"@type\": \"Organization\",
\"@id\": \"{{ hostname }}\",
\"legalName\": \"{{ document.getProperty('organizationLegalName') }}\",
\"description\": \"{{ document.getProperty('organizationDescription') }}\",
\"url\": \"{{ hostname }}\",
\"address\": {
\"@type\": \"PostalAddress\",
\"streetAddress\": \"{{ document.getProperty('organizationStreet') ?? null }}\",
\"addressLocality\": \"{{ document.getProperty('organizationCity') ?? null }}\",
\"addressRegion\": \"{{ document.getProperty('organizationState') ?? null }}\",
\"postalCode\": \"{{ document.getProperty('organizationZip') ?? null }}\",
\"addressCountry\": \"{{ document.getProperty('organizationCountry') ?? null }}\"
},
{% if document.getProperty('organizationLogo') %}
\"logo\": \"{{ hostname ~ '/var/assets' ~ document.getProperty('organizationLogo').realFullPath }}\",
{% endif %}
\"sameAs\": [
\"{{ sameAs | join('\",\"') | raw }}\"
]
}
</script>
{% endblock %}
{% endembed %}
", "areas/footer-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/footer-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 2, "include" => 7, "if" => 20, "set" => 40, "for" => 41];
static $filters = ["escape" => 21, "trimUrl" => 21, "raw" => 23, "date" => 38, "filter" => 54, "join" => 76];
static $functions = ["pimcore_website_config" => 24, "pimcore_block" => 40, "pimcore_link" => 42];
try {
$this->sandbox->checkSecurity(
['extends', 'include', 'if', 'set', 'for'],
['escape', 'trimUrl', 'raw', 'date', 'filter', 'join'],
['pimcore_website_config', 'pimcore_block', 'pimcore_link'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}