mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
Feature 1533: Allow activation or deactivation of download icon.
Add display configuration for picture properties. git-svn-id: http://piwigo.org/svn/trunk@5304 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -89,6 +89,19 @@ $display_checkboxes = array(
|
||||
'picture_navigation_thumb',
|
||||
);
|
||||
|
||||
$display_info_checkboxes = array(
|
||||
'author',
|
||||
'created_on',
|
||||
'posted_on',
|
||||
'dimensions',
|
||||
'file',
|
||||
'filesize',
|
||||
'tags',
|
||||
'categories',
|
||||
'visits',
|
||||
'average_rate',
|
||||
);
|
||||
|
||||
//------------------------------ verification and registration of modifications
|
||||
if (isset($_POST['submit']) and !is_adviser())
|
||||
{
|
||||
@@ -151,6 +164,12 @@ if (isset($_POST['submit']) and !is_adviser())
|
||||
{
|
||||
$_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
|
||||
}
|
||||
foreach( $display_info_checkboxes as $checkbox)
|
||||
{
|
||||
$_POST['picture_informations'][$checkbox] =
|
||||
empty($_POST['picture_informations'][$checkbox])? false : true;
|
||||
}
|
||||
$_POST['picture_informations'] = addslashes(serialize($_POST['picture_informations']));
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -333,6 +352,13 @@ switch ($page['section'])
|
||||
true
|
||||
);
|
||||
}
|
||||
$template->append(
|
||||
'display',
|
||||
array(
|
||||
'picture_informations' => unserialize($conf['picture_informations'])
|
||||
),
|
||||
true
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user