diff options
-rw-r--r-- | admin/themes/default/template/configuration.tpl | 2 | ||||
-rw-r--r-- | identification.php | 12 | ||||
-rw-r--r-- | include/functions.inc.php | 17 | ||||
-rw-r--r-- | language/en_UK/admin.lang.php | 1 | ||||
-rw-r--r-- | themes/default/template/about.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/comments.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/identification.tpl | 8 | ||||
-rw-r--r-- | themes/default/template/index.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/notification.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/picture.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/profile.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/search.tpl | 2 | ||||
-rw-r--r-- | themes/default/template/tags.tpl | 2 | ||||
-rw-r--r-- | themes/default/theme.css | 10 |
14 files changed, 35 insertions, 31 deletions
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index 982e20357..59ab62006 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -271,7 +271,7 @@ jQuery(document).ready(function () { <li> <label> - <span class="property">{'Sort order'|@translate|@string_format:$pwg->l10n('Activate field "%s"')}</span> + <span class="property">{'Sort order'|@translate|@string_format:$pwg->l10n('Activate icon "%s"')}</span> <input type="checkbox" name="index_sort_order_input" {if ($display.index_sort_order_input)}checked="checked"{/if}> </label> </li> diff --git a/identification.php b/identification.php index 9a3128536..4a8e65e6b 100644 --- a/identification.php +++ b/identification.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2011 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -82,21 +82,25 @@ $template->set_filenames( array('identification'=>'identification.tpl') ); $template->assign( array( - 'U_LOST_PASSWORD' => get_root_url().'password.php', 'U_REDIRECT' => $redirect_to, 'F_LOGIN_ACTION' => get_root_url().'identification.php', 'authorize_remembering' => $conf['authorize_remembering'], )); -if ($conf['allow_user_registration']) +if (!$conf['gallery_locked'] && $conf['allow_user_registration']) { $template->assign('U_REGISTER', get_root_url().'register.php' ); } +if (!$conf['gallery_locked']) +{ + $template->assign('U_LOST_PASSWORD', get_root_url().'password.php' ); +} + // include menubar $themeconf = $template->get_template_vars('themeconf'); -if (!isset($themeconf['hide_menu_on']) OR !in_array('theIdentificationPage', $themeconf['hide_menu_on'])) +if (!$conf['gallery_locked'] && (!isset($themeconf['hide_menu_on']) OR !in_array('theIdentificationPage', $themeconf['hide_menu_on']))) { include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); } diff --git a/include/functions.inc.php b/include/functions.inc.php index 85cf7c902..4647e8845 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2011 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2012 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -1076,14 +1076,17 @@ SELECT param, value while ($row = pwg_db_fetch_assoc($result)) { - $conf[ $row['param'] ] = isset($row['value']) ? $row['value'] : ''; - - // If the field is true or false, the variable is transformed into a - // boolean value. - if ($conf[$row['param']] == 'true' or $conf[$row['param']] == 'false') + $val = isset($row['value']) ? $row['value'] : ''; + // If the field is true or false, the variable is transformed into a boolean value. + if ($val == 'true') + { + $val = true; + } + elseif ($val == 'false') { - $conf[ $row['param'] ] = get_boolean($conf[ $row['param'] ]); + $val = false; } + $conf[ $row['param'] ] = $val; } } diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 6917e1442..0412b5013 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -97,7 +97,6 @@ $lang['ACCESS_4'] = "Access to webmasters"; $lang['ACCESS_5'] = "No access"; $lang['Action'] = 'Action'; $lang['Actions'] = "Actions"; -$lang['Activate field "%s"'] = 'Activate field "%s"'; $lang['Activate icon "%s"'] = 'Activate icon "%s"'; $lang['Activate icon "new" next to albums and pictures'] = 'Activate icon "new" next to albums and pictures'; $lang['Activate Navigation Bar'] = 'Activate navigation bar'; diff --git a/themes/default/template/about.tpl b/themes/default/template/about.tpl index 407ca2839..f95713c13 100644 --- a/themes/default/template/about.tpl +++ b/themes/default/template/about.tpl @@ -1,5 +1,5 @@ {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> <li><a href="{$U_HOME}" title="{'Home'|@translate}" class="pwg-state-default pwg-button"> diff --git a/themes/default/template/comments.tpl b/themes/default/template/comments.tpl index 8ea49754c..fd2cace00 100644 --- a/themes/default/template/comments.tpl +++ b/themes/default/template/comments.tpl @@ -1,5 +1,5 @@ {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> diff --git a/themes/default/template/identification.tpl b/themes/default/template/identification.tpl index ecdff0bb1..7f6d53091 100644 --- a/themes/default/template/identification.tpl +++ b/themes/default/template/identification.tpl @@ -1,5 +1,5 @@ {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> @@ -47,16 +47,18 @@ <input tabindex="4" type="submit" name="login" value="{'Submit'|@translate}"> </p> - <p> + <p> {if isset($U_REGISTER)} <a href="{$U_REGISTER}" title="{'Register'|@translate}" class="pwg-state-default pwg-button"> <span class="pwg-icon pwg-icon-register"> </span><span>{'Register'|@translate}</span> </a> {/if} +{if isset($U_LOST_PASSWORD)} <a href="{$U_LOST_PASSWORD}" title="{'Forgot your password?'|@translate}" class="pwg-state-default pwg-button"> <span class="pwg-icon pwg-icon-lost-password"> </span><span>{'Forgot your password?'|@translate}</span> </a> - </p> +{/if} + </p> </form> diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 5af08ba6d..bac0125e5 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -1,6 +1,6 @@ {$MENUBAR} {if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> {if !empty($image_orders)} diff --git a/themes/default/template/notification.tpl b/themes/default/template/notification.tpl index 2a0718f5e..50cbd69ff 100644 --- a/themes/default/template/notification.tpl +++ b/themes/default/template/notification.tpl @@ -4,7 +4,7 @@ {/html_head} {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 7eca7e650..6fb873771 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -4,7 +4,7 @@ {if isset($MENUBAR)} {$MENUBAR} -<div id="content" class="pictureContent"> +<div id="content" class="contentWithMenu"> {/if} {include file='infos_errors.tpl'} diff --git a/themes/default/template/profile.tpl b/themes/default/template/profile.tpl index 0cd94c6b8..d1d26a126 100644 --- a/themes/default/template/profile.tpl +++ b/themes/default/template/profile.tpl @@ -1,5 +1,5 @@ {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> diff --git a/themes/default/template/search.tpl b/themes/default/template/search.tpl index dd40a66c1..9c4e6450e 100644 --- a/themes/default/template/search.tpl +++ b/themes/default/template/search.tpl @@ -15,7 +15,7 @@ *} {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> diff --git a/themes/default/template/tags.tpl b/themes/default/template/tags.tpl index 2858ae9f3..ca563e80f 100644 --- a/themes/default/template/tags.tpl +++ b/themes/default/template/tags.tpl @@ -1,5 +1,5 @@ {if isset($MENUBAR)}{$MENUBAR}{/if} -<div id="content" class="content"> +<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> <div class="titrePage"> <ul class="categoryActions"> diff --git a/themes/default/theme.css b/themes/default/theme.css index d3d6e9475..bf7e9355d 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -83,7 +83,7 @@ /** * Content */ -.content { +.contentWithMenu { margin-left: 20em; /* = #menubar width + 2em */ } @@ -417,12 +417,8 @@ TD.calDayHead { background: url('icon/rating-stars.gif') no-repeat 0 center; width:16px; } -/* only if menubar is shown */ -.pictureContent { - margin-left:20em; -} -.pictureContent #imageToolBar, -.pictureContent #theImage { +.contentWithMenu #imageToolBar, +.contentWithMenu #theImage { clear: none; } |