source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/components/sidebar/searchSidebarWidget.html.twig")); // line 1 echo " "; // line 2 if ((isset($context["search_form"]) || array_key_exists("search_form", $context))) { // line 3 echo " "; echo twig_include($this->env, $context, "default/components/sidebar/searchSidebarWidgetInner.html.twig"); echo " "; // line 6 echo " "; } elseif ((isset($context["tt_search_form"]) || array_key_exists("tt_search_form", $context))) { // line 7 echo " "; echo twig_include($this->env, $context, "default/components/sidebar/ttSearchSidebarWidget.html.twig"); echo " "; // line 9 echo " "; } elseif (( // line 10 (isset($context["page"]) || array_key_exists("page", $context)) && !twig_test_empty((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 10, $this->source); })())))) { // line 11 echo " "; // line 12 echo " "; if ((twig_get_attribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 12, $this->source); })()), "title", [], "any", false, false, false, 12) != "Ferienwohnungen")) { // line 13 echo " "; echo $this->extensions['Symfony\Bridge\Twig\Extension\HttpKernelExtension']->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\HttpKernelExtension']->controller("AppBundle:Component:searchSidebarWidget", ["page" => (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 13, $this->source); })()), "title" => twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 13, $this->source); })()), "name", [], "any", false, false, false, 13)])); echo " "; } // line 15 echo " "; } elseif (((isset($context["api"]) || array_key_exists("api", $context)) && !twig_test_empty((isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 15, $this->source); })())))) { // line 16 echo " "; echo $this->extensions['Symfony\Bridge\Twig\Extension\HttpKernelExtension']->renderFragment($this->extensions['Symfony\Bridge\Twig\Extension\HttpKernelExtension']->controller("AppBundle:Component:searchSidebarApiWidget", ["api" => (isset($context["api"]) || array_key_exists("api", $context) ? $context["api"] : (function () { throw new RuntimeError('Variable "api" does not exist.', 16, $this->source); })()), "title" => twig_get_attribute($this->env, $this->source, (isset($context["widget"]) || array_key_exists("widget", $context) ? $context["widget"] : (function () { throw new RuntimeError('Variable "widget" does not exist.', 16, $this->source); })()), "name", [], "any", false, false, false, 16)])); echo " "; } $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof); } public function getTemplateName() { return "default/components/sidebar/searchSidebarWidget.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 78 => 16, 75 => 15, 69 => 13, 66 => 12, 64 => 11, 62 => 10, 59 => 9, 54 => 7, 51 => 6, 45 => 3, 43 => 2, 40 => 1,); } public function getSourceContext() { return new Source(" {% if search_form is defined %} {{ include('default/components/sidebar/searchSidebarWidgetInner.html.twig') }} {# #WORKAROUND Overriding this block doesn't work, probably due to a Symfony bug, see ttSearch.html.twig #} {% elseif tt_search_form is defined %} {{ include('default/components/sidebar/ttSearchSidebarWidget.html.twig') }} {# END WORKAROUND #} {% elseif page is defined and page is not empty %} {# #HACK Dont display the search in FEWO #} {% if page.title != 'Ferienwohnungen' %} {{ render(controller('AppBundle:Component:searchSidebarWidget', {page:page, title:widget.name})) }} {% endif %} {% elseif api is defined and api is not empty %} {{ render(controller('AppBundle:Component:searchSidebarApiWidget', {api:api, title:widget.name})) }} {% endif %}", "default/components/sidebar/searchSidebarWidget.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/sidebar/searchSidebarWidget.html.twig"); } }