[7989] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Theme Name: stripped |
---|
[10930] | 4 | Version: Auto |
---|
[7989] | 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 | |
---|
[9987] | 11 | |
---|
| 12 | // Need upgrade? |
---|
| 13 | |
---|
| 14 | global $conf; |
---|
| 15 | |
---|
| 16 | if (!isset($conf['stripped'])) |
---|
| 17 | include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php'); |
---|
| 18 | |
---|
[9960] | 19 | add_event_handler('loc_begin_page_header', 'set_config_values'); |
---|
| 20 | |
---|
| 21 | function set_config_values() |
---|
| 22 | { |
---|
| 23 | global $conf, $template; |
---|
| 24 | |
---|
| 25 | $config = unserialize( $conf['stripped'] ); |
---|
| 26 | $template->assign( 'stripped', $config ); |
---|
| 27 | } |
---|
| 28 | |
---|
[7989] | 29 | $themeconf = array( |
---|
| 30 | 'parent' => 'default', |
---|
| 31 | 'load_parent_css' => false, |
---|
| 32 | 'load_parent_local_head' => false, |
---|
| 33 | 'name' => 'stripped', |
---|
| 34 | 'theme_dir' => 'stripped', |
---|
| 35 | 'icon_dir' => 'themes/stripped/icon', |
---|
| 36 | 'admin_icon_dir' => 'themes/default/icon/admin', |
---|
| 37 | 'mime_icon_dir' => 'themes/default/icon/mimetypes/', |
---|
| 38 | 'local_head' => 'local_head.tpl', |
---|
| 39 | ); |
---|
| 40 | |
---|
| 41 | load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/'); |
---|
| 42 | |
---|
| 43 | pwg_set_session_var('show_metadata', true); |
---|
| 44 | |
---|
| 45 | // max number of thumbnails by page |
---|
| 46 | |
---|
| 47 | add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); |
---|
| 48 | function modify_nb_thumbnail_page() |
---|
| 49 | { |
---|
| 50 | global $user, $page; |
---|
| 51 | { |
---|
| 52 | $maxth=15; |
---|
| 53 | $user['nb_image_page']=$maxth; |
---|
| 54 | $page['nb_image_page']=$maxth; |
---|
| 55 | } |
---|
| 56 | } |
---|
| 57 | |
---|
| 58 | ?> |
---|