<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @SyliusShop/Layout/Footer/_grid.html.twig */
class __TwigTemplate_e397d99d0a73af594281516c14daed9863ccedf9cfbc3f55eb8bc63a443ac866 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "@SyliusShop/Layout/Footer/_grid.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Layout/Footer/_grid.html.twig"));
// line 1
echo "
";
// line 2
$context["media_ourshop"] = $this->extensions['App\Twig\Extensions\Cms\SectionExtension']->getMediaImageByCode("media_our_shop", twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 2, $this->source); })()), "localeCode", [], "any", false, false, false, 2), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sylius"]) || array_key_exists("sylius", $context) ? $context["sylius"] : (function () { throw new RuntimeError('Variable "sylius" does not exist.', 2, $this->source); })()), "channel", [], "any", false, false, false, 2), "code", [], "any", false, false, false, 2));
// line 3
if ( !(null === (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 3, $this->source); })()))) {
// line 4
echo "<section class=\"bloc-collection-index py-lg-4 py-md-3 pt-3 pb-2 my-1 hidden-index\">
<div class=\"container px-0\">
<div class=\"row no-gutters bg-blue-opac mt-md-3 \">
<div class=\"col-md-7\">
<div class=\"h-100 object-fit-img\">
";
// line 9
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 9, $this->source); })()), "path", [], "any", false, false, false, 9))) {
// line 10
echo " ";
$context["path_shop"] = twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 10, $this->source); })()), "path", [], "any", false, false, false, 10);
// line 11
echo " ";
} else {
// line 12
echo " ";
$context["path_shop"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/img_boutique.jpg");
// line 13
echo " ";
}
// line 14
echo " <img src=\"";
echo twig_escape_filter($this->env, (isset($context["path_shop"]) || array_key_exists("path_shop", $context) ? $context["path_shop"] : (function () { throw new RuntimeError('Variable "path_shop" does not exist.', 14, $this->source); })()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 14, $this->source); })()), "name", [], "any", false, false, false, 14), "html", null, true);
echo "\" />
</div>
</div>
<div class=\"col-md-5 has-bg-chouette\">
<div class=\"pl-lg-5 pl-md-4 px-md-3 px-4 pt-md-5 pt-4 pb-sm-4 pb-4 d-flex align-items-center h-100\">
<div class=\"max-container-txt text-left m-auto m-md-0\">
<h2 class=\"title-medium title-medium-mobile text-white text-center text-md-left\"> ";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 20, $this->source); })()), "name", [], "any", false, false, false, 20), "html", null, true);
echo "</h2>
<div class=\"texte-gris-mobile font-seize text-center text-md-left\">
";
// line 22
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 22, $this->source); })()), "content", [], "any", false, false, false, 22))) {
// line 23
echo " ";
echo twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 23, $this->source); })()), "content", [], "any", false, false, false, 23);
echo "
";
}
// line 25
echo " </div>
";
// line 26
if ( !(null === twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 26, $this->source); })()), "link", [], "any", false, false, false, 26))) {
// line 27
echo " <div class=\"mt-1 pt-3 pb-0 text-center text-md-left\">
<a href=\"/";
// line 28
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["media_ourshop"]) || array_key_exists("media_ourshop", $context) ? $context["media_ourshop"] : (function () { throw new RuntimeError('Variable "media_ourshop" does not exist.', 28, $this->source); })()), "link", [], "any", false, false, false, 28), "html", null, true);
echo "\" class=\"btn-link transition-bgcolor minw-sm bg-white-link\" title=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.learn_more"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.common.learn_more"), "html", null, true);
echo "</a>
</div>
";
}
// line 31
echo " </div>
</div>
</div>
</div>
</div>
</section>
";
}
// line 38
echo "<section class=\"py-md-3 pt-3 hidden-index\">
";
// line 39
$this->loadTemplate("@SyliusShop/Homepage/_reinsurance.html.twig", "@SyliusShop/Layout/Footer/_grid.html.twig", 39)->display($context);
// line 40
echo "</section>
<footer>
<div class=\"d-flex flex-column\">
";
// line 43
$this->loadTemplate("@SyliusShop/Homepage/_newsletter.html.twig", "@SyliusShop/Layout/Footer/_grid.html.twig", 43)->display($context);
// line 44
echo " <div class=\"footer-bottom\">
<div class=\"max-container-2 p-0 px-xl-4 px-lg-2 px-3\">
<div class=\"bloc-footer-menu\">
<div class=\"row mx-lg-n3 mx-n1\">
";
// line 48
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.layout.footer.grid");
echo "
</div>
</div>
</div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Layout/Footer/_grid.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 141 => 48, 135 => 44, 133 => 43, 128 => 40, 126 => 39, 123 => 38, 114 => 31, 104 => 28, 101 => 27, 99 => 26, 96 => 25, 90 => 23, 88 => 22, 83 => 20, 71 => 14, 68 => 13, 65 => 12, 62 => 11, 59 => 10, 57 => 9, 50 => 4, 48 => 3, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
{% set media_ourshop = app_get_media_image_by_code('media_our_shop', sylius.localeCode, sylius.channel.code) %}
{% if media_ourshop is not null %}
<section class=\"bloc-collection-index py-lg-4 py-md-3 pt-3 pb-2 my-1 hidden-index\">
<div class=\"container px-0\">
<div class=\"row no-gutters bg-blue-opac mt-md-3 \">
<div class=\"col-md-7\">
<div class=\"h-100 object-fit-img\">
{% if media_ourshop.path is not null %}
{% set path_shop = media_ourshop.path %}
{% else %}
{% set path_shop = asset('images/img_boutique.jpg') %}
{% endif %}
<img src=\"{{path_shop}}\" alt=\"{{ media_ourshop.name }}\" />
</div>
</div>
<div class=\"col-md-5 has-bg-chouette\">
<div class=\"pl-lg-5 pl-md-4 px-md-3 px-4 pt-md-5 pt-4 pb-sm-4 pb-4 d-flex align-items-center h-100\">
<div class=\"max-container-txt text-left m-auto m-md-0\">
<h2 class=\"title-medium title-medium-mobile text-white text-center text-md-left\"> {{ media_ourshop.name }}</h2>
<div class=\"texte-gris-mobile font-seize text-center text-md-left\">
{% if media_ourshop.content is not null %}
{{ media_ourshop.content|raw }}
{% endif %}
</div>
{% if media_ourshop.link is not null %}
<div class=\"mt-1 pt-3 pb-0 text-center text-md-left\">
<a href=\"/{{ media_ourshop.link }}\" class=\"btn-link transition-bgcolor minw-sm bg-white-link\" title=\"{{'app.common.learn_more'|trans}}\">{{'app.common.learn_more'|trans}}</a>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</section>
{% endif %}
<section class=\"py-md-3 pt-3 hidden-index\">
{% include '@SyliusShop/Homepage/_reinsurance.html.twig' %}
</section>
<footer>
<div class=\"d-flex flex-column\">
{% include '@SyliusShop/Homepage/_newsletter.html.twig' %}
<div class=\"footer-bottom\">
<div class=\"max-container-2 p-0 px-xl-4 px-lg-2 px-3\">
<div class=\"bloc-footer-menu\">
<div class=\"row mx-lg-n3 mx-n1\">
{{ sylius_template_event('sylius.shop.layout.footer.grid') }}
</div>
</div>
</div>
</div>
</div>
", "@SyliusShop/Layout/Footer/_grid.html.twig", "/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Layout/Footer/_grid.html.twig");
}
}