Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: Slimi |
---|
4 | Version: 1.0.2 |
---|
5 | Description: Piwigo theme. |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=644 |
---|
7 | Author: Miklfe |
---|
8 | Author URI: |
---|
9 | */ |
---|
10 | |
---|
11 | |
---|
12 | global $conf, $user, $Slimi, $template; |
---|
13 | |
---|
14 | $themeconf = array( |
---|
15 | 'name' => 'Slimi', |
---|
16 | 'parent' => 'Slim', |
---|
17 | 'local_head' => 'local_head.tpl', |
---|
18 | |
---|
19 | |
---|
20 | ); |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | $Slimi = array_merge( unserialize( $conf['Slimi'] ), (array)$Slimi ); |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | if($Slimi['lytebox_slimi']=='1') |
---|
29 | { |
---|
30 | add_event_handler('blockmanager_apply', 'no_comm' ); |
---|
31 | function no_comm( $menu_ref_arr ) |
---|
32 | { |
---|
33 | $menu = & $menu_ref_arr[0]; |
---|
34 | $block = $menu->get_block( 'mbMenu' ); |
---|
35 | unset( $block->data['comments'] ); |
---|
36 | } |
---|
37 | } |
---|
38 | |
---|
39 | add_event_handler('loc_end_page_header', 'load_Slimi' ); |
---|
40 | |
---|
41 | |
---|
42 | function load_Slimi() |
---|
43 | { |
---|
44 | global $user, $page; |
---|
45 | if($user['theme']=='Slimi') |
---|
46 | |
---|
47 | { |
---|
48 | include('slimi.php'); |
---|
49 | } |
---|
50 | } |
---|
51 | |
---|
52 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.