mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
restore HOME links, change parameter name for remove menu on certain page
git-svn-id: http://piwigo.org/svn/trunk@10824 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -51,7 +51,7 @@ if ( $theme_about !== false )
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theAboutPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theAboutPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -530,7 +530,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theCommentsPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theCommentsPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ if ( sizeof( $errors ) != 0 )
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theIdentificationPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theIdentificationPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
2
nbm.php
2
nbm.php
@@ -80,7 +80,7 @@ $template->assign(
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theNBMPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theNBMPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ $template->assign(
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theNotificationPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theNotificationPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ $template->assign('infos', $page['infos']);
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('thePasswordPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('thePasswordPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -1042,7 +1042,7 @@ if ($metadata_showable and pwg_get_session_var('show_metadata') <> null )
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if ($conf['picture_menu'] AND (!isset($themeconf['Exclude']) OR !in_array('theIdentificationPage', $themeconf['Exclude'])))
|
||||
if ($conf['picture_menu'] AND (!isset($themeconf['hide_menu_on']) OR !in_array('thePicturePage', $themeconf['hide_menu_on'])))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
if (is_admin()) $template->assign('U_ADMIN', $url_admin); // overwrited by the menu
|
||||
|
||||
@@ -85,7 +85,7 @@ SELECT '.implode(',', $fields).'
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theProfilePage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theProfilePage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ if (count($errors) != 0)
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theRegisterPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theRegisterPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ if (sizeof($errors) != 0)
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theSearchPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theSearchPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
2
tags.php
2
tags.php
@@ -193,7 +193,7 @@ foreach ($tags as $tag)
|
||||
|
||||
// include menubar
|
||||
$themeconf = $template->get_template_vars('themeconf');
|
||||
if (!isset($themeconf['Exclude']) OR !in_array('theTagsPage', $themeconf['Exclude']))
|
||||
if (!isset($themeconf['hide_menu_on']) OR !in_array('theTagsPage', $themeconf['hide_menu_on']))
|
||||
{
|
||||
include( PHPWG_ROOT_PATH.'include/menubar.inc.php');
|
||||
}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{if isset($MENUBAR)}{$MENUBAR}{/if}
|
||||
<div id="content" class="content">
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'About'|@translate}</h2>
|
||||
</div>
|
||||
<div id="piwigoAbout">
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'User comments'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Identification'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
{if isset($MENUBAR)}{$MENUBAR}{/if}
|
||||
<div id="content" class="content">
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Notification'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Notification'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Password forgotten'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -12,7 +12,11 @@
|
||||
{/if}
|
||||
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Profile'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="titrePage">
|
||||
<ul class="categoryActions"></ul>
|
||||
<ul class="categoryActions">
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Registration'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
<li><a href="{$U_HELP}" onclick="popuphelp(this.href); return false;" title="{'Help'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-help"> </span><span class="pwg-button-text">{'Help'|@translate}</span>
|
||||
</a></li>
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Search'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
<span class="pwg-icon pwg-icon-letters"> </span><span class="pwg-button-text">{'letters'|@translate}</span>
|
||||
</a></li>
|
||||
{/if}
|
||||
<li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button">
|
||||
<span class="pwg-icon pwg-icon-home"> </span><span class="pwg-button-text">{'Home'|@translate}</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<h2>{'Tags'|@translate}</h2>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user