<?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;
/* entreprise/home.html.twig */
class __TwigTemplate_fe0cacb8140776d0e6851240648f2ac3749095fa0d3e80efe4f729dc891877ad extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "entreprise/home.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "entreprise/home.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "entreprise/home.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_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 4
echo "\t";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
\t<style>
\t\t.slick-prev:before,
\t\t.slick-next:before {
\t\t\tcolor: black;
\t\t\tfont-size: 35px;
\t\t}
\t\t.slide-container{
\t\t\theight: 350px;
\t\t}
\t
\t\t.home-collection-slide-container{
\t\t\twidth: 97%;
\t\t}
\t</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 21
public function block_body($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", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 22
echo "\t <!-- Slider-->
\t\t<div class=\"container\" >
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-2\">
\t\t\t\t\t<div>
\t\t\t\t\t";
// line 27
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["leftBoxes"]) || array_key_exists("leftBoxes", $context) ? $context["leftBoxes"] : (function () { throw new RuntimeError('Variable "leftBoxes" does not exist.', 27, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["leftBoxe"]) {
// line 28
echo "\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t <div class=\"card\">
\t\t\t\t\t\t\t\t<div class=\"card-body text-center\">
\t\t\t\t\t\t\t\t";
// line 31
echo twig_get_attribute($this->env, $this->source, $context["leftBoxe"], "contenu", [], "any", false, false, false, 31);
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<br/>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['leftBoxe'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-7\">
\t\t\t\t\t<div id=\"slide-container\">
\t\t\t\t\t";
// line 41
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\EntrepriseController::homeSlidesAction"));
echo "
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t<div>
\t\t\t\t\t";
// line 46
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["rightBoxes"]) || array_key_exists("rightBoxes", $context) ? $context["rightBoxes"] : (function () { throw new RuntimeError('Variable "rightBoxes" does not exist.', 46, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["rightBoxe"]) {
// line 47
echo "\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t <div class=\"card\">
\t\t\t\t\t\t\t\t<div class=\"card-body text-center\">
\t\t\t\t\t\t\t\t";
// line 50
echo twig_get_attribute($this->env, $this->source, $context["rightBoxe"], "contenu", [], "any", false, false, false, 50);
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<br/>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['rightBoxe'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
echo "\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t<section class=\"container pt-5\">
\t\t
\t
<!-- Heading-->
\t ";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["collections"]) || array_key_exists("collections", $context) ? $context["collections"] : (function () { throw new RuntimeError('Variable "collections" does not exist.', 66, $this->source); })()));
$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["collection"]) {
// line 67
echo "\t ";
if (twig_get_attribute($this->env, $this->source, $context["collection"], "isPromotional", [], "any", false, false, false, 67)) {
// line 68
echo "\t\t<div class=\"row\">
\t\t\t";
// line 69
$context["photos"] = twig_get_attribute($this->env, $this->source, $context["collection"], "photos", [], "any", false, false, false, 69);
// line 70
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["photos"]) || array_key_exists("photos", $context) ? $context["photos"] : (function () { throw new RuntimeError('Variable "photos" does not exist.', 70, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["p"]) {
// line 71
echo "\t\t\t\t<div class=\"col\">
\t\t\t\t\t<img src=\"";
// line 72
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["p"], "url", [], "any", false, false, false, 72), "html", null, true);
echo "\" />
\t\t\t\t</div>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['p'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo "\t\t</div>
\t ";
} else {
// line 77
echo "\t\t<div class=\"assie-card\">
\t\t\t<div class=\"assie-card-body\">
\t\t\t <div class=\"d-flex flex-wrap justify-content-between align-items-center pt-1 border-bottom pb-4 mb-4\">
\t\t\t\t<h2 class=\"h3 mb-0 pt-3 mr-2\">";
// line 80
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collection"], "nom", [], "any", false, false, false, 80), "html", null, true);
echo "</h2>
\t\t\t\t<div class=\"pt-3\"><a class=\"btn btn-outline-accent btn-sm\" href=\"";
// line 81
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("product_by_collection", ["slug" => twig_get_attribute($this->env, $this->source, $context["collection"], "slug", [], "any", false, false, false, 81)]), "html", null, true);
echo "\">Plus de produits<i class=\"czi-arrow-right ml-1 mr-n1\"></i></a></div>
\t\t\t </div>
\t\t\t <!-- Grid-->
\t\t\t\t<div class=\"home-collection-slide-container\">
\t\t\t\t <div class=\"row pt-2 mx-n2 home-collection-slide\">
\t\t\t\t\t<!-- Product-->
\t\t\t\t\t";
// line 87
$context["products"] = twig_get_attribute($this->env, $this->source, $context["collection"], "products", [], "any", false, false, false, 87);
// line 88
echo "\t\t\t\t\t";
echo twig_include($this->env, $context, "entreprise/product_raw_list_1.html.twig");
echo "
\t\t\t\t\t<!-- Product-->
\t\t\t\t </div>
\t\t\t </div>
\t\t\t</div>
\t\t</div>
\t ";
}
// line 95
echo "\t ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['collection'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 96
echo "\t
</section>
\t<br/>
\t<br/>
\t<br/>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 104
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 105
echo "\t";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
\t<script type=\"text/javascript\">
\t\$(function(){
\t\t\$('.autoplay-slide').slick({
\t\t\t slidesToShow: 1,
\t\t\t slidesToScroll: 1,
\t\t\t autoplay: true,
\t\t\t autoplaySpeed: 3000,
\t\t\t arrows: true,
\t\t\t responsive: [
\t\t\t\t\t{
\t\t\t\t\t breakpoint: 1024,
\t\t\t\t\t settings: {
\t\t\t\t\t\tslidesToShow: 1,
\t\t\t\t\t\tslidesToScroll: 1,
\t\t\t\t\t\tinfinite: true,
\t\t\t\t\t\tautoplay: true,
\t\t\t\t\t }
\t\t\t\t\t}
\t\t\t\t]
\t\t\t});
\t\t\t
\t\t
\t});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "entreprise/home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 298 => 105, 288 => 104, 273 => 96, 259 => 95, 248 => 88, 246 => 87, 237 => 81, 233 => 80, 228 => 77, 224 => 75, 215 => 72, 212 => 71, 207 => 70, 205 => 69, 202 => 68, 199 => 67, 182 => 66, 170 => 56, 158 => 50, 153 => 47, 149 => 46, 141 => 41, 135 => 37, 123 => 31, 118 => 28, 114 => 27, 107 => 22, 97 => 21, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block stylesheets %}
\t{{ parent() }}
\t<style>
\t\t.slick-prev:before,
\t\t.slick-next:before {
\t\t\tcolor: black;
\t\t\tfont-size: 35px;
\t\t}
\t\t.slide-container{
\t\t\theight: 350px;
\t\t}
\t
\t\t.home-collection-slide-container{
\t\t\twidth: 97%;
\t\t}
\t</style>
{% endblock stylesheets %}
{% block body %}
\t <!-- Slider-->
\t\t<div class=\"container\" >
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-md-2\">
\t\t\t\t\t<div>
\t\t\t\t\t{% for leftBoxe in leftBoxes %}
\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t <div class=\"card\">
\t\t\t\t\t\t\t\t<div class=\"card-body text-center\">
\t\t\t\t\t\t\t\t{{ leftBoxe.contenu | raw }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<br/>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-7\">
\t\t\t\t\t<div id=\"slide-container\">
\t\t\t\t\t{{ render(controller('App\\\\Controller\\\\EntrepriseController::homeSlidesAction')) }}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-md-3\">
\t\t\t\t\t<div>
\t\t\t\t\t{% for rightBoxe in rightBoxes %}
\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t <div class=\"card\">
\t\t\t\t\t\t\t\t<div class=\"card-body text-center\">
\t\t\t\t\t\t\t\t{{ rightBoxe.contenu | raw }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t </div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<br/>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t</div>
\t\t\t\t\t
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t<section class=\"container pt-5\">
\t\t
\t
<!-- Heading-->
\t {% for collection in collections %}
\t {% if collection.isPromotional %}
\t\t<div class=\"row\">
\t\t\t{% set photos = collection.photos %}
\t\t\t{% for p in photos %}
\t\t\t\t<div class=\"col\">
\t\t\t\t\t<img src=\"{{ p.url }}\" />
\t\t\t\t</div>
\t\t\t{% endfor %}
\t\t</div>
\t {% else %}
\t\t<div class=\"assie-card\">
\t\t\t<div class=\"assie-card-body\">
\t\t\t <div class=\"d-flex flex-wrap justify-content-between align-items-center pt-1 border-bottom pb-4 mb-4\">
\t\t\t\t<h2 class=\"h3 mb-0 pt-3 mr-2\">{{ collection.nom }}</h2>
\t\t\t\t<div class=\"pt-3\"><a class=\"btn btn-outline-accent btn-sm\" href=\"{{ path('product_by_collection', {'slug': collection.slug}) }}\">Plus de produits<i class=\"czi-arrow-right ml-1 mr-n1\"></i></a></div>
\t\t\t </div>
\t\t\t <!-- Grid-->
\t\t\t\t<div class=\"home-collection-slide-container\">
\t\t\t\t <div class=\"row pt-2 mx-n2 home-collection-slide\">
\t\t\t\t\t<!-- Product-->
\t\t\t\t\t{% set products = collection.products %}
\t\t\t\t\t{{ include ('entreprise/product_raw_list_1.html.twig') }}
\t\t\t\t\t<!-- Product-->
\t\t\t\t </div>
\t\t\t </div>
\t\t\t</div>
\t\t</div>
\t {% endif %}
\t {% endfor %}
\t
</section>
\t<br/>
\t<br/>
\t<br/>
{# End main #}
{% endblock body %}
{% block javascripts %}
\t{{ parent() }}
\t<script type=\"text/javascript\">
\t\$(function(){
\t\t\$('.autoplay-slide').slick({
\t\t\t slidesToShow: 1,
\t\t\t slidesToScroll: 1,
\t\t\t autoplay: true,
\t\t\t autoplaySpeed: 3000,
\t\t\t arrows: true,
\t\t\t responsive: [
\t\t\t\t\t{
\t\t\t\t\t breakpoint: 1024,
\t\t\t\t\t settings: {
\t\t\t\t\t\tslidesToShow: 1,
\t\t\t\t\t\tslidesToScroll: 1,
\t\t\t\t\t\tinfinite: true,
\t\t\t\t\t\tautoplay: true,
\t\t\t\t\t }
\t\t\t\t\t}
\t\t\t\t]
\t\t\t});
\t\t\t
\t\t
\t});
</script>
{% endblock javascripts %}
", "entreprise/home.html.twig", "/home/luxurybeautybarber/public_html/templates/entreprise/home.html.twig");
}
}