1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: stripped |
---|
4 | Version: 1.3.0 |
---|
5 | Description: stripped Theme |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=471 |
---|
7 | Author: Julien Capitaine (Zaphod on Piwigo forums) |
---|
8 | Author URI: http://www.audreyetjulien.fr/galerie |
---|
9 | */ |
---|
10 | |
---|
11 | add_event_handler('loc_begin_page_header', 'set_config_values'); |
---|
12 | |
---|
13 | function set_config_values() |
---|
14 | { |
---|
15 | global $conf, $template; |
---|
16 | |
---|
17 | $config = unserialize( $conf['stripped'] ); |
---|
18 | $template->assign( 'stripped', $config ); |
---|
19 | } |
---|
20 | |
---|
21 | $themeconf = array( |
---|
22 | 'parent' => 'default', |
---|
23 | 'load_parent_css' => false, |
---|
24 | 'load_parent_local_head' => false, |
---|
25 | 'name' => 'stripped', |
---|
26 | 'theme_dir' => 'stripped', |
---|
27 | 'icon_dir' => 'themes/stripped/icon', |
---|
28 | 'admin_icon_dir' => 'themes/default/icon/admin', |
---|
29 | 'mime_icon_dir' => 'themes/default/icon/mimetypes/', |
---|
30 | 'local_head' => 'local_head.tpl', |
---|
31 | ); |
---|
32 | |
---|
33 | load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/'); |
---|
34 | |
---|
35 | pwg_set_session_var('show_metadata', true); |
---|
36 | |
---|
37 | // max number of thumbnails by page |
---|
38 | |
---|
39 | add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); |
---|
40 | function modify_nb_thumbnail_page() |
---|
41 | { |
---|
42 | global $user, $page; |
---|
43 | { |
---|
44 | $maxth=15; |
---|
45 | $user['nb_image_page']=$maxth; |
---|
46 | $page['nb_image_page']=$maxth; |
---|
47 | } |
---|
48 | } |
---|
49 | |
---|
50 | ?> |
---|