<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* front/snippet/basket.html.twig */
class __TwigTemplate_2906817d55583137969f75b1e6f3c7dcb940a02b85771d90a452718c698001af extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/snippet/basket.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/snippet/basket.html.twig"));
// line 1
yield "<div class=\"basket__open\">
<a href=\"";
// line 2
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_basket");
yield "\" id=\"basket\" class=\"header__cart\">
<div class=\"icon icon--cart\">
<span ";
// line 4
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", false, false, false, 4)) {
yield "style=\"display: none\"";
}
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["basket"] ?? null), "totalAmmount", [], "any", true, true, false, 4)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["basket"] ?? null), "totalAmmount", [], "any", false, false, false, 4), 0)) : (0)), "html", null, true);
yield "</span>
</div>
</a>
";
// line 7
yield from $this->loadTemplate("front/snippet/basket_dropdown.html.twig", "front/snippet/basket.html.twig", 7)->unwrap()->yield($context);
// line 8
yield "</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "front/snippet/basket.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 64 => 8, 62 => 7, 52 => 4, 47 => 2, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"basket__open\">
<a href=\"{{ path('front_basket') }}\" id=\"basket\" class=\"header__cart\">
<div class=\"icon icon--cart\">
<span {% if not basket.count %}style=\"display: none\"{% endif %}>{{ basket.totalAmmount|default(0) }}</span>
</div>
</a>
{% include 'front/snippet/basket_dropdown.html.twig' %}
</div>
", "front/snippet/basket.html.twig", "/home/web/nexgen.cz/dev58/templates/front/snippet/basket.html.twig");
}
}