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

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

version 1.3.8 - new translation (greek) + language key corrected

File size: 1.3 KB
Line 
1<?php
2/*
3Theme Name: stripped
4Version: Auto
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
19add_event_handler('loc_begin_page_header', 'set_config_values');
20
21function set_config_values()
22{
23        global $conf, $template;
24
25        $config = unserialize( $conf['stripped'] );
26        $template->assign( 'stripped', $config );
27}
28       
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
41load_language('theme.lang', PHPWG_THEMES_PATH.'stripped/');
42
43pwg_set_session_var('show_metadata', true);
44
45// max number of thumbnails by page
46
47add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
48function 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?>
Note: See TracBrowser for help on using the repository browser.