-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct undefined var in template and fix 'admin only' menu type. fixes
- Loading branch information
Showing
4 changed files
with
42 additions
and
30 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/themes/BootstrapTheme/Resources/views/Include/admin_menu.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="{{ pagevars.homepath }}">{{ getModVar('ZConfig', 'sitename') }}</a> | ||
</div> | ||
<div class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li>{{ adminPanelMenu() }}</li> | ||
<li><a href="{{ pagevars.homepath }}">{{ __('Home') }}</a></li> | ||
{% if hasPermission('ZikulaSettingsModule::', '::', 'ACCESS_ADMIN') %} | ||
<li><a href="{{ path('zikulasettingsmodule_admin_index') }}">{{ __('Settings') }}</a></li> | ||
{% endif %} | ||
{% if hasPermission('ZikulaExtensionsModule::', '::', 'ACCESS_ADMIN') %} | ||
<li><a href="{{ path('zikulaextensionsmodule_admin_index') }}">{{ __('Extensions') }}</a></li> | ||
{% endif %} | ||
{% if hasPermission('ZikulaBlocksModule::', '::', 'ACCESS_EDIT') %} | ||
<li><a href="{{ path('zikulablocksmodule_admin_view') }}">{{ __('Blocks') }}</a></li> | ||
{% endif %} | ||
{% if hasPermission('ZikulaUsersModule::', '::', 'ACCESS_MODERATE') %} | ||
<li><a href="{{ path('zikulausersmodule_admin_index') }}">{{ __('Users') }}</a></li> | ||
{% endif %} | ||
{% if hasPermission('ZikulaGroupsModule::', '::', 'ACCESS_EDIT') %} | ||
<li><a href="{{ path('zikulagroupsmodule_admin_index') }}">{{ __('Groups') }}</a></li> | ||
{% endif %} | ||
{% if hasPermission('ZikulaPermissionsModule::', '::', 'ACCESS_ADMIN') %} | ||
<li><a href="{{ path('zikulapermissionsmodule_admin_index') }}">{{ __('Permission rules') }}</a></li> | ||
{% endif %} | ||
{% if hasPermission('ZikulaThemeModule::', '::', 'ACCESS_EDIT') %} | ||
<li><a href="{{ path('zikulathememodule_admin_index') }}">{{ __('Themes') }}</a></li> | ||
{% endif %} | ||
</ul> | ||
</div><!--/.navbar-collapse --> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% include 'ZikulaBootstrapTheme:Include:header.html.twig' %} | ||
{% include 'ZikulaBootstrapTheme:Include:main_menu.html.twig' %} | ||
{% include 'ZikulaBootstrapTheme:Include:admin_menu.html.twig' %} | ||
{% include "ZikulaBootstrapTheme:Body:" ~ themevars.admin ~ ".html.twig" %} | ||
{% include 'ZikulaBootstrapTheme:Include:footer.html.twig' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% include 'ZikulaBootstrapTheme:Include:header.html.twig' %} | ||
{% include 'ZikulaBootstrapTheme:Include:main_menu.html.twig' %} | ||
{% include "ZikulaBootstrapTheme:Body:" ~ themevars.home ~ ".html.twig" %} | ||
{% include 'ZikulaBootstrapTheme:Include:footer.html.twig' %} | ||
{% include 'ZikulaBootstrapTheme:Include:footer.html.twig' %} |