var/cache/dev/twig/61/6147d80a7820000af651ebcb679f78fe.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusShop/Product/_box.html.twig */
  14. class __TwigTemplate_feee0ec331592ce548e76948a8c3e421 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/_box.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/_box.html.twig"));
  33.         // line 1
  34.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/Product/_box.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         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); })())]);
  40.         echo "
  41. <div class=\"ui fluid card\" id=\"box-product-card\">
  42.     <a href=\"";
  43.         // line 6
  44.         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"falsefalsefalse6), "_locale" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "locale", [], "any"falsefalsefalse6)]), "html"nulltrue);
  45.         echo "\"
  46.        class=\"blurring dimmable image\" id=\"image-box-ahref\">
  47.         <div class=\"ui dimmer\">
  48.             <div class=\"content\">
  49.                 <div class=\"center\">
  50.                     <div class=\"ui inverted button\">";
  51.         // line 11
  52.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.view_more"), "html"nulltrue);
  53.         echo "</div>
  54.                 </div>
  55.             </div>
  56.         </div>
  57.         ";
  58.         // line 15
  59.         $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); })())]));
  60.         // line 16
  61.         echo "        ";
  62.         $this->loadTemplate("@SyliusShop/Common/_addToWishlist.html.twig""@SyliusShop/Product/_box.html.twig"16)->display($context);
  63.         // line 17
  64.         echo "    </a>
  65.     <div class=\"content wishlist\" id=\"content-box-product\">
  66.         <a
  67.                 href=\"";
  68.         // line 20
  69.         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"falsefalsefalse20), "_locale" => twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse20), "locale", [], "any"falsefalsefalse20)]), "html"nulltrue);
  70.         echo "\"
  71.                 class=\"header sylius-product-name\"
  72.         >";
  73.         // line 22
  74.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse22), "html"nulltrue);
  75.         echo "</a>
  76.         ";
  77.         // line 24
  78.         if ( !twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse24), "empty", [], "method"falsefalsefalse24)) {
  79.             // line 25
  80.             echo "            <div class=\"sylius-product-price\">";
  81.             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());
  82.             echo "</div>
  83.         ";
  84.         }
  85.         // line 27
  86.         echo "
  87.         <div class=\"sylius-time-place\">
  88.             <div>
  89. ";
  90.         // line 34
  91.         echo "                ";
  92.         if (array_key_exists("journee"$context)) {
  93.             // line 35
  94.             echo "                    <div>
  95.                         <i class=\"clock icon\"></i>";
  96.             // line 36
  97.             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"nulltrue);
  98.             echo " jours
  99.                     </div>
  100.                 ";
  101.         }
  102.         // line 39
  103.         echo "            </div>
  104.             <div>
  105.                 <i class=\"map marker alternate icon\"></i> ";
  106.         // line 41
  107.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse41), "vendorAddress", [], "any"falsefalsefalse41), "city", [], "any"falsefalsefalse41), "html"nulltrue);
  108.         echo ", ";
  109.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse41), "vendorAddress", [], "any"falsefalsefalse41), "country", [], "any"falsefalsefalse41), "html"nulltrue);
  110.         echo "
  111.             </div>
  112.         </div>
  113.     </div>
  114. </div>
  115. ";
  116.         // line 49
  117.         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); })())]);
  118.         echo "
  119. ";
  120.         
  121.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  122.         
  123.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  124.     }
  125.     public function getTemplateName()
  126.     {
  127.         return "@SyliusShop/Product/_box.html.twig";
  128.     }
  129.     public function isTraitable()
  130.     {
  131.         return false;
  132.     }
  133.     public function getDebugInfo()
  134.     {
  135.         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,);
  136.     }
  137.     public function getSourceContext()
  138.     {
  139.         return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  140. {{ sonata_block_render_event('sylius.shop.product.index.before_box', {'product': product}) }}
  141. <div class=\"ui fluid card\" id=\"box-product-card\">
  142.     <a href=\"{{ path('sylius_shop_product_show', {'slug': product.slug, '_locale': product.translation.locale}) }}\"
  143.        class=\"blurring dimmable image\" id=\"image-box-ahref\">
  144.         <div class=\"ui dimmer\">
  145.             <div class=\"content\">
  146.                 <div class=\"center\">
  147.                     <div class=\"ui inverted button\">{{ 'sylius.ui.view_more'|trans }}</div>
  148.                 </div>
  149.             </div>
  150.         </div>
  151.         {% include '@SyliusShop/Product/_mainImage.html.twig' with {'product': product} %}
  152.         {% include '@SyliusShop/Common/_addToWishlist.html.twig' %}
  153.     </a>
  154.     <div class=\"content wishlist\" id=\"content-box-product\">
  155.         <a
  156.                 href=\"{{ path('sylius_shop_product_show', { slug: product.slug, _locale: product.translation.locale }) }}\"
  157.                 class=\"header sylius-product-name\"
  158.         >{{ product.name }}</a>
  159.         {% if not product.variants.empty() %}
  160.             <div class=\"sylius-product-price\">{{ money.calculatePrice(product|sylius_resolve_variant) }}</div>
  161.         {% endif %}
  162.         <div class=\"sylius-time-place\">
  163.             <div>
  164. {#                {% if nombreJours is defined %}#}
  165. {#                    <div>#}
  166. {#                        <i class=\"clock icon\"></i>{{ journee }} jours#}
  167. {#                    </div>#}
  168.                 {% if journee is defined %}
  169.                     <div>
  170.                         <i class=\"clock icon\"></i>{{ journee }} jours
  171.                     </div>
  172.                 {% endif %}
  173.             </div>
  174.             <div>
  175.                 <i class=\"map marker alternate icon\"></i> {{ product.vendor.vendorAddress.city }}, {{ product.vendor.vendorAddress.country }}
  176.             </div>
  177.         </div>
  178.     </div>
  179. </div>
  180. {{ sonata_block_render_event('sylius.shop.product.index.after_box', {'product': product}) }}
  181. ""@SyliusShop/Product/_box.html.twig""/var/www/Bikers/templates/bundles/SyliusShopBundle/Product/_box.html.twig");
  182.     }
  183. }