var/cache/dev/twig/ee/ee3482cf7012480a4b79f882761976bb111115b921c9c000434e0a8c9a66b857.php line 57

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/Show/_outOfStock.html.twig */
  14. class __TwigTemplate_d6297c60e1b314281feb29992e3a90f72f734abe716c2d96f0d7d2380c1f5907 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_outOfStock.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusShop/Product/Show/_outOfStock.html.twig"));
  33.         // line 1
  34.         $macros["money"] = $this->macros["money"] = $this->loadTemplate("@SyliusShop/Common/Macro/money.html.twig""@SyliusShop/Product/Show/_outOfStock.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. <div class=\"text-sm-right mb-4\">
  38.     <div id=\"article-price-box\">
  39.         <strong data-js-product-price id=\"product-price\" class=\"article-promo\">";
  40.         // line 5
  41.         echo twig_call_macro($macros["money"], "macro_calculatePriceWithTax", [$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.'5$this->source); })())), (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'5$this->source); })())], 5$context$this->getSourceContext());
  42.         echo "</strong>
  43.     </div>
  44. </div>
  45. ";
  46.         // line 9
  47.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_shop_partial_availability_notifier_create", ["productVariantId" => twig_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.'9$this->source); })()), "variants", [], "any"falsefalsefalse9), "first", [], "any"falsefalsefalse9), "id", [], "any"falsefalsefalse9), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
  48.         echo "
  49. ";
  50.         
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  52.         
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  54.     }
  55.     public function getTemplateName()
  56.     {
  57.         return "@SyliusShop/Product/Show/_outOfStock.html.twig";
  58.     }
  59.     public function isTraitable()
  60.     {
  61.         return false;
  62.     }
  63.     public function getDebugInfo()
  64.     {
  65.         return array (  57 => 9,  50 => 5,  45 => 2,  43 => 1,);
  66.     }
  67.     public function getSourceContext()
  68.     {
  69.         return new Source("{% import \"@SyliusShop/Common/Macro/money.html.twig\" as money %}
  70. <div class=\"text-sm-right mb-4\">
  71.     <div id=\"article-price-box\">
  72.         <strong data-js-product-price id=\"product-price\" class=\"article-promo\">{{ money.calculatePriceWithTax(product|sylius_resolve_variant, context) }}</strong>
  73.     </div>
  74. </div>
  75. {{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
  76. ""@SyliusShop/Product/Show/_outOfStock.html.twig""/home/chouettemauve/preprod/sylius/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_outOfStock.html.twig");
  77.     }
  78. }