<?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;
/* front/catalog/product/view/infos.html.twig */
class __TwigTemplate_618f67cc8431321de05ece41d55e02e3 extends 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/infos.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/catalog/product/view/infos.html.twig"));
// line 1
yield "<div class=\"product-infos\">
<div class=\"pictures-ctn\">
<div class=\"scene\">
";
// line 4
yield from $this->loadTemplate("front/modules/wishlist/bt.html.twig", "front/catalog/product/view/infos.html.twig", 4)->unwrap()->yield($context);
// line 5
yield " ";
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 5, $this->source); })()), "pictures", [], "any", false, false, false, 5)) > 0)) {
// line 6
yield " <div class=\"pictures\">
";
// line 7
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 7, $this->source); })()), "pictures", [], "any", false, false, false, 7));
$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["picture"]) {
// line 8
yield " <a ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 8)) {
yield "class=\"on\" ";
}
yield " data-fancybox=\"products-assets\" data-src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 8)), "product_zoom"), "html", null, true);
yield "\"><img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 8)), "product_large"), "html", null, true);
yield "\" width=\"400\" height=\"400\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 8)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 8)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 8, $this->source); })()), "name", [], "any", false, false, false, 8))), "html", null, true);
yield "\"></a>
";
++$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['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
yield " </div>
";
}
// line 12
yield " <div class=\"flags\">
";
// line 13
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 13, $this->source); })()), "isMadeInFrance", [], "method", false, false, false, 13)) {
// line 14
yield " <div class=\"flag origin made-in-france\">
<img src=\"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/cocarde.svg"), "html", null, true);
yield "\" alt=\"Made in France\">
<span>";
// line 16
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Fabriqué<br>en France", [], "messages");
yield "</span>
</div>
";
}
// line 19
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 19, $this->source); })()), "guaranty", [], "any", false, false, false, 19)) {
// line 20
yield " <div class=\"flag guaranty\">
<img src=\"";
// line 21
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/check.svg"), "html", null, true);
yield "\" alt=\"Made in France\">
<span>
";
// line 23
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Garantie", [], "messages");
yield "
";
// line 25
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 25, $this->source); })()), "guaranty", [], "any", false, false, false, 25), "html", null, true);
yield " ";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("an", [], "messages");
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 25, $this->source); })()), "guaranty", [], "any", false, false, false, 25) > 1)) {
yield "s";
}
// line 29
yield " </span>
</div>
";
}
// line 32
yield " </div>
</div>
";
// line 34
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 34, $this->source); })()), "pictures", [], "any", false, false, false, 34)) > 1)) {
// line 35
yield " <ul class=\"thumbs\">
";
// line 36
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 36, $this->source); })()), "pictures", [], "any", false, false, false, 36));
$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["picture"]) {
// line 37
yield " <li class=\"thumb\">
<a ";
// line 38
if (CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 38)) {
yield "class=\"on\" ";
}
yield " data-index=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 38), "html", null, true);
yield "\"><img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Liip\ImagineBundle\Templating\LazyFilterRuntime')->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "webPath", [], "any", false, false, false, 38)), "product_small"), "html", null, true);
yield "\" width=\"100\" height=\"100\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 38)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["picture"], "title", [], "any", false, false, false, 38)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 38, $this->source); })()), "name", [], "any", false, false, false, 38))), "html", null, true);
yield "\"></a>
</li>
";
++$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['picture'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
yield " </ul>
";
}
// line 43
yield " </div>
<div class=\"infos\">
";
// line 45
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 46
yield " <div class=\"admin-tools\">
<a href=\"";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_product_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 47, $this->source); })()), "id", [], "any", false, false, false, 47)]), "html", null, true);
yield "\" class=\"admin-update\" target=\"_blank\">modifier le produit</a>
</div>
";
}
// line 50
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 50, $this->source); })()), "manufacturer", [], "any", false, false, false, 50)) {
// line 51
yield " <div class=\"manufacturer\"><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("manufacturer", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "manufacturer", [], "any", false, false, false, 51), "id", [], "any", false, false, false, 51), "url" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "manufacturer", [], "any", false, false, false, 51), "url", [], "any", false, false, false, 51)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 51, $this->source); })()), "manufacturer", [], "any", false, false, false, 51), "name", [], "any", false, false, false, 51), "html", null, true);
yield "</a></div>
";
}
// line 53
yield " <h1>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 53, $this->source); })()), "headingTitle", [], "any", false, false, false, 53), "html", null, true);
yield "</h1>
<div class=\"description\">
<p>";
// line 55
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 55, $this->source); })()), "teaser", [], "any", false, false, false, 55);
yield "</p>
";
// line 56
if ((isset($context["hasWelcomeDiscount"]) || array_key_exists("hasWelcomeDiscount", $context) ? $context["hasWelcomeDiscount"] : (function () { throw new RuntimeError('Variable "hasWelcomeDiscount" does not exist.', 56, $this->source); })())) {
// line 57
yield " <div>
";
// line 58
yield from $this->loadTemplate("front/catalog/product/view/discount-welcome.html.twig", "front/catalog/product/view/infos.html.twig", 58)->unwrap()->yield($context);
// line 59
yield " </div>
";
}
// line 61
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["productDescription"]) || array_key_exists("productDescription", $context) ? $context["productDescription"] : (function () { throw new RuntimeError('Variable "productDescription" does not exist.', 61, $this->source); })()), "description", [], "any", false, false, false, 61)) {
// line 62
yield " <a href=\"#description\" class=\"bt-scroll\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Voir le descriptif", [], "messages");
yield "</a>
";
}
// line 64
yield " </div>
";
// line 65
if ( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 65, $this->source); })()), "canSeePrices", [], "method", false, false, false, 65)) {
// line 66
yield " <div class=\"not-logged\">
";
// line 67
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Pour voir les prix des articles,", [], "messages");
yield "<a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("customer_login");
yield "\">";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("il faut être connecté", [], "messages");
yield "</a> ";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("(c’est gratuit)", [], "messages");
yield ".
</div>
";
}
// line 70
yield " ";
yield from $this->loadTemplate("front/catalog/product/view/references.html.twig", "front/catalog/product/view/infos.html.twig", 70)->unwrap()->yield($context);
// line 71
yield " ";
if ( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["customerMgr"]) || array_key_exists("customerMgr", $context) ? $context["customerMgr"] : (function () { throw new RuntimeError('Variable "customerMgr" does not exist.', 71, $this->source); })()), "isExpert", [], "method", false, false, false, 71)) {
// line 72
yield " <div class=\"offers\">
<div class=\"free-shipping\">
<img src=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/shipping.svg"), "html", null, true);
yield "\" alt=\"";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Livraison gratuite dès 100 € HT", [], "messages");
yield "\">
<div>";
// line 75
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT", [], "messages");
yield "</div>
</div>
<div class=\"free-gift\">
<img src=\"";
// line 78
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/pictos/gift.svg"), "html", null, true);
yield "\" alt=\"";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("1 cadeau offert pour chaque commande internet", [], "messages");
yield "\">
<div>";
// line 79
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet", [], "messages");
yield "</div>
</div>
</div>
";
// line 82
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 82, $this->source); })()), "hasSoleil", [], "method", false, false, false, 82)) {
// line 83
yield " <p>";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("-25% de remise sur les produits <span class=\"picto soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto soleil\"></span>", [], "messages");
yield "</p>
";
}
// line 85
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 85, $this->source); })()), "hasNonSoleil", [], "method", false, false, false, 85)) {
// line 86
yield " <p>";
yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("-10% de remise sur les produits <span class=\"picto non-soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto non-soleil\"></span>", [], "messages");
yield "</p>
";
}
// line 88
yield " ";
}
// line 89
yield " </div>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/catalog/product/view/infos.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 337 => 89, 334 => 88, 328 => 86, 325 => 85, 319 => 83, 317 => 82, 311 => 79, 305 => 78, 299 => 75, 293 => 74, 289 => 72, 286 => 71, 283 => 70, 271 => 67, 268 => 66, 266 => 65, 263 => 64, 257 => 62, 254 => 61, 250 => 59, 248 => 58, 245 => 57, 243 => 56, 239 => 55, 233 => 53, 225 => 51, 222 => 50, 216 => 47, 213 => 46, 211 => 45, 207 => 43, 203 => 41, 178 => 38, 175 => 37, 158 => 36, 155 => 35, 153 => 34, 149 => 32, 144 => 29, 136 => 25, 132 => 23, 127 => 21, 124 => 20, 121 => 19, 115 => 16, 111 => 15, 108 => 14, 106 => 13, 103 => 12, 99 => 10, 74 => 8, 57 => 7, 54 => 6, 51 => 5, 49 => 4, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"product-infos\">
<div class=\"pictures-ctn\">
<div class=\"scene\">
{% include 'front/modules/wishlist/bt.html.twig' %}
{% if product.pictures|length > 0 %}
<div class=\"pictures\">
{% for picture in product.pictures %}
<a {% if loop.first %}class=\"on\" {% endif %} data-fancybox=\"products-assets\" data-src=\"{{ asset(picture.webPath) | imagine_filter('product_zoom') }}\"><img src=\"{{ asset(picture.webPath) | imagine_filter('product_large') }}\" width=\"400\" height=\"400\" alt=\"{{ picture.title?picture.title:product.name }}\"></a>
{% endfor %}
</div>
{% endif %}
<div class=\"flags\">
{% if product.isMadeInFrance() %}
<div class=\"flag origin made-in-france\">
<img src=\"{{ asset('img/pictos/cocarde.svg') }}\" alt=\"Made in France\">
<span>{% trans %}Fabriqué<br>en France{% endtrans %}</span>
</div>
{% endif %}
{% if product.guaranty %}
<div class=\"flag guaranty\">
<img src=\"{{ asset('img/pictos/check.svg') }}\" alt=\"Made in France\">
<span>
{% trans %}Garantie{% endtrans %}
{# {% if product.guaranty matches '/^\\\\d+\$/' %}#}
{{ product.guaranty }} {% trans %}an{% endtrans %}{% if product.guaranty > 1 %}s{% endif %}
{# {% else %}
{% trans %}{{ product.guaranty }}{% endtrans %}
{% endif %}#}
</span>
</div>
{% endif %}
</div>
</div>
{% if product.pictures|length > 1 %}
<ul class=\"thumbs\">
{% for picture in product.pictures %}
<li class=\"thumb\">
<a {% if loop.first %}class=\"on\" {% endif %} data-index=\"{{ loop.index0 }}\"><img src=\"{{ asset(picture.webPath) | imagine_filter('product_small') }}\" width=\"100\" height=\"100\" alt=\"{{ picture.title?picture.title:product.name }}\"></a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
<div class=\"infos\">
{% if is_granted('ROLE_ADMIN') %}
<div class=\"admin-tools\">
<a href=\"{{ path('admin_product_edit',{id:product.id}) }}\" class=\"admin-update\" target=\"_blank\">modifier le produit</a>
</div>
{% endif %}
{% if product.manufacturer %}
<div class=\"manufacturer\"><a href=\"{{ path('manufacturer',{id:product.manufacturer.id, url:product.manufacturer.url}) }}\">{{ product.manufacturer.name }}</a></div>
{% endif %}
<h1>{{ product.headingTitle }}</h1>
<div class=\"description\">
<p>{{ productDescription.teaser|raw }}</p>
{% if hasWelcomeDiscount %}
<div>
{% include 'front/catalog/product/view/discount-welcome.html.twig' %}
</div>
{% endif %}
{% if productDescription.description %}
<a href=\"#description\" class=\"bt-scroll\">{% trans %}Voir le descriptif{% endtrans %}</a>
{% endif %}
</div>
{% if not customerMgr.canSeePrices() %}
<div class=\"not-logged\">
{% trans %}Pour voir les prix des articles, {% endtrans %}<a href=\"{{ path('customer_login') }}\">{% trans %}il faut être connecté{% endtrans %}</a> {% trans %}(c’est gratuit){% endtrans %}.
</div>
{% endif %}
{% include 'front/catalog/product/view/references.html.twig' %}
{% if not customerMgr.isExpert() %}
<div class=\"offers\">
<div class=\"free-shipping\">
<img src=\"{{ asset('img/pictos/shipping.svg') }}\" alt=\"{% trans %}Livraison gratuite dès 100 € HT{% endtrans %}\">
<div>{% trans %}<strong>LIVRAISON GRATUITE</strong><br>dès 100 € HT{% endtrans %}</div>
</div>
<div class=\"free-gift\">
<img src=\"{{ asset('img/pictos/gift.svg') }}\" alt=\"{% trans %}1 cadeau offert pour chaque commande internet{% endtrans %}\">
<div>{% trans %}<strong>1 CADEAU OFFERT</strong> pour <br>chaque commande internet{% endtrans %}</div>
</div>
</div>
{% if product.hasSoleil() %}
<p>{% trans %}-25% de remise sur les produits <span class=\"picto soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto soleil\"></span>{% endtrans %}</p>
{% endif %}
{% if product.hasNonSoleil() %}
<p>{% trans %}-10% de remise sur les produits <span class=\"picto non-soleil\"></span> dès 100€ HT de commande de produits <span class=\"picto non-soleil\"></span>{% endtrans %}</p>
{% endif %}
{% endif %}
</div>
</div>
", "front/catalog/product/view/infos.html.twig", "/var/www/dogcat.com/v2-test/templates/front/catalog/product/view/infos.html.twig");
}
}