diff options
author | patdenice <patdenice@piwigo.org> | 2010-03-24 00:39:34 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2010-03-24 00:39:34 +0000 |
commit | 151920ed0943568ad51bd6d9bacadcdea46fea4f (patch) | |
tree | 1af7e76fe85079e485a9eedc19d8daaefab27243 /admin/configuration.php | |
parent | 8802877a844a9604072dd2ebbfddc668d53a12d2 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | admin/configuration.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index b8dc57433..9ec7ed805 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -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; } } |