var/cache/dev/twig/bb/bb0f765f1af91fe1885eb992d5a33501.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/_header.html.twig */
  14. class __TwigTemplate_b3002dea50d26880f1140cf5a7ff8ad1 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/_header.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/_header.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"header-product\">
  35.     <div class=\"product-title\">
  36.         <h1 id=\"sylius-product-name\">";
  37.         // line 3
  38.         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.'3$this->source); })()), "name", [], "any"falsefalsefalse3), "html"nulltrue);
  39.         echo "</h1>
  40.     </div>
  41.     <div id=\"product-price\">
  42.         ";
  43.         // line 6
  44.         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.'6$this->source); })()), "enabledVariants", [], "any"falsefalsefalse6), "empty", [], "method"falsefalsefalse6)) {
  45.             // line 7
  46.             echo "            ";
  47.             $this->loadTemplate("@SyliusShop/Product/Show/_price.html.twig""@SyliusShop/Product/Show/_header.html.twig"7)->display($context);
  48.             // line 8
  49.             echo "        ";
  50.         }
  51.         // line 9
  52.         echo "    </div>
  53.     <div class=\"place-and-name-product-show\">
  54.         <div class=\"place-product-show\">
  55.             <svg width=\"18\" height=\"23\" viewBox=\"0 0 18 23\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  56.                 <path d=\"M9 21C9 21 1 15 1 9C1 4 5 1 9 1C13 1 17 4 17 9C17 15 9 21 9 21ZM9 12C9.79565 12 10.5587 11.6839 11.1213 11.1213C11.6839 10.5587 12 9.79565 12 9C12 8.20435 11.6839 7.44129 11.1213 6.87868C10.5587 6.31607 9.79565 6 9 6C8.20435 6 7.44129 6.31607 6.87868 6.87868C6.31607 7.44129 6 8.20435 6 9C6 9.79565 6.31607 10.5587 6.87868 11.1213C7.44129 11.6839 8.20435 12 9 12Z\" stroke=\"#858585\" stroke-width=\"2\"/>
  57.             </svg>
  58.             <span>";
  59.         // line 15
  60.         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.'15$this->source); })()), "vendor", [], "any"falsefalsefalse15), "vendorAddress", [], "any"falsefalsefalse15), "city", [], "any"falsefalsefalse15), "html"nulltrue);
  61.         echo ", ";
  62.         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.'15$this->source); })()), "vendor", [], "any"falsefalsefalse15), "vendorAddress", [], "any"falsefalsefalse15), "country", [], "any"falsefalsefalse15), "html"nulltrue);
  63.         echo "</span>
  64.         </div>
  65.         <span>|</span>
  66.         <div class=\"vendor-name-product-show\">
  67.             <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  68.                 <path d=\"M10 17.2C7.5 17.2 5.29 15.92 4 14C4.03 12 8 10.9 10 10.9C12 10.9 15.97 12 16 14C15.3389 14.9844 14.4459 15.7912 13.3996 16.3492C12.3533 16.9072 11.1858 17.1994 10 17.2ZM10 3C10.7956 3 11.5587 3.31607 12.1213 3.87868C12.6839 4.44129 13 5.20435 13 6C13 6.79565 12.6839 7.55871 12.1213 8.12132C11.5587 8.68393 10.7956 9 10 9C9.20435 9 8.44129 8.68393 7.87868 8.12132C7.31607 7.55871 7 6.79565 7 6C7 5.20435 7.31607 4.44129 7.87868 3.87868C8.44129 3.31607 9.20435 3 10 3ZM10 0C8.68678 0 7.38642 0.258658 6.17317 0.761205C4.95991 1.26375 3.85752 2.00035 2.92893 2.92893C1.05357 4.8043 0 7.34784 0 10C0 12.6522 1.05357 15.1957 2.92893 17.0711C3.85752 17.9997 4.95991 18.7362 6.17317 19.2388C7.38642 19.7413 8.68678 20 10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10C20 4.47 15.5 0 10 0Z\" fill=\"#858585\"/>
  69.             </svg>
  70.             <span>";
  71.         // line 22
  72.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'22$this->source); })()), "vendor", [], "any"falsefalsefalse22), "shopUser", [], "any"falsefalsefalse22), "customer", [], "any"falsefalsefalse22), "firstName", [], "any"falsefalsefalse22), "html"nulltrue);
  73.         echo " ";
  74.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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.'22$this->source); })()), "vendor", [], "any"falsefalsefalse22), "shopUser", [], "any"falsefalsefalse22), "customer", [], "any"falsefalsefalse22), "lastName", [], "any"falsefalsefalse22), "html"nulltrue);
  75.         echo "</span>
  76.         </div>
  77.     </div>
  78.     <div class=\"inventory-product-destock\">
  79.         ";
  80.         // line 26
  81.         $this->loadTemplate("@SyliusShop/Product/Show/_inventory.html.twig""@SyliusShop/Product/Show/_header.html.twig"26)->display($context);
  82.         // line 27
  83.         echo "    </div>
  84. </div>
  85. <style>
  86.     .ui.stackable.grid{
  87.         display: flex;
  88.     }
  89.     /*#product-price{*/
  90.     /*    !*margin-left: auto;*!*/
  91.     /*    display: flex;*/
  92.     /*    align-items: center;*/
  93.     /*    justify-content: flex-end;*/
  94.     /*    margin: 0 !important*/
  95.     /*}*/
  96. </style>
  97. ";
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.     }
  103.     public function getTemplateName()
  104.     {
  105.         return "@SyliusShop/Product/Show/_header.html.twig";
  106.     }
  107.     public function isTraitable()
  108.     {
  109.         return false;
  110.     }
  111.     public function getDebugInfo()
  112.     {
  113.         return array (  92 => 27,  90 => 26,  81 => 22,  69 => 15,  61 => 9,  58 => 8,  55 => 7,  53 => 6,  47 => 3,  43 => 1,);
  114.     }
  115.     public function getSourceContext()
  116.     {
  117.         return new Source("<div class=\"header-product\">
  118.     <div class=\"product-title\">
  119.         <h1 id=\"sylius-product-name\">{{ product.name }}</h1>
  120.     </div>
  121.     <div id=\"product-price\">
  122.         {% if not product.enabledVariants.empty() %}
  123.             {% include '@SyliusShop/Product/Show/_price.html.twig' %}
  124.         {% endif %}
  125.     </div>
  126.     <div class=\"place-and-name-product-show\">
  127.         <div class=\"place-product-show\">
  128.             <svg width=\"18\" height=\"23\" viewBox=\"0 0 18 23\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  129.                 <path d=\"M9 21C9 21 1 15 1 9C1 4 5 1 9 1C13 1 17 4 17 9C17 15 9 21 9 21ZM9 12C9.79565 12 10.5587 11.6839 11.1213 11.1213C11.6839 10.5587 12 9.79565 12 9C12 8.20435 11.6839 7.44129 11.1213 6.87868C10.5587 6.31607 9.79565 6 9 6C8.20435 6 7.44129 6.31607 6.87868 6.87868C6.31607 7.44129 6 8.20435 6 9C6 9.79565 6.31607 10.5587 6.87868 11.1213C7.44129 11.6839 8.20435 12 9 12Z\" stroke=\"#858585\" stroke-width=\"2\"/>
  130.             </svg>
  131.             <span>{{ product.vendor.vendorAddress.city }}, {{ product.vendor.vendorAddress.country }}</span>
  132.         </div>
  133.         <span>|</span>
  134.         <div class=\"vendor-name-product-show\">
  135.             <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  136.                 <path d=\"M10 17.2C7.5 17.2 5.29 15.92 4 14C4.03 12 8 10.9 10 10.9C12 10.9 15.97 12 16 14C15.3389 14.9844 14.4459 15.7912 13.3996 16.3492C12.3533 16.9072 11.1858 17.1994 10 17.2ZM10 3C10.7956 3 11.5587 3.31607 12.1213 3.87868C12.6839 4.44129 13 5.20435 13 6C13 6.79565 12.6839 7.55871 12.1213 8.12132C11.5587 8.68393 10.7956 9 10 9C9.20435 9 8.44129 8.68393 7.87868 8.12132C7.31607 7.55871 7 6.79565 7 6C7 5.20435 7.31607 4.44129 7.87868 3.87868C8.44129 3.31607 9.20435 3 10 3ZM10 0C8.68678 0 7.38642 0.258658 6.17317 0.761205C4.95991 1.26375 3.85752 2.00035 2.92893 2.92893C1.05357 4.8043 0 7.34784 0 10C0 12.6522 1.05357 15.1957 2.92893 17.0711C3.85752 17.9997 4.95991 18.7362 6.17317 19.2388C7.38642 19.7413 8.68678 20 10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10C20 4.47 15.5 0 10 0Z\" fill=\"#858585\"/>
  137.             </svg>
  138.             <span>{{ product.vendor.shopUser.customer.firstName}} {{ product.vendor.shopUser.customer.lastName }}</span>
  139.         </div>
  140.     </div>
  141.     <div class=\"inventory-product-destock\">
  142.         {% include '@SyliusShop/Product/Show/_inventory.html.twig' %}
  143.     </div>
  144. </div>
  145. <style>
  146.     .ui.stackable.grid{
  147.         display: flex;
  148.     }
  149.     /*#product-price{*/
  150.     /*    !*margin-left: auto;*!*/
  151.     /*    display: flex;*/
  152.     /*    align-items: center;*/
  153.     /*    justify-content: flex-end;*/
  154.     /*    margin: 0 !important*/
  155.     /*}*/
  156. </style>
  157. ""@SyliusShop/Product/Show/_header.html.twig""/var/www/Bikers/templates/bundles/SyliusShopBundle/Product/Show/_header.html.twig");
  158.     }
  159. }