var/cache/dev/twig/68/685e4b606d732958e18b51dc68fb967caffcd333f96d3f32082c6f6e729d9e3a.php line 47

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/snippet/basket.html.twig */
  15. class __TwigTemplate_2906817d55583137969f75b1e6f3c7dcb940a02b85771d90a452718c698001af 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/snippet/basket.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/snippet/basket.html.twig"));
  34.         // line 1
  35.         yield "<div class=\"basket__open\">
  36.     <a href=\"";
  37.         // line 2
  38.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_basket");
  39.         yield "\" id=\"basket\" class=\"header__cart\">
  40.             <div class=\"icon icon--cart\">
  41.                 <span ";
  42.         // line 4
  43.         if ( !CoreExtension::getAttribute($this->env$this->source, (isset($context["basket"]) || array_key_exists("basket"$context) ? $context["basket"] : (function () { throw new RuntimeError('Variable "basket" does not exist.'4$this->source); })()), "count", [], "any"falsefalsefalse4)) {
  44.             yield "style=\"display: none\"";
  45.         }
  46.         yield ">";
  47.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["basket"] ?? null), "totalAmmount", [], "any"truetruefalse4)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["basket"] ?? null), "totalAmmount", [], "any"falsefalsefalse4), 0)) : (0)), "html"nulltrue);
  48.         yield "</span>
  49.             </div>
  50.     </a>
  51.     ";
  52.         // line 7
  53.         yield from         $this->loadTemplate("front/snippet/basket_dropdown.html.twig""front/snippet/basket.html.twig"7)->unwrap()->yield($context);
  54.         // line 8
  55.         yield "</div>
  56. ";
  57.         
  58.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  59.         
  60.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  61.         return; yield '';
  62.     }
  63.     /**
  64.      * @codeCoverageIgnore
  65.      */
  66.     public function getTemplateName()
  67.     {
  68.         return "front/snippet/basket.html.twig";
  69.     }
  70.     /**
  71.      * @codeCoverageIgnore
  72.      */
  73.     public function isTraitable()
  74.     {
  75.         return false;
  76.     }
  77.     /**
  78.      * @codeCoverageIgnore
  79.      */
  80.     public function getDebugInfo()
  81.     {
  82.         return array (  64 => 8,  62 => 7,  52 => 4,  47 => 2,  44 => 1,);
  83.     }
  84.     public function getSourceContext()
  85.     {
  86.         return new Source("<div class=\"basket__open\">
  87.     <a href=\"{{ path('front_basket') }}\" id=\"basket\" class=\"header__cart\">
  88.             <div class=\"icon icon--cart\">
  89.                 <span {% if not basket.count %}style=\"display: none\"{% endif %}>{{ basket.totalAmmount|default(0) }}</span>
  90.             </div>
  91.     </a>
  92.     {% include 'front/snippet/basket_dropdown.html.twig' %}
  93. </div>
  94. ""front/snippet/basket.html.twig""/home/web/nexgen.cz/dev58/templates/front/snippet/basket.html.twig");
  95.     }
  96. }