<?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/Product/_box.html.twig */
class __TwigTemplate_feee0ec331592ce548e76948a8c3e421 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/_box.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@SyliusShop/Product/_box.html.twig"));
// line 1
$macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig", "@SyliusShop/Product/_box.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.index.before_box", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 3, $this->source); })())]);
echo "
<div class=\"ui fluid card\" id=\"box-product-card\">
<a href=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 6, $this->source); })()), "slug", [], "any", false, false, false, 6), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 6, $this->source); })()), "translation", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6)]), "html", null, true);
echo "\"
class=\"blurring dimmable image\" id=\"image-box-ahref\">
<div class=\"ui dimmer\">
<div class=\"content\">
<div class=\"center\">
<div class=\"ui inverted button\">";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.view_more"), "html", null, true);
echo "</div>
</div>
</div>
</div>
";
// line 15
$this->loadTemplate("@SyliusShop/Product/_mainImage.html.twig", "@SyliusShop/Product/_box.html.twig", 15)->display(twig_array_merge($context, ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 15, $this->source); })())]));
// line 16
echo " ";
$this->loadTemplate("@SyliusShop/Common/_addToWishlist.html.twig", "@SyliusShop/Product/_box.html.twig", 16)->display($context);
// line 17
echo " </a>
<div class=\"content wishlist\" id=\"content-box-product\">
<a
href=\"";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("sylius_shop_product_show", ["slug" => twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 20, $this->source); })()), "slug", [], "any", false, false, false, 20), "_locale" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 20, $this->source); })()), "translation", [], "any", false, false, false, 20), "locale", [], "any", false, false, false, 20)]), "html", null, true);
echo "\"
class=\"header sylius-product-name\"
>";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 22, $this->source); })()), "name", [], "any", false, false, false, 22), "html", null, true);
echo "</a>
";
// line 24
if ( !twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 24, $this->source); })()), "variants", [], "any", false, false, false, 24), "empty", [], "method", false, false, false, 24)) {
// line 25
echo " <div class=\"sylius-product-price\">";
echo twig_call_macro($macros["money"], "macro_calculatePrice", [$this->env->getFilter('sylius_resolve_variant')->getCallable()((isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 25, $this->source); })()))], 25, $context, $this->getSourceContext());
echo "</div>
";
}
// line 27
echo "
<div class=\"sylius-time-place\">
<div>
";
// line 34
echo " ";
if (array_key_exists("journee", $context)) {
// line 35
echo " <div>
<i class=\"clock icon\"></i>";
// line 36
echo twig_escape_filter($this->env, (isset($context["journee"]) || array_key_exists("journee", $context) ? $context["journee"] : (function () { throw new RuntimeError('Variable "journee" does not exist.', 36, $this->source); })()), "html", null, true);
echo " jours
</div>
";
}
// line 39
echo " </div>
<div>
<i class=\"map marker alternate icon\"></i> ";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 41, $this->source); })()), "vendor", [], "any", false, false, false, 41), "vendorAddress", [], "any", false, false, false, 41), "city", [], "any", false, false, false, 41), "html", null, true);
echo ", ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 41, $this->source); })()), "vendor", [], "any", false, false, false, 41), "vendorAddress", [], "any", false, false, false, 41), "country", [], "any", false, false, false, 41), "html", null, true);
echo "
</div>
</div>
</div>
</div>
";
// line 49
echo $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->renderEvent("sylius.shop.product.index.after_box", ["product" => (isset($context["product"]) || array_key_exists("product", $context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.', 49, $this->source); })())]);
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@SyliusShop/Product/_box.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 131 => 49, 118 => 41, 114 => 39, 108 => 36, 105 => 35, 102 => 34, 97 => 27, 91 => 25, 89 => 24, 84 => 22, 79 => 20, 74 => 17, 71 => 16, 69 => 15, 62 => 11, 54 => 6, 48 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
{{ sonata_block_render_event('sylius.shop.product.index.before_box', {'product': product}) }}
<div class=\"ui fluid card\" id=\"box-product-card\">
<a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\"
class=\"blurring dimmable image\" id=\"image-box-ahref\">
<div class=\"ui dimmer\">
<div class=\"content\">
<div class=\"center\">
<div class=\"ui inverted button\">{{ 'sylius.ui.view_more'|trans }}</div>
</div>
</div>
</div>
{% include '@SyliusShop/Product/_mainImage.html.twig' with {'product': product} %}
{% include '@SyliusShop/Common/_addToWishlist.html.twig' %}
</a>
<div class=\"content wishlist\" id=\"content-box-product\">
<a
href=\"{{ path('sylius_shop_product_show', { slug: product.slug, _locale: product.translation.locale }) }}\"
class=\"header sylius-product-name\"
>{{ product.name }}</a>
{% if not product.variants.empty() %}
<div class=\"sylius-product-price\">{{ money.calculatePrice(product|sylius_resolve_variant) }}</div>
{% endif %}
<div class=\"sylius-time-place\">
<div>
{# {% if nombreJours is defined %}#}
{# <div>#}
{# <i class=\"clock icon\"></i>{{ journee }} jours#}
{# </div>#}
{% if journee is defined %}
<div>
<i class=\"clock icon\"></i>{{ journee }} jours
</div>
{% endif %}
</div>
<div>
<i class=\"map marker alternate icon\"></i> {{ product.vendor.vendorAddress.city }}, {{ product.vendor.vendorAddress.country }}
</div>
</div>
</div>
</div>
{{ sonata_block_render_event('sylius.shop.product.index.after_box', {'product': product}) }}
", "@SyliusShop/Product/_box.html.twig", "/var/www/Bikers/templates/bundles/SyliusShopBundle/Product/_box.html.twig");
}
}