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:
mistic100
2011-05-09 15:04:15 +00:00
parent df6125d190
commit e38092f36c
21 changed files with 57 additions and 19 deletions

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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');
}

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'About'|@translate}</h2>
</div>
<div id="piwigoAbout">

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'User comments'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Identification'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Notification'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Notification'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Password forgotten'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Profile'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Registration'|@translate}</h2>
</div>

View File

@@ -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">&nbsp;</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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Search'|@translate}</h2>
</div>

View File

@@ -13,6 +13,9 @@
<span class="pwg-icon pwg-icon-letters">&nbsp;</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">&nbsp;</span><span class="pwg-button-text">{'Home'|@translate}</span>
</a></li>
</ul>
<h2>{'Tags'|@translate}</h2>
</div>