#1343 - außerdem wurde nun das Menu "Reiseziele" entfernt, sollte eine Page keine Geschwister haben.
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3360 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
1a0388311e
commit
9e9bf8eb9d
5 changed files with 46 additions and 33 deletions
|
|
@ -1,5 +1,5 @@
|
|||
{# @var page \AppBundle\Entity\Page #}
|
||||
<div id="sidebar" class="col-md-3 col-sm-4 col-xs-12 hidden-xs">
|
||||
<div id="sidebar" class="col-md-3 col-sm-4 col-xs-12">
|
||||
|
||||
{% if show_search_sidebar_widget ?? true %}
|
||||
{% if search_sidebar_widget_block is null %}
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<div class="widget clearfix">
|
||||
<div class="widget clearfix hidden-xs">
|
||||
<div class="widget-title">
|
||||
TOP bewertet
|
||||
</div><!-- end title -->
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{% if nav_pages %}
|
||||
<div class="widget clearfix">
|
||||
|
||||
<div class="widget-title visible-xs">
|
||||
|
|
@ -9,7 +10,7 @@
|
|||
>
|
||||
<ul class="side-menu" role="menu">
|
||||
|
||||
{% for nav_page in nav_pages if nav_page.status == 1 and nav_page.showInNavi == 1 %}
|
||||
{% for nav_page in nav_pages %}
|
||||
|
||||
<li {% if nav_page == nav_open_node or nav_page == page %}class ="active"{% endif %} itemprop="name">
|
||||
<a itemprop="url" href="{{ nav_page.urlPath }}" title="{{ nav_page.title }}">
|
||||
|
|
@ -34,3 +35,4 @@
|
|||
</nav>
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{% if pages is not empty %}
|
||||
<div class="widget clearfix">
|
||||
<div class="widget clearfix hidden-xs">
|
||||
|
||||
<div class="widget-title">
|
||||
{{ slider_title }}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{% if slides is not empty %}
|
||||
<div class="widget clearfix">
|
||||
<div class="widget clearfix hidden-xs">
|
||||
|
||||
<div class="widget-title">
|
||||
{{ slider_title }}
|
||||
|
|
|
|||
|
|
@ -143,6 +143,17 @@ class PageRepository extends NestedTreeRepository
|
|||
{
|
||||
$sibling->setParent($parent);
|
||||
}
|
||||
return $siblings;
|
||||
|
||||
// Da diese Methode nur für die Navigation verwendet wird, kann man hier vorfiltern
|
||||
$filteredSiblings = [];
|
||||
foreach ($siblings as &$sibling)
|
||||
{
|
||||
if($sibling->getStatus() == 1 && $sibling->getShowInNavi() == 1)
|
||||
{
|
||||
$filteredSiblings[] = $sibling;
|
||||
}
|
||||
}
|
||||
|
||||
return $filteredSiblings;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue