diff options
author | mistic100 <mistic@piwigo.org> | 2011-05-09 15:04:15 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2011-05-09 15:04:15 +0000 |
commit | e38092f36cac68694ee891f6e90399240b88a58a (patch) | |
tree | b3326a6f76b01b7858f6dfaaa42f7f3a25ec182b | |
parent | df6125d190b4a6a257094985235475cb9a292a3e (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | about.php | 2 | ||||
-rw-r--r-- | comments.php | 2 | ||||
-rw-r--r-- | identification.php | 2 | ||||
-rw-r--r-- | nbm.php | 2 | ||||
-rw-r--r-- | notification.php | 2 | ||||
-rw-r--r-- | password.php | 2 | ||||
-rw-r--r-- | picture.php | 2 | ||||
-rw-r--r-- | profile.php | 2 | ||||
-rw-r--r-- | register.php | 2 | ||||
-rw-r--r-- | search.php | 2 | ||||
-rw-r--r-- | tags.php | 2 | ||||
-rw-r--r-- | themes/default/template/about.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/comments.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/identification.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/nbm.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/notification.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/password.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/profile.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/register.tpl | 6 | ||||
-rw-r--r-- | themes/default/template/search.tpl | 3 | ||||
-rw-r--r-- | themes/default/template/tags.tpl | 3 |
21 files changed, 57 insertions, 19 deletions
@@ -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'); } diff --git a/comments.php b/comments.php index 40a3f7338..3acef27bc 100644 --- a/comments.php +++ b/comments.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'); } diff --git a/identification.php b/identification.php index 20be085b1..c66edcbb7 100644 --- a/identification.php +++ b/identification.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'); } @@ -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'); } diff --git a/notification.php b/notification.php index d89d00c29..c799cdf00 100644 --- a/notification.php +++ b/notification.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'); } diff --git a/password.php b/password.php index d47d75c65..acbeedd19 100644 --- a/password.php +++ b/password.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'); } diff --git a/picture.php b/picture.php index b62f1ab5b..3970839fe 100644 --- a/picture.php +++ b/picture.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 diff --git a/profile.php b/profile.php index ee17b26ed..2580b375c 100644 --- a/profile.php +++ b/profile.php @@ -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'); } diff --git a/register.php b/register.php index af90bbfa4..29a72a92e 100644 --- a/register.php +++ b/register.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'); } diff --git a/search.php b/search.php index 7cfbab3ae..f59323db9 100644 --- a/search.php +++ b/search.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'); } @@ -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'); } diff --git a/themes/default/template/about.tpl b/themes/default/template/about.tpl index f86d7bef3..55f2ec830 100644 --- a/themes/default/template/about.tpl +++ b/themes/default/template/about.tpl @@ -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"> diff --git a/themes/default/template/comments.tpl b/themes/default/template/comments.tpl index 543a15cb8..ab1455590 100644 --- a/themes/default/template/comments.tpl +++ b/themes/default/template/comments.tpl @@ -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> diff --git a/themes/default/template/identification.tpl b/themes/default/template/identification.tpl index 2741e685b..5ccfb7133 100644 --- a/themes/default/template/identification.tpl +++ b/themes/default/template/identification.tpl @@ -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> diff --git a/themes/default/template/nbm.tpl b/themes/default/template/nbm.tpl index 2227e1453..943f9cdc7 100644 --- a/themes/default/template/nbm.tpl +++ b/themes/default/template/nbm.tpl @@ -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> diff --git a/themes/default/template/notification.tpl b/themes/default/template/notification.tpl index 62a6d47cd..3bd8a4d1f 100644 --- a/themes/default/template/notification.tpl +++ b/themes/default/template/notification.tpl @@ -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> diff --git a/themes/default/template/password.tpl b/themes/default/template/password.tpl index 8b7390e4b..6c6f9a35d 100644 --- a/themes/default/template/password.tpl +++ b/themes/default/template/password.tpl @@ -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> diff --git a/themes/default/template/profile.tpl b/themes/default/template/profile.tpl index 0c23b7ee1..7870cf832 100644 --- a/themes/default/template/profile.tpl +++ b/themes/default/template/profile.tpl @@ -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> diff --git a/themes/default/template/register.tpl b/themes/default/template/register.tpl index a96200f8a..b173061cf 100644 --- a/themes/default/template/register.tpl +++ b/themes/default/template/register.tpl @@ -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> diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl index 1a9a685d7..f56cb26a2 100644 --- a/themes/default/template/search.tpl +++ b/themes/default/template/search.tpl @@ -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> diff --git a/themes/default/template/tags.tpl b/themes/default/template/tags.tpl index 05b739fe4..af80502a1 100644 --- a/themes/default/template/tags.tpl +++ b/themes/default/template/tags.tpl @@ -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> |