mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
Add DateTime on administration introduction page (Useful to help user on the forum, ...)
Move history configuration in a other tab. Use translation on picture hint (Kb). Show hint oh the menu text (not only on counter) git-svn-id: http://piwigo.org/svn/trunk@1884 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+35
-3
@@ -49,13 +49,16 @@ else
|
||||
}
|
||||
|
||||
$general_checkboxes = array(
|
||||
'log',
|
||||
'history_admin',
|
||||
'history_guest',
|
||||
'email_admin_on_new_user',
|
||||
'allow_user_registration',
|
||||
);
|
||||
|
||||
$history_checkboxes = array(
|
||||
'log',
|
||||
'history_admin',
|
||||
'history_guest'
|
||||
);
|
||||
|
||||
$comments_checkboxes = array(
|
||||
'comments_forall',
|
||||
'comments_validation',
|
||||
@@ -81,6 +84,14 @@ if (isset($_POST['submit']) and !is_adviser())
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'history' :
|
||||
{
|
||||
foreach( $history_checkboxes as $checkbox)
|
||||
{
|
||||
$_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'comments' :
|
||||
{
|
||||
// the number of comments per page must be an integer between 5 and 50
|
||||
@@ -170,6 +181,11 @@ $page['tabsheet'] = array
|
||||
'caption' => l10n('conf_general_title'),
|
||||
'url' => $conf_link.'general'
|
||||
),
|
||||
'history' => array
|
||||
(
|
||||
'caption' => l10n('conf_history_title'),
|
||||
'url' => $conf_link.'history'
|
||||
),
|
||||
'comments' => array
|
||||
(
|
||||
'caption' => l10n('conf_comments_title'),
|
||||
@@ -235,6 +251,22 @@ switch ($page['section'])
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'history' :
|
||||
{
|
||||
//Necessary for merge_block_vars
|
||||
$template->assign_block_vars('history', array());
|
||||
|
||||
foreach( $history_checkboxes as $checkbox)
|
||||
{
|
||||
$template->merge_block_vars(
|
||||
'history',
|
||||
array(
|
||||
strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
|
||||
)
|
||||
);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'comments' :
|
||||
{
|
||||
$template->assign_block_vars(
|
||||
|
||||
Reference in New Issue
Block a user