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