source: extensions/Slide/themeconf.inc.php @ 31335

Last change on this file since 31335 was 28049, checked in by Miklfe, 11 years ago

Bug quicksearch corrigé

File size: 1.3 KB
Line 
1<?php
2/*
3Theme Name: Slide
4Version: auto
5Description: theme Slide pour Piwigo.
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=688
7Author:Miklfe [piwitheme.fr]
8Author URI: http://piwitheme.fr
9*/
10
11global $conf, $user, $Slide;
12
13
14$Slide = array_merge( unserialize( $conf['Slide'] ), (array)$Slide );
15
16                               
17$themeconf = array(
18        'name'                                          => 'Slide',
19        'parent'                                        => 'elegant',
20        'load_parent_css'                       => true,
21        'load_parent_local_head'        => false,
22        'local_head'                            => 'local_head.tpl',
23        );
24
25
26
27add_event_handler('get_categories_menu_sql_where', 'mic_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 );
28if(!function_exists('mic_get_categories_menu_sql_where'))
29{
30        function mic_get_categories_menu_sql_where($where){     
31                global $page;
32                        $where = '1';
33                return $where;
34        }
35}
36add_event_handler('get_index_derivative_params', 'derivative_params_thumb_defaut', EVENT_HANDLER_PRIORITY_NEUTRAL+1 );
37function derivative_params_thumb_defaut($default)
38{
39  if (pwg_get_session_var('index_deriv')===null)
40  {
41    return ImageStdParams::get_by_type(IMG_XXSMALL);
42  }
43  return $default;
44}
45
46add_event_handler('loc_end_page_header', 'load_Slide' );
47
48function load_Slide()
49{
50global $user; 
51
52if($user['theme']=='Slide')
53                {include('Slide.php');}
54}
55
56?>
Note: See TracBrowser for help on using the repository browser.