<?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;
/* SyliusShopBundle:Homepage:index.html.twig */
class __TwigTemplate_65eb06523e1414979167e4b3ca9db982fa022d15dd2acb3a28dcc794f4d1f1b7 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascripts' => [$this, 'block_javascripts'],
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@SyliusShop/layout.html.twig";
}
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", "SyliusShopBundle:Homepage:index.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "SyliusShopBundle:Homepage:index.html.twig"));
// line 12
$context["block"] = $this->extensions['App\Twig\Extensions\Cms\BlockExtension']->getBlock("texteperso_index", 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.', 12, $this->source); })()), "channel", [], "any", false, false, false, 12), "code", [], "any", false, false, false, 12));
// line 14
$context["partners"] = $this->extensions['App\Twig\Extensions\Partner\PartnerExtension']->getPartners();
// line 1
$this->parent = $this->loadTemplate("@SyliusShop/layout.html.twig", "SyliusShopBundle:Homepage:index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_javascripts($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(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 4
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 5
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("home", null, "bootstrapTheme");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_stylesheets($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(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 8
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 9
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("home", null, "bootstrapTheme");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 17
public function block_content($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(), "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 18
echo " <div class=\"index-bg m-0\">
<div class=\"homepage\">
";
// line 21
echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render("sylius.shop.homepage");
echo "
<div class=\"section-partenaire text-center\">
<div class=\"container p-0\">
<h2 class=\"titre-medium \">";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.homepage.ilsnousfont_confiance"), "html", null, true);
echo "</h2>
<div class=\"content-list-partenaire pos-relative mt-3 mt-md-5\">
<div class=\"part-prev prev-top\"></div>
<div class=\"part-next next-top\"></div>
<div class=\"index-partenaire swiper-container\" >
<div class=\"partenaire-wrapper swiper-wrapper align-items-center\">
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["partners"]) || array_key_exists("partners", $context) ? $context["partners"] : (function () { throw new RuntimeError('Variable "partners" does not exist.', 30, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["partner"]) {
// line 31
echo " <div class=\"swiper-slide partenaire-item\">
<a href=\"\" title=\"";
// line 32
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partner"], "name", [], "any", false, false, false, 32), "html", null, true);
echo "\">
";
// line 33
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["partner"], "filePath", [], "any", false, false, false, 33))) {
// line 34
echo " <img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partner"], "filePath", [], "any", false, false, false, 34), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["partner"], "alt", [], "any", false, false, false, 34), "html", null, true);
echo "\"/>
";
} else {
// line 36
echo " <img src=\"//placehold.it/200x56'\" alt=\"\"/>
";
}
// line 38
echo " </a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partner'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo "
</div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
</div>
</div>
";
// line 49
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_shop_partial_contact_request"));
echo "
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "SyliusShopBundle:Homepage:index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 192 => 49, 182 => 41, 174 => 38, 170 => 36, 162 => 34, 160 => 33, 156 => 32, 153 => 31, 149 => 30, 140 => 24, 134 => 21, 129 => 18, 119 => 17, 107 => 9, 102 => 8, 92 => 7, 80 => 5, 75 => 4, 65 => 3, 54 => 1, 52 => 14, 50 => 12, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@SyliusShop/layout.html.twig' %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('home', null, 'bootstrapTheme') }}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('home', null, 'bootstrapTheme') }}
{% endblock %}
{% set block = app_get_blocks('texteperso_index', sylius.channel.code ) %}
{% set partners = app_get_partners() %}
{% block content %}
<div class=\"index-bg m-0\">
<div class=\"homepage\">
{{ sylius_template_event('sylius.shop.homepage') }}
<div class=\"section-partenaire text-center\">
<div class=\"container p-0\">
<h2 class=\"titre-medium \">{{'app.homepage.ilsnousfont_confiance' |trans}}</h2>
<div class=\"content-list-partenaire pos-relative mt-3 mt-md-5\">
<div class=\"part-prev prev-top\"></div>
<div class=\"part-next next-top\"></div>
<div class=\"index-partenaire swiper-container\" >
<div class=\"partenaire-wrapper swiper-wrapper align-items-center\">
{% for partner in partners %}
<div class=\"swiper-slide partenaire-item\">
<a href=\"\" title=\"{{ partner.name }}\">
{% if partner.filePath is not empty %}
<img src=\"{{ partner.filePath }}\" alt=\"{{ partner.alt }}\"/>
{% else %}
<img src=\"//placehold.it/200x56'\" alt=\"\"/>
{% endif %}
</a>
</div>
{% endfor %}
</div>
<div class=\"swiper-pagination\"></div>
</div>
</div>
</div>
</div>
{{ render(url('app_shop_partial_contact_request')) }}
</div>
</div>
{% endblock %}
", "SyliusShopBundle:Homepage:index.html.twig", "/home/rayonnage/preprod/sylius/themes/BootstrapTheme/SyliusShopBundle/views/Homepage/index.html.twig");
}
}