var/cache/dev/twig/51/51b9bbc0da9c3e74472eb3690cf0266d.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/Show/_outOfStock.html.twig */
  14. class __TwigTemplate_7108188dad3227288f115408d9839e16 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/Show/_outOfStock.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/Show/_outOfStock.html.twig"));
  33.         // line 1
  34.         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.'1$this->source); })()), "variants", [], "any"falsefalsefalse1), "first", [], "any"falsefalsefalse1), "id", [], "any"falsefalsefalse1), "template" => "@SyliusShop/Product/Show/_availability_notifier.html.twig"]));
  35.         echo "
  36. ";
  37.         // line 3
  38.         if ((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.'3$this->source); })()), "simple", [], "any"falsefalsefalse3) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "variants", [], "any"falsetruefalse3), "first", [], "any"truetruefalse3))) {
  39.             // line 4
  40.             echo "    ";
  41.             if ( !$this->env->getFunction('sylius_inventory_is_available')->getCallable()(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.'4$this->source); })()), "variants", [], "any"falsefalsefalse4), "first", [], "any"falsefalsefalse4))) {
  42.                 echo 
  43.         ";
  44.                 // line 5
  45.                 if ( !(null === 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.'5$this->source); })()), "variants", [], "any"falsefalsefalse5), "first", [], "any"falsefalsefalse5), "restockingDate", [], "any"falsefalsefalse5))) {
  46.                     // line 6
  47.                     echo "            ";
  48.                     if ((twig_date_format_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.'6$this->source); })()), "variants", [], "any"falsefalsefalse6), "first", [], "any"falsefalsefalse6), "restockingDate", [], "any"falsefalsefalse6), "U") > twig_date_format_filter($this->env"now""U"))) {
  49.                         // line 7
  50.                         echo "            <span class=\"text-danger\">";
  51.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.the_product_will_be_available_on"), "html"nulltrue);
  52.                         echo " ";
  53.                         echo twig_escape_filter($this->envtwig_date_format_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.'7$this->source); })()), "variants", [], "any"falsefalsefalse7), "first", [], "any"falsefalsefalse7), "restockingDate", [], "any"falsefalsefalse7), $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.product.restocking_date_format")), "html"nulltrue);
  54.                         echo "</span>
  55.             ";
  56.                     }
  57.                     // line 9
  58.                     echo "        ";
  59.                 }
  60.                 // line 10
  61.                 echo "    ";
  62.             }
  63.         }
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.         
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  68.     }
  69.     public function getTemplateName()
  70.     {
  71.         return "@SyliusShop/Product/Show/_outOfStock.html.twig";
  72.     }
  73.     public function isTraitable()
  74.     {
  75.         return false;
  76.     }
  77.     public function getDebugInfo()
  78.     {
  79.         return array (  71 => 10,  68 => 9,  60 => 7,  57 => 6,  55 => 5,  50 => 4,  48 => 3,  43 => 1,);
  80.     }
  81.     public function getSourceContext()
  82.     {
  83.         return new Source("{{ render(path('app_shop_partial_availability_notifier_create', { 'productVariantId' : product.variants.first.id, 'template' : '@SyliusShop/Product/Show/_availability_notifier.html.twig' })) }}
  84. {% if product.simple and product.variants.first is defined %}
  85.     {% if not sylius_inventory_is_available(product.variants.first) %} 
  86.         {% if product.variants.first.restockingDate is not null %}
  87.             {% if product.variants.first.restockingDate|date('U') > 'now'|date('U') %}
  88.             <span class=\"text-danger\">{{ 'app.product.the_product_will_be_available_on'|trans }} {{ product.variants.first.restockingDate|date('app.product.restocking_date_format'|trans) }}</span>
  89.             {% endif %}
  90.         {% endif %}
  91.     {% endif %}
  92. {% endif %}""@SyliusShop/Product/Show/_outOfStock.html.twig""/var/www/html/themes/BootstrapTheme/templates/bundles/SyliusShopBundle/Product/Show/_outOfStock.html.twig");
  93.     }
  94. }