/
var
/
www
/
html
/
restaurants
/
var
/
cache
/
prod
/
twig
/
e9
/
Upload File
HOME
<?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; /* claimed.html.twig */ class __TwigTemplate_4f25daa50fda3fb6d7d433c4f1868c617eebc3a6f0ee5505acd46fb0e72528de extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'extracss' => [$this, 'block_extracss'], 'sidenav' => [$this, 'block_sidenav'], 'topnav' => [$this, 'block_topnav'], 'content' => [$this, 'block_content'], 'extrajs' => [$this, 'block_extrajs'], ]; } protected function doGetParent(array $context) { // line 1 return "base.html.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $this->parent = $this->loadTemplate("base.html.twig", "claimed.html.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_extracss($context, array $blocks = []) { $macros = $this->macros; // line 4 echo " <style> .btn-white { background-color: #fff !important; color: #222 !important; } .btn-default { background-color: #808080; color: #fff; } span.select2.select2-container.select2-container--default.select2-container--below { width: 100% !important; } </style> "; } // line 21 public function block_sidenav($context, array $blocks = []) { $macros = $this->macros; // line 22 echo " <ul class=\"unifyMenu\" id=\"unifyMenu\"> <li class=\""; // line 23 echo (((0 === twig_compare(($context["title"] ?? null), "Profile"))) ? ("active") : ("")); echo "\"> <a href=\""; // line 24 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profile", ["place_slug" => twig_get_attribute($this->env, $this->source, ($context["place"] ?? null), "slug", [], "any", false, false, false, 24)]), "html", null, true); echo "\"> <span class=\"has-icon\"> <i class=\"icon-tree\"></i> </span> <span class=\"nav-title\">Place Details</span> </a> </li> <li class=\""; // line 31 echo (((0 === twig_compare(($context["title"] ?? null), "Items"))) ? ("active") : ("")); echo "\"> <a href=\""; // line 32 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("items", ["place_slug" => twig_get_attribute($this->env, $this->source, ($context["place"] ?? null), "slug", [], "any", false, false, false, 32)]), "html", null, true); echo "\"> <span class=\"has-icon\"> <i class=\"icon-list2\"></i> </span> <span class=\"nav-title\">Food Menu</span> </a> </li> <li class=\""; // line 39 echo (((0 === twig_compare(($context["title"] ?? null), "Categories"))) ? ("active") : ("")); echo "\"> <a href=\""; // line 40 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("category", ["place_slug" => twig_get_attribute($this->env, $this->source, ($context["place"] ?? null), "slug", [], "any", false, false, false, 40)]), "html", null, true); echo "\"> <span class=\"has-icon\"> <i class=\"icon-tree\"></i> </span> <span class=\"nav-title\">Food Categories</span> </a> </li> </ul> "; } // line 50 public function block_topnav($context, array $blocks = []) { $macros = $this->macros; // line 51 echo " <div class=\"row\" style=\"align-items: center;\"> <div class=\"col-xl-6 col-lg-6 col-md-6 col-sm-6 col-6\"> "; // line 53 if ((1 === twig_compare(($context["count"] ?? null), 1))) { // line 54 echo " <form action=\""; echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("change_place"); echo "\" style=\"display: flex;\" method=\"POST\"> <input type=\"hidden\" name=\"route\" value=\""; // line 55 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["app"] ?? null), "request", [], "any", false, false, false, 55), "attributes", [], "any", false, false, false, 55), "get", [0 => "_route"], "method", false, false, false, 55), "html", null, true); echo "\"> <select name=\"place\" class=\"form-control place-select\" style=\"font-size: 18px; flex: 1\"> "; // line 57 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["places"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["pl"]) { // line 58 echo " <option "; echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["pl"], "slug", [], "any", false, false, false, 58), twig_get_attribute($this->env, $this->source, ($context["place"] ?? null), "slug", [], "any", false, false, false, 58)))) ? ("selected") : ("")); echo " value=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["pl"], "slug", [], "any", false, false, false, 58), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["pl"], "name", [], "any", false, false, false, 58), "html", null, true); echo "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pl'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 60 echo " </select> <button class=\"btn btn-white change-place\" disabled>Change</button> </form> "; } // line 64 echo " </div> <div class=\"col-xl-6 col-lg-6 col-md-6 col-sm-6 col-6\"> <ul class=\"header-actions\"> <li class=\"dropdown\" style=\"display: flex; align-items: center;\"> <a href=\"#\" id=\"open-menu\" class=\"user-settings open-menu\" style=\"display: inline-block\"> <img class=\"avatar\" src=\""; // line 69 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/menu-black.svg"), "html", null, true); echo "\" alt=\"Menu Thumb\"/> </a> <a href=\"#\" id=\"userSettings\" class=\"user-settings\" data-toggle=\"dropdown\" aria-haspopup=\"true\" style=\"display: inline-block\"> <img class=\"avatar\" src=\""; // line 72 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/user.png"), "html", null, true); echo "\" alt=\"User Thumb\" /> </a> <div class=\"dropdown-menu lg dropdown-menu-right\" aria-labelledby=\"userSettings\"> <ul class=\"user-settings-list\"> <li> <a href=\"#\"> <div class=\"icon\"> <i class=\"icon-account_circle\"></i> </div> <p>Profile</p> </a> </li> </ul> <div class=\"logout-btn\"> <a href=\""; // line 86 echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout"); echo "\" class=\"btn\">Logout</a> </div> </div> </li> </ul> </div> </div> "; } // line 95 public function block_content($context, array $blocks = []) { $macros = $this->macros; echo " "; } // line 98 public function block_extrajs($context, array $blocks = []) { $macros = $this->macros; // line 99 echo " <script> if(document.querySelector('.place-select')){ document.querySelector('.place-select').addEventListener('change', function(e){ document.querySelector('.change-place').removeAttribute('disabled'); }); } </script> "; } public function getTemplateName() { return "claimed.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 222 => 99, 218 => 98, 210 => 95, 198 => 86, 181 => 72, 175 => 69, 168 => 64, 162 => 60, 149 => 58, 145 => 57, 140 => 55, 135 => 54, 133 => 53, 129 => 51, 125 => 50, 112 => 40, 108 => 39, 98 => 32, 94 => 31, 84 => 24, 80 => 23, 77 => 22, 73 => 21, 54 => 4, 50 => 3, 39 => 1,); } public function getSourceContext() { return new Source("", "claimed.html.twig", "/var/www/html/restaurants/templates/claimed.html.twig"); } }