Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: Smart Pocket |
---|
4 | Version: 2.4.0 |
---|
5 | Description: Mobile theme. |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=599 |
---|
7 | Author: P@t |
---|
8 | Author URI: http://piwigo.org |
---|
9 | */ |
---|
10 | |
---|
11 | $themeconf = array( |
---|
12 | 'mobile' => true, |
---|
13 | ); |
---|
14 | |
---|
15 | //Retrive all pictures on thumbnails page |
---|
16 | add_event_handler('loc_index_thumbnails_selection', 'sp_select_all_thumbnails'); |
---|
17 | |
---|
18 | function sp_select_all_thumbnails($selection) |
---|
19 | { |
---|
20 | global $page, $template; |
---|
21 | |
---|
22 | $template->assign('page_selection', array_flip($selection)); |
---|
23 | |
---|
24 | return $page['items']; |
---|
25 | } |
---|
26 | |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.