source: extensions/Slim/themeconf.inc.php @ 19045

Revision 19045, 1.3 KB checked in by Miklfe, 7 years ago (diff)
Line 
1<?php
2/*
3Theme Name: Slim
4Version: auto
5Description: Slim.
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=643
7Author:Miklfe [piwitheme.fr]
8Author URI: http://piwitheme.fr
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
22load_language('theme.lang', PHPWG_THEMES_PATH.'Full_Background/');
23
24
25$Slim = array_merge( unserialize( $conf['Slim'] ), (array)$Slim );
26
27
28
29add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
30function modify_nb_thumbnail_page()
31{
32global $user, $page;
33        $user['nb_image_page']=999;
34        $page['nb_image_page']=999;
35
36}
37
38add_event_handler('get_categories_menu_sql_where', 'mic_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 );
39function mic_get_categories_menu_sql_where($where){     
40        global $page;
41                $where = '1';
42        return $where;
43}
44
45if($user['theme']=='Slim'){
46add_event_handler('loc_end_page_header', 'load_Slim' );
47
48function load_Slim()
49{
50global $user, $page; 
51if($page['body_id']=='theAdminPage' )
52{}
53else{
54if($user['theme']=='Slim')
55                {include('Slim.php');}
56               
57        }
58}
59
60
61if($Slim['style_slim']=='2')
62{
63   add_event_handler('blockmanager_apply', 'sans_comm' );
64   function sans_comm( $menu_ref_arr )
65{
66    $menu = & $menu_ref_arr[0];
67        $block = $menu->get_block( 'mbMenu' );
68        unset( $block->data['comments'] );
69}
70}
71}
72?>
Note: See TracBrowser for help on using the repository browser.