aboutsummaryrefslogtreecommitdiffstats
path: root/themes/smartpocket/themeconf.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--themes/smartpocket/themeconf.inc.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/smartpocket/themeconf.inc.php b/themes/smartpocket/themeconf.inc.php
index a1a841081..2dd950c7d 100644
--- a/themes/smartpocket/themeconf.inc.php
+++ b/themes/smartpocket/themeconf.inc.php
@@ -11,4 +11,17 @@ Author URI: http://piwigo.org
$themeconf = array(
'mobile' => true,
);
+
+//Retrive all pictures on thumbnails page
+add_event_handler('loc_index_thumbnails_selection', 'sp_select_all_thumbnails');
+
+function sp_select_all_thumbnails($selection)
+{
+ global $page, $template;
+
+ $template->assign('page_selection', array_flip($selection));
+
+ return $page['items'];
+}
+
?>