fixes #1454 the template tab is hiden with a configuration variable

This commit is contained in:
Matthieu Leproux
2021-07-21 15:57:16 +02:00
parent bf695699f5
commit 157ab47bec
3 changed files with 7 additions and 1 deletions

View File

@@ -199,6 +199,7 @@ $template->assign(
'U_CHANGE_THEME' => $change_theme_url,
'U_UPDATES' => $link_start.'updates',
'ADMIN_PAGE_TITLE' => 'Piwigo Administration Page',
'U_SHOW_TEMPLATE_TAB' => $conf['show_template_in_side_menu'],
)
);

View File

@@ -115,7 +115,9 @@ jQuery(document).ready(function() {
<ul>
<li><a href="{$U_CONFIG_GENERAL}"><i class="icon-cog-alt"></i>{'Options'|@translate}</a></li>
<li><a href="{$U_CONFIG_MENUBAR}"><i class="icon-menu"></i>{'Menu Management'|@translate}</a></li>
<li><a href="{$U_CONFIG_EXTENTS}"><i class="icon-code"></i>{'Templates'|@translate}</a></li>
{if {$U_SHOW_TEMPLATE_TAB}}
<li><a href="{$U_CONFIG_EXTENTS}"><i class="icon-code"></i>{'Templates'|@translate}</a></li>
{/if}
<li><a href="{$U_CONFIG_LANGUAGES}"><i class="icon-language"></i>{'Languages'|@translate}</a></li>
<li><a href="{$U_CONFIG_THEMES}"><i class="icon-brush"></i>{'Themes'|@translate}</a></li>
</ul>

View File

@@ -731,6 +731,9 @@ $conf['dashboard_activity_nb_weeks'] = 4;
// dragging an album. In milliseconds. 3 seconds by default.
$conf['album_move_delay_before_auto_opening'] = 3*1000;
// This variable is used to show or hide the template tab in the side menu
$conf['show_template_in_side_menu'] = false;
// +-----------------------------------------------------------------------+
// | Filter |
// +-----------------------------------------------------------------------+