Last change
on this file since 22016 was
19421,
checked in by plg, 12 years ago
|
Deep changes in themes Simple*: for the picture page, we mainly use core
templates instead of specific templates. It means:
- easier to maintain
- icons instead of text (may be modified)
- distorsion bug fixed
|
File size:
1.2 KB
|
Rev | Line | |
---|
[13546] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Theme Name: Simple Grey |
---|
[13561] | 4 | Version: auto |
---|
[13549] | 5 | Description: Simple Grey |
---|
[13547] | 6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=308 |
---|
[19421] | 7 | Author: Saïmon, plg |
---|
[13546] | 8 | Author URI: http://saimon.org/ |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | $themeconf = array( |
---|
[13547] | 12 | 'parent' => 'default', |
---|
| 13 | 'load_parent_css' => false, |
---|
| 14 | 'load_parent_local_head' => false, |
---|
[13546] | 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/', |
---|
[13547] | 20 | 'local_head' => 'local_head.tpl', |
---|
[13555] | 21 | 'url' => 'http://saimon.org/log/theme-simple-grey-pour-piwigo.html' |
---|
[13546] | 22 | ); |
---|
| 23 | |
---|
[13555] | 24 | // set this if you want to restrict the width of pictures to a specifc width |
---|
| 25 | // global $user; |
---|
| 26 | // $user['maxwidth'] = 800; |
---|
[13549] | 27 | |
---|
| 28 | load_language('theme.lang', PHPWG_THEMES_PATH.'simple/'); |
---|
| 29 | |
---|
[13554] | 30 | // debug - do not combine files |
---|
[13559] | 31 | // $conf['template_combine_files'] = false; |
---|
[13554] | 32 | |
---|
[13558] | 33 | if (!isset($conf['simple'])) |
---|
| 34 | { |
---|
| 35 | $conf['simple'] = serialize(array('albumDisplay' => 'column')); |
---|
| 36 | } |
---|
| 37 | $conf['simple'] = unserialize($conf['simple']); |
---|
| 38 | |
---|
| 39 | add_event_handler('loc_begin_page_header', 'simple_set_config'); |
---|
| 40 | function simple_set_config() |
---|
| 41 | { |
---|
| 42 | global $template, $conf; |
---|
| 43 | |
---|
| 44 | $template->assign('simple_conf', $conf['simple']); |
---|
| 45 | } |
---|
| 46 | |
---|
[13546] | 47 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.