178 lines
10 KiB
PHP
178 lines
10 KiB
PHP
<?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;
|
|
|
|
/* default/components/sidebar/navSidebarWidgetInner.html.twig */
|
|
class __TwigTemplate_7e7e5cf581f8535a697e038d1e5d45ab55a06d3a8dd17e2d0ca2df540336591c extends \Twig\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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/components/sidebar/navSidebarWidgetInner.html.twig"));
|
|
|
|
// line 1
|
|
if ((isset($context["nav_pages"]) || array_key_exists("nav_pages", $context))) {
|
|
// line 2
|
|
echo " <div class=\"widget clearfix\">
|
|
<div class=\"widget-title\">
|
|
<a class=\"collapse-widget collapsed\" href=\"#side-navigation\" data-toggle=\"collapse\">";
|
|
// line 4
|
|
echo twig_escape_filter($this->env, (isset($context["slider_title"]) || array_key_exists("slider_title", $context) ? $context["slider_title"] : (function () { throw new RuntimeError('Variable "slider_title" does not exist.', 4, $this->source); })()), "html", null, true);
|
|
echo "</a>
|
|
</div><!-- end title -->
|
|
|
|
<nav id=\"side-navigation\" class=\"navbar collapse\" role=\"navigation\" itemscope
|
|
itemtype=\"https://schema.org/SiteNavigationElement\">
|
|
<ul class=\"side-menu\" role=\"menu\">
|
|
";
|
|
// line 10
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable((isset($context["nav_pages"]) || array_key_exists("nav_pages", $context) ? $context["nav_pages"] : (function () { throw new RuntimeError('Variable "nav_pages" does not exist.', 10, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["nav_page"]) {
|
|
// line 11
|
|
echo " <li ";
|
|
if ((($context["nav_page"] == (isset($context["nav_open_node"]) || array_key_exists("nav_open_node", $context) ? $context["nav_open_node"] : (function () { throw new RuntimeError('Variable "nav_open_node" does not exist.', 11, $this->source); })())) || ($context["nav_page"] == (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 11, $this->source); })())))) {
|
|
echo "class =\"active\"";
|
|
}
|
|
echo " role=\"menuitem\" itemprop=\"name\">
|
|
<a itemprop=\"url\" href=\"";
|
|
// line 12
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nav_page"], "urlPath", [], "any", false, false, false, 12), "html", null, true);
|
|
echo "\" title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nav_page"], "title", [], "any", false, false, false, 12), "html", null, true);
|
|
echo "\">
|
|
";
|
|
// line 13
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nav_page"], "title", [], "any", false, false, false, 13), "html", null, true);
|
|
echo "
|
|
</a>
|
|
</li>
|
|
";
|
|
// line 16
|
|
if (($context["nav_page"] == (isset($context["nav_open_node"]) || array_key_exists("nav_open_node", $context) ? $context["nav_open_node"] : (function () { throw new RuntimeError('Variable "nav_open_node" does not exist.', 16, $this->source); })()))) {
|
|
// line 17
|
|
echo " ";
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable((isset($context["nav_child_pages"]) || array_key_exists("nav_child_pages", $context) ? $context["nav_child_pages"] : (function () { throw new RuntimeError('Variable "nav_child_pages" does not exist.', 17, $this->source); })()));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["nav_child_page"]) {
|
|
if (((twig_get_attribute($this->env, $this->source, $context["nav_child_page"], "status", [], "any", false, false, false, 17) == 1) && (twig_get_attribute($this->env, $this->source, $context["nav_child_page"], "showInNavi", [], "any", false, false, false, 17) == 1))) {
|
|
// line 18
|
|
echo " <li class=\"sub-menu-item";
|
|
if (($context["nav_child_page"] == (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 18, $this->source); })()))) {
|
|
echo " active";
|
|
}
|
|
echo "\" role=\"menuitem\" itemprop=\"name\">
|
|
<i class=\"fa fa-star\"></i>
|
|
<a itemprop=\"url\" href=\"";
|
|
// line 20
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nav_child_page"], "urlPath", [], "any", false, false, false, 20), "html", null, true);
|
|
echo "\" title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nav_child_page"], "title", [], "any", false, false, false, 20), "html", null, true);
|
|
echo "\">
|
|
";
|
|
// line 21
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["nav_child_page"], "title", [], "any", false, false, false, 21), "html", null, true);
|
|
echo "
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nav_child_page'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 25
|
|
echo " ";
|
|
}
|
|
// line 26
|
|
echo " ";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nav_page'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 27
|
|
echo " </ul>
|
|
</nav>
|
|
</div>
|
|
";
|
|
}
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "default/components/sidebar/navSidebarWidgetInner.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 120 => 27, 114 => 26, 111 => 25, 100 => 21, 94 => 20, 86 => 18, 80 => 17, 78 => 16, 72 => 13, 66 => 12, 59 => 11, 55 => 10, 46 => 4, 42 => 2, 40 => 1,);
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("{% if nav_pages is defined %}
|
|
<div class=\"widget clearfix\">
|
|
<div class=\"widget-title\">
|
|
<a class=\"collapse-widget collapsed\" href=\"#side-navigation\" data-toggle=\"collapse\">{{ slider_title }}</a>
|
|
</div><!-- end title -->
|
|
|
|
<nav id=\"side-navigation\" class=\"navbar collapse\" role=\"navigation\" itemscope
|
|
itemtype=\"https://schema.org/SiteNavigationElement\">
|
|
<ul class=\"side-menu\" role=\"menu\">
|
|
{% for nav_page in nav_pages %}
|
|
<li {% if nav_page == nav_open_node or nav_page == page %}class =\"active\"{% endif %} role=\"menuitem\" itemprop=\"name\">
|
|
<a itemprop=\"url\" href=\"{{ nav_page.urlPath }}\" title=\"{{ nav_page.title }}\">
|
|
{{ nav_page.title }}
|
|
</a>
|
|
</li>
|
|
{% if nav_page == nav_open_node %}
|
|
{% for nav_child_page in nav_child_pages if nav_child_page.status == 1 and nav_child_page.showInNavi == 1 %}
|
|
<li class=\"sub-menu-item{% if nav_child_page == page %} active{% endif %}\" role=\"menuitem\" itemprop=\"name\">
|
|
<i class=\"fa fa-star\"></i>
|
|
<a itemprop=\"url\" href=\"{{ nav_child_page.urlPath }}\" title=\"{{ nav_child_page.title }}\">
|
|
{{ nav_child_page.title }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{% endif %}", "default/components/sidebar/navSidebarWidgetInner.html.twig", "/Users/kadmin/Websites/sterntours-3/app/Resources/views/default/components/sidebar/navSidebarWidgetInner.html.twig");
|
|
}
|
|
}
|