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

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

[extension] stripped - version 1.3.0

File size: 1.2 KB
Line 
1<?php
2/*
3Theme Name: stripped
4Version: 1.3.0
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
11add_event_handler('loc_begin_page_header', 'set_config_values');
12
13function 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
33load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/');
34
35pwg_set_session_var('show_metadata', true);
36
37// max number of thumbnails by page
38
39add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
40function 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?>
Note: See TracBrowser for help on using the repository browser.