Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: PwgCarbon |
---|
4 | Version: auto |
---|
5 | Description: theme PwgCarbon pour Piwigo. |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=640 |
---|
7 | Author:Miklfe [piwitheme.fr] |
---|
8 | Author URI: http://piwitheme.fr |
---|
9 | */ |
---|
10 | |
---|
11 | global $conf, $user, $PwgCarbon; |
---|
12 | |
---|
13 | |
---|
14 | $themeconf = array( |
---|
15 | 'name' => 'PwgCarbon', |
---|
16 | 'parent' => 'PwgCarbon_dft', |
---|
17 | 'load_parent_css' => true, |
---|
18 | 'load_parent_local_head' => false, |
---|
19 | 'local_head' => 'local_head.tpl', |
---|
20 | 'admin_icon_dir' => 'themes/default/icon/admin', |
---|
21 | 'mime_icon_dir' => 'themes/default/icon/mimetypes/', |
---|
22 | ); |
---|
23 | |
---|
24 | |
---|
25 | |
---|
26 | $PwgCarbon = array_merge( unserialize( $conf['PwgCarbon'] ), (array)$PwgCarbon ); |
---|
27 | |
---|
28 | |
---|
29 | |
---|
30 | add_event_handler('loc_end_page_header', 'load_PwgCarbon' ); |
---|
31 | |
---|
32 | |
---|
33 | function load_PwgCarbon() |
---|
34 | { |
---|
35 | global $user, $page; |
---|
36 | if($user['theme']=='PwgCarbon') |
---|
37 | |
---|
38 | { |
---|
39 | include('PwgCarbon.php'); |
---|
40 | } |
---|
41 | } |
---|
42 | |
---|
43 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.