Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Theme Name: Slim |
---|
4 | Version: 1.1.0 |
---|
5 | Description: Slim. |
---|
6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=643 |
---|
7 | Author: Miklfe |
---|
8 | Author URI: |
---|
9 | */ |
---|
10 | |
---|
11 | |
---|
12 | global $conf, $user, $Slim; |
---|
13 | |
---|
14 | $themeconf = array( |
---|
15 | 'name' => 'Slim', |
---|
16 | 'parent' => 'default', |
---|
17 | 'local_head' => 'local_head.tpl', |
---|
18 | |
---|
19 | |
---|
20 | ); |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | $Slim = array_merge( unserialize( $conf['Slim'] ), (array)$Slim ); |
---|
25 | |
---|
26 | |
---|
27 | |
---|
28 | add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); |
---|
29 | function modify_nb_thumbnail_page() |
---|
30 | { |
---|
31 | global $user, $page; |
---|
32 | $user['nb_image_page']=999; |
---|
33 | $page['nb_image_page']=999; |
---|
34 | |
---|
35 | } |
---|
36 | |
---|
37 | add_event_handler('get_categories_menu_sql_where', 'mic_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 ); |
---|
38 | function mic_get_categories_menu_sql_where($where){ |
---|
39 | global $page; |
---|
40 | $where = '1'; |
---|
41 | return $where; |
---|
42 | } |
---|
43 | |
---|
44 | if($user['theme']=='Slim'){ |
---|
45 | add_event_handler('loc_end_page_header', 'load_Slim' ); |
---|
46 | |
---|
47 | function load_Slim() |
---|
48 | { |
---|
49 | global $user, $page; |
---|
50 | if($page['body_id']=='theAdminPage' ) |
---|
51 | {} |
---|
52 | else{ |
---|
53 | if($user['theme']=='Slim') |
---|
54 | {include('Slim.php');} |
---|
55 | |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | |
---|
60 | if($Slim['style_slim']=='2') |
---|
61 | { |
---|
62 | add_event_handler('blockmanager_apply', 'sans_comm' ); |
---|
63 | function sans_comm( $menu_ref_arr ) |
---|
64 | { |
---|
65 | $menu = & $menu_ref_arr[0]; |
---|
66 | $block = $menu->get_block( 'mbMenu' ); |
---|
67 | unset( $block->data['comments'] ); |
---|
68 | } |
---|
69 | } |
---|
70 | } |
---|
71 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.