<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* includes/navigation-icons.html.twig */
class __TwigTemplate_bf9d52074605df625888568a7d0c0374 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/navigation-icons.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/navigation-icons.html.twig"));
// line 1
echo "<ul class=\"navbar-nav menu-icons flex-row justify-content-center\">
<li class=\"search-button nav-item dropdown\">
<a class=\"search-toggle dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"#\" data-selector=\"#navbarCollapse\">
</a>
</li>
<li class=\"nav-item dropdown\">
<a class=\"dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" data-toggle=\"dropdown\" href=\"#\">
<img src=\"/static/images/icons/profile.svg\" /></a>
<ul class=\"dropdown-menu\">
";
// line 11
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 12
echo "
<span class=\"dropdown-menu-arrow search arrow\"></span>
<div class=\"dropdown-item\">";
// line 15
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.logged-in-as", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "user", [], "any", false, false, true, 15), "username", [], "any", false, false, true, 15)]), "html", null, true);
echo "</div>
<div class=\"dropdown-divider\"></div>
<a href=\"";
// line 17
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-index");
echo "\" class=\"dropdown-item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.profile"), "html", null, true);
echo "</a>
<div class=\"dropdown-divider\"></div>
<a href=\"";
// line 19
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-logout");
echo "\"class=\"dropdown-item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.logout"), "html", null, true);
echo "</a>
";
} else {
// line 22
echo "
<span class=\"dropdown-menu-arrow search arrow\"></span>
<a href=\"";
// line 24
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account-login");
echo "\"class=\"dropdown-item\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("general.login"), "html", null, true);
echo "</a>
";
}
// line 27
echo "
</ul>
</li>
<li class=\"nav-item\">
<a class=\"py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"";
// line 31
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("shop-cart-detail");
echo "\">
<img src=\"/static/images/icons/cart.svg\" /></a>
</li>
";
// line 34
echo twig_include($this->env, $context, "includes/language.html.twig");
echo "
</ul>
<form action=\"";
// line 36
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("search");
echo "\" class=\"search-box mx-auto\">
<input id=\"autoComplete\" name=\"term\" value=\"";
// line 37
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "request", [], "any", false, false, true, 37), "get", ["term"], "method", false, false, true, 37), 37, $this->source), "html", null, true);
echo "\" type=\"text\" class=\"text search-input\" placeholder=\"Type here to search...\" autocomplete=\"off\" />
</form>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "includes/navigation-icons.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 117 => 37, 113 => 36, 108 => 34, 102 => 31, 96 => 27, 88 => 24, 84 => 22, 76 => 19, 69 => 17, 64 => 15, 59 => 12, 57 => 11, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<ul class=\"navbar-nav menu-icons flex-row justify-content-center\">
<li class=\"search-button nav-item dropdown\">
<a class=\"search-toggle dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"#\" data-selector=\"#navbarCollapse\">
</a>
</li>
<li class=\"nav-item dropdown\">
<a class=\"dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" data-toggle=\"dropdown\" href=\"#\">
<img src=\"/static/images/icons/profile.svg\" /></a>
<ul class=\"dropdown-menu\">
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<span class=\"dropdown-menu-arrow search arrow\"></span>
<div class=\"dropdown-item\">{{ 'general.logged-in-as' | trans([app.user.username]) }}</div>
<div class=\"dropdown-divider\"></div>
<a href=\"{{ path('account-index') }}\" class=\"dropdown-item\">{{ 'general.profile' | trans }}</a>
<div class=\"dropdown-divider\"></div>
<a href=\"{{ path('account-logout') }}\"class=\"dropdown-item\">{{ 'general.logout' | trans }}</a>
{% else %}
<span class=\"dropdown-menu-arrow search arrow\"></span>
<a href=\"{{ path('account-login') }}\"class=\"dropdown-item\">{{ 'general.login' | trans }}</a>
{% endif %}
</ul>
</li>
<li class=\"nav-item\">
<a class=\"py-2 d-none d-md-inline-block menu-icon ml-4\" href=\"{{ path('shop-cart-detail') }}\">
<img src=\"/static/images/icons/cart.svg\" /></a>
</li>
{{ include('includes/language.html.twig') }}
</ul>
<form action=\"{{ path('search') }}\" class=\"search-box mx-auto\">
<input id=\"autoComplete\" name=\"term\" value=\"{{ app.request.get(\"term\") }}\" type=\"text\" class=\"text search-input\" placeholder=\"Type here to search...\" autocomplete=\"off\" />
</form>", "includes/navigation-icons.html.twig", "/var/www/dev-10/templates/includes/navigation-icons.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 11);
static $filters = array("escape" => 15, "trans" => 15);
static $functions = array("is_granted" => 11, "path" => 17, "include" => 34);
try {
$this->sandbox->checkSecurity(
['if'],
['escape', 'trans'],
['is_granted', 'path', 'include']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}