source: extensions/stripped/themeconf.inc.php @ 10114

Last change on this file since 10114 was 10114, checked in by Zaphod, 13 years ago

version 1.3.4 - bug correction in header.tpl

File size: 1.3 KB
Line 
1<?php
2/*
3Theme Name: stripped
4Version: 1.3.4
5Description: stripped Theme
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=471
7Author: Julien Capitaine (Zaphod on Piwigo forums)
8Author URI: http://www.audreyetjulien.fr/galerie
9*/
10
11
12// Need upgrade?
13
14global $conf;
15
16if (!isset($conf['stripped']))
17  include(PHPWG_THEMES_PATH.'stripped/admin/upgrade.inc.php');
18
19
20add_event_handler('loc_begin_page_header', 'set_config_values');
21
22function set_config_values()
23{
24        global $conf, $template;
25
26        $config = unserialize( $conf['stripped'] );
27        $template->assign( 'stripped', $config );
28}
29       
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
42load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/');
43
44pwg_set_session_var('show_metadata', true);
45
46// max number of thumbnails by page
47
48add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
49function 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?>
Note: See TracBrowser for help on using the repository browser.