source: extensions/simple_themes/simple/themeconf.inc.php @ 29752

Revision 29752, 1.2 KB checked in by plg, 6 years ago (diff)

mark theme simple as a dark theme

Line 
1<?php
2/*
3Theme Name: Simple Grey
4Version: auto
5Description: Simple Grey
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=308
7Author: Saïmon, plg
8Author URI: http://saimon.org/
9*/
10
11$themeconf = array(
12  'parent' => 'default',
13  'load_parent_css' => false,
14  'load_parent_local_head' => false,
15  'name' => 'simple-grey',
16  'theme_dir' => 'simple',
17  'icon_dir' => 'themes/simple/icon',
18  'admin_icon_dir' => 'themes/default/icon/admin',
19  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
20  'local_head' => 'local_head.tpl',
21  'url' => 'http://saimon.org/log/theme-simple-grey-pour-piwigo.html',
22  'colorscheme' => 'dark',
23);
24
25// set this if you want to restrict the width of pictures to a specifc width
26// global $user;
27// $user['maxwidth'] = 800;
28
29load_language('theme.lang', PHPWG_THEMES_PATH.'simple/');
30
31// debug - do not combine files
32// $conf['template_combine_files'] = false;
33
34if (!isset($conf['simple']))
35{
36  $conf['simple'] = serialize(array('albumDisplay' => 'column'));
37}
38$conf['simple'] = unserialize($conf['simple']);
39
40add_event_handler('loc_begin_page_header', 'simple_set_config');
41function simple_set_config()
42{
43  global $template, $conf;
44 
45  $template->assign('simple_conf', $conf['simple']);
46}
47
48?>
Note: See TracBrowser for help on using the repository browser.