var/cache/dev/twig/d4/d40fc1f0aecf1881c2f2a7370922f25e.php line 92

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/Tabs/rfq.html.twig */
  14. class __TwigTemplate_e8f5987483a2fffe0bfc37170c6c038c 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/Tabs/rfq.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/Tabs/rfq.html.twig"));
  33.         // line 1
  34.         if ($this->extensions['MobileDetectBundle\Twig\Extension\MobileDetectExtension']->isMobile()) {
  35.             // line 2
  36.             echo "    ";
  37.             if (((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainTaxon", [], "any"falsetruefalse2), "code", [], "any"truetruefalse2)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainTaxon", [], "any"falsetruefalse2), "code", [], "any"falsefalsefalse2))) : ("")) != "services") && ($this->env->getFunction('vendor_can_rfq')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'2$this->source); })())) == true))) {
  38.                 // line 3
  39.                 echo "        <div class=\"ui tab active\" data-tab=\"rfq\">
  40.             ";
  41.                 // line 4
  42.                 if ((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'4$this->source); })())) {
  43.                     // line 5
  44.                     echo "                ";
  45.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_common_rfq_preview_create", ["template" => "@SyliusShop/Product/Show/_rfq.html.twig"]));
  46.                     echo "
  47.             ";
  48.                 } else {
  49.                     // line 7
  50.                     echo "                ";
  51.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_common_rfq_create", ["template" => "@SyliusShop/Product/Show/_rfq.html.twig""productId" => 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.'7$this->source); })()), "id", [], "any"falsefalsefalse7), "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.'7$this->source); })()), "slug", [], "any"falsefalsefalse7)]));
  52.                     echo "
  53.             ";
  54.                 }
  55.                 // line 9
  56.                 echo "        </div>
  57.     ";
  58.             }
  59.         } else {
  60.             // line 12
  61.             echo "    ";
  62.             if (((((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainTaxon", [], "any"falsetruefalse12), "code", [], "any"truetruefalse12)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["product"] ?? null), "mainTaxon", [], "any"falsetruefalse12), "code", [], "any"falsefalsefalse12))) : ("")) != "services") && ($this->env->getFunction('vendor_can_rfq')->getCallable()((isset($context["product"]) || array_key_exists("product"$context) ? $context["product"] : (function () { throw new RuntimeError('Variable "product" does not exist.'12$this->source); })())) == true))) {
  63.                 // line 13
  64.                 echo "        <div class=\"ui top attached large tabular menu product-tabs\">
  65.             <a class=\"item active\" data-tab=\"rfq\">";
  66.                 // line 14
  67.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.product.tabs.rfq"), "html"nulltrue);
  68.                 echo "</a>
  69.         </div>
  70.         <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"rfq\">
  71.             ";
  72.                 // line 18
  73.                 if ((isset($context["preview"]) || array_key_exists("preview"$context) ? $context["preview"] : (function () { throw new RuntimeError('Variable "preview" does not exist.'18$this->source); })())) {
  74.                     // line 19
  75.                     echo "                ";
  76.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_common_rfq_preview_create", ["template" => "@SyliusShop/Product/Show/_rfq.html.twig"]));
  77.                     echo "
  78.             ";
  79.                 } else {
  80.                     // line 21
  81.                     echo "                ";
  82.                     echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("app_common_rfq_create", ["template" => "@SyliusShop/Product/Show/_rfq.html.twig""productId" => 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.'21$this->source); })()), "id", [], "any"falsefalsefalse21), "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.'21$this->source); })()), "slug", [], "any"falsefalsefalse21)]));
  83.                     echo "
  84.             ";
  85.                 }
  86.                 // line 23
  87.                 echo "        </div>
  88.     ";
  89.             }
  90.         }
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.     }
  96.     public function getTemplateName()
  97.     {
  98.         return "@SyliusShop/Product/Show/Tabs/rfq.html.twig";
  99.     }
  100.     public function isTraitable()
  101.     {
  102.         return false;
  103.     }
  104.     public function getDebugInfo()
  105.     {
  106.         return array (  97 => 23,  91 => 21,  85 => 19,  83 => 18,  76 => 14,  73 => 13,  70 => 12,  65 => 9,  59 => 7,  53 => 5,  51 => 4,  48 => 3,  45 => 2,  43 => 1,);
  107.     }
  108.     public function getSourceContext()
  109.     {
  110.         return new Source("{% if is_mobile() %}
  111.     {% if product.mainTaxon.code|default != 'services' and vendor_can_rfq(product) == true %}
  112.         <div class=\"ui tab active\" data-tab=\"rfq\">
  113.             {% if preview %}
  114.                 {{ render(url('app_common_rfq_preview_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig'})) }}
  115.             {% else %}
  116.                 {{ render(url('app_common_rfq_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig', 'productId': product.id, 'slug': product.slug})) }}
  117.             {% endif %}
  118.         </div>
  119.     {% endif %}
  120. {% else %}
  121.     {% if product.mainTaxon.code|default != 'services' and vendor_can_rfq(product) == true %}
  122.         <div class=\"ui top attached large tabular menu product-tabs\">
  123.             <a class=\"item active\" data-tab=\"rfq\">{{ 'app.ui.product.tabs.rfq'|trans }}</a>
  124.         </div>
  125.         <div class=\"ui bottom attached tab segment product-tabs active\" data-tab=\"rfq\">
  126.             {% if preview %}
  127.                 {{ render(url('app_common_rfq_preview_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig'})) }}
  128.             {% else %}
  129.                 {{ render(url('app_common_rfq_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig', 'productId': product.id, 'slug': product.slug})) }}
  130.             {% endif %}
  131.         </div>
  132.     {% endif %}
  133. {% endif %}""@SyliusShop/Product/Show/Tabs/rfq.html.twig""/srv/open_marketplace/templates/bundles/SyliusShopBundle/Product/Show/Tabs/rfq.html.twig");
  134.     }
  135. }