var/cache/dev/twig/54/5407475538bef5b455e141f33d225bd09c5a936cc3e2b8cc6efe04f6ad58776f.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* front/base/header/shop/mobile/header_shop_mobile.html.twig */
  15. class __TwigTemplate_4c820f788d57a7d1d01024f51786ff03c0e26750fdab4795853fc0da33949e5c extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/base/header/shop/mobile/header_shop_mobile.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""front/base/header/shop/mobile/header_shop_mobile.html.twig"));
  34.         // line 1
  35.         yield "<header class=\"header-mobile\">
  36.     <div class=\"ui container\">
  37.         <div class=\"ui grid\">
  38.             <div class=\"ui primary menu fixed\">
  39.                 ";
  40.         // line 5
  41.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PREVIOUS_ADMIN")) {
  42.             // line 6
  43.             yield "\t\t\t\t    ";
  44.             yield from             $this->loadTemplate("front/base/header/impersonate_alert.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"6)->unwrap()->yield(CoreExtension::merge($context, ["isCorporate" => false]));
  45.             // line 7
  46.             yield "\t\t\t    ";
  47.         }
  48.         // line 8
  49.         yield "                ";
  50.         if ((array_key_exists("announcement"$context) &&  !Twig\Extension\CoreExtension::testEmpty((isset($context["announcement"]) || array_key_exists("announcement"$context) ? $context["announcement"] : (function () { throw new RuntimeError('Variable "announcement" does not exist.'8$this->source); })())))) {
  51.             // line 9
  52.             yield "                    ";
  53.             yield from             $this->loadTemplate("front/base/preheader.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"9)->unwrap()->yield($context);
  54.             // line 10
  55.             yield "                ";
  56.         }
  57.         // line 11
  58.         yield "                <div class=\"header-mobile-content\">
  59.                     <a class=\"logo\" href=\"";
  60.         // line 12
  61.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyFrontUrl("/tiendab2b.html"), "html"nulltrue);
  62.         yield "\">
  63.                         <img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
  64.                     </a>
  65.                     <div class=\"right menu \" data-js-navgroup=\"default\">
  66.                         <div data-iso-code=\"";
  67.         // line 16
  68.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "session", [], "any"falsefalsefalse16), "get", ["lang"], "method"falsefalsefalse16), "html"nulltrue);
  69.         yield "\" data-session-id=\"";
  70.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "session", [], "any"falsefalsefalse16), "getId", [], "method"falsefalsefalse16), "html"nulltrue);
  71.         yield "\" class=\"item search ";
  72.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'16$this->source); })()), "session", [], "any"falsefalsefalse16), "get", ["isCheckout"], "method"falsefalsefalse16) === true)) {
  73.             yield " hide ";
  74.         }
  75.         yield "\" id=\"elasticsearchMobile\"></div>
  76.                         ";
  77.         // line 17
  78.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'17$this->source); })()), "user", [], "any"falsefalsefalse17)) {
  79.             // line 18
  80.             yield "                            <div class=\"item user-account-toggle\">
  81.                                 <i class=\"large user icon fitted\"></i>
  82.                             </div>
  83.                         ";
  84.         } else {
  85.             // line 22
  86.             yield "                            <div class=\"item active\" data-js-btn=\"loginBtn\">
  87.                                 <i class=\"large user plus icon fitted\"></i>
  88.                             </div>
  89.                         ";
  90.         }
  91.         // line 26
  92.         yield "                        <a class=\"item\"
  93.                         href=\"";
  94.         // line 27
  95.         (((=== CoreExtension::compare((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products"$context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.'27$this->source); })()), 0))) ? (yield "#") : (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyFrontUrl("/cart/mobileCart"), "html"nulltrue)));
  96.         yield "\">
  97.                             <i class=\"large shopping cart icon fitted\"></i>
  98.                             ";
  99.         // line 29
  100.         if ((=== CoreExtension::compare((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products"$context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.'29$this->source); })()), 0))) {
  101.             // line 30
  102.             yield "                                <b class=\"mobileToolbar-notify\">";
  103.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["cart_number_of_products"]) || array_key_exists("cart_number_of_products"$context) ? $context["cart_number_of_products"] : (function () { throw new RuntimeError('Variable "cart_number_of_products" does not exist.'30$this->source); })()), "html"nulltrue);
  104.             yield "</b>
  105.                             ";
  106.         } else {
  107.             // line 32
  108.             yield "                                <b class=\"mobileToolbar-notify\">0</b>
  109.                             ";
  110.         }
  111.         // line 34
  112.         yield "                        </a>
  113.                         <div class=\"item languages-toggle\">
  114.                             <svg role=\"img\" class=\"icon icon--inline icon-lang\">
  115.                                 <use
  116.                                         xlink:href=\"";
  117.         // line 38
  118.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\LegacyLinkExtension']->legacyImageUrl(("/icons/svg-defs.svg#icon-" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'38$this->source); })()), "session", [], "any"falsefalsefalse38), "get", ["lang"], "method"falsefalsefalse38))), "html"nulltrue);
  119.         yield "\"></use>
  120.                             </svg>
  121.                         </div>
  122.                         ";
  123.         // line 41
  124.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'41$this->source); })()), "session", [], "any"falsefalsefalse41), "get", ["isCheckout"], "method"falsefalsefalse41) === false)) {
  125.             // line 42
  126.             yield "                            <div class=\"item menu-toggle\">
  127.                             <div class=\"item menu-toggle\">
  128.                                 <i class=\"bb icon icon-menu\"></i>
  129.                             </div>
  130.                         ";
  131.         }
  132.         // line 47
  133.         yield "                    </div>
  134.                 </div>
  135.                 
  136.             </div>
  137.         </div>
  138.     </div>
  139.     ";
  140.         // line 53
  141.         if (Twig\Extension\CoreExtension::constant("IS_MOBILE")) {
  142.             // line 54
  143.             yield "        ";
  144.             yield from             $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_category.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"54)->unwrap()->yield($context);
  145.             // line 55
  146.             yield "        ";
  147.             yield from             $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_category_child.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"55)->unwrap()->yield($context);
  148.             // line 56
  149.             yield "        ";
  150.             yield from             $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_category_grand_child.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"56)->unwrap()->yield($context);
  151.             // line 57
  152.             yield "        ";
  153.             yield from             $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_languages.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"57)->unwrap()->yield($context);
  154.             // line 58
  155.             yield "        ";
  156.             if (CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'58$this->source); })()), "user", [], "any"falsefalsefalse58)) {
  157.                 // line 59
  158.                 yield "            ";
  159.                 yield from                 $this->loadTemplate("front/base/header/general/mobile/sidebar/sidebar_user.html.twig""front/base/header/shop/mobile/header_shop_mobile.html.twig"59)->unwrap()->yield($context);
  160.                 // line 60
  161.                 yield "        ";
  162.             }
  163.             // line 61
  164.             yield "    ";
  165.         }
  166.         // line 62
  167.         yield "
  168. </header>";
  169.         
  170.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  171.         
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  173.         return; yield '';
  174.     }
  175.     /**
  176.      * @codeCoverageIgnore
  177.      */
  178.     public function getTemplateName()
  179.     {
  180.         return "front/base/header/shop/mobile/header_shop_mobile.html.twig";
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function isTraitable()
  186.     {
  187.         return false;
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  176 => 62,  173 => 61,  170 => 60,  167 => 59,  164 => 58,  161 => 57,  158 => 56,  155 => 55,  152 => 54,  150 => 53,  142 => 47,  135 => 42,  133 => 41,  127 => 38,  121 => 34,  117 => 32,  111 => 30,  109 => 29,  104 => 27,  101 => 26,  95 => 22,  89 => 18,  87 => 17,  77 => 16,  70 => 12,  67 => 11,  64 => 10,  61 => 9,  58 => 8,  55 => 7,  52 => 6,  50 => 5,  44 => 1,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("<header class=\"header-mobile\">
  199.     <div class=\"ui container\">
  200.         <div class=\"ui grid\">
  201.             <div class=\"ui primary menu fixed\">
  202.                 {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  203. \t\t\t\t    {% include 'front/base/header/impersonate_alert.html.twig' with {isCorporate: false} %}
  204. \t\t\t    {% endif %}
  205.                 {% if announcement is defined and announcement is not empty %}
  206.                     {% include 'front/base/preheader.html.twig' %}
  207.                 {% endif %}
  208.                 <div class=\"header-mobile-content\">
  209.                     <a class=\"logo\" href=\"{{ legacy_front_url('/tiendab2b.html') }}\">
  210.                         <img src=\"https://cms.bigbuy.eu/uploads/bigbuy_logo_374c505207.svg\">
  211.                     </a>
  212.                     <div class=\"right menu \" data-js-navgroup=\"default\">
  213.                         <div data-iso-code=\"{{ app.session.get('lang') }}\" data-session-id=\"{{ app.session.getId() }}\" class=\"item search {% if app.session.get('isCheckout') is same as (true) %} hide {% endif %}\" id=\"elasticsearchMobile\"></div>
  214.                         {% if app.user %}
  215.                             <div class=\"item user-account-toggle\">
  216.                                 <i class=\"large user icon fitted\"></i>
  217.                             </div>
  218.                         {% else %}
  219.                             <div class=\"item active\" data-js-btn=\"loginBtn\">
  220.                                 <i class=\"large user plus icon fitted\"></i>
  221.                             </div>
  222.                         {% endif %}
  223.                         <a class=\"item\"
  224.                         href=\"{{ cart_number_of_products == 0 ? '#' : legacy_front_url('/cart/mobileCart') }}\">
  225.                             <i class=\"large shopping cart icon fitted\"></i>
  226.                             {% if cart_number_of_products > 0 %}
  227.                                 <b class=\"mobileToolbar-notify\">{{ cart_number_of_products }}</b>
  228.                             {% else %}
  229.                                 <b class=\"mobileToolbar-notify\">0</b>
  230.                             {% endif %}
  231.                         </a>
  232.                         <div class=\"item languages-toggle\">
  233.                             <svg role=\"img\" class=\"icon icon--inline icon-lang\">
  234.                                 <use
  235.                                         xlink:href=\"{{ legacy_image_url('/icons/svg-defs.svg#icon-'~app.session.get('lang')) }}\"></use>
  236.                             </svg>
  237.                         </div>
  238.                         {% if app.session.get('isCheckout') is same as (false) %}
  239.                             <div class=\"item menu-toggle\">
  240.                             <div class=\"item menu-toggle\">
  241.                                 <i class=\"bb icon icon-menu\"></i>
  242.                             </div>
  243.                         {% endif %}
  244.                     </div>
  245.                 </div>
  246.                 
  247.             </div>
  248.         </div>
  249.     </div>
  250.     {% if constant('IS_MOBILE') %}
  251.         {% include 'front/base/header/general/mobile/sidebar/sidebar_category.html.twig' %}
  252.         {% include 'front/base/header/general/mobile/sidebar/sidebar_category_child.html.twig' %}
  253.         {% include 'front/base/header/general/mobile/sidebar/sidebar_category_grand_child.html.twig' %}
  254.         {% include 'front/base/header/general/mobile/sidebar/sidebar_languages.html.twig' %}
  255.         {% if app.user %}
  256.             {% include 'front/base/header/general/mobile/sidebar/sidebar_user.html.twig' %}
  257.         {% endif %}
  258.     {% endif %}
  259. </header>""front/base/header/shop/mobile/header_shop_mobile.html.twig""/var/www/bigbuy-web/templates/front/base/header/shop/mobile/header_shop_mobile.html.twig");
  260.     }
  261. }