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

Last change on this file since 28566 was 28556, checked in by Miklfe, 10 years ago

nouveau carousel: mousewheel; scrollable pour les écrans tactiles
nouvelle lightbox: Fancybox

File size: 1.2 KB
Line 
1<?php
2/*
3Theme Name: Slim
4Version: 1.3
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');
30if(!function_exists('modify_nb_thumbnail_page'))
31{
32        function modify_nb_thumbnail_page()
33        {
34        global $user, $page, $conf;
35                $page['nb_image_page']=999;
36                $conf['nb_categories_page']=999;
37        }
38}
39
40add_event_handler('loc_begin_index', 'block_expand');
41if(!function_exists('block_expand'))
42{
43        function block_expand()
44        {
45        global $user;
46                $user['expand']=true;
47        }
48}
49
50add_event_handler('init', 'load_Slim' );
51function load_Slim()
52{
53        include('Slim.php');
54}
55
56
57if($Slim['style_slim']=='2')
58{
59   add_event_handler('blockmanager_apply', 'sans_comm' );
60   function sans_comm( $menu_ref_arr )
61{
62    $menu = & $menu_ref_arr[0];
63        $block = $menu->get_block( 'mbMenu' );
64        unset( $block->data['comments'] );
65}
66}
67?>
Note: See TracBrowser for help on using the repository browser.