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

Last change on this file since 25760 was 21579, checked in by Miklfe, 12 years ago
File size: 1.4 KB
Line 
1<?php
2/*
3Theme Name: Slide
4Version: auto
5Description: theme PwgCarbon_dft 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'                                        => 'default',
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  {// pas de surcharge specifique par l'utilisateur
41    return ImageStdParams::get_by_type(IMG_XXSMALL);
42  }
43  return $default;
44}
45
46if($user['theme']=='Slide'){
47add_event_handler('loc_end_page_header', 'load_Slide' );
48
49function load_Slide()
50{
51global $user, $page; 
52if($page['body_id']=='theAdminPage' )
53{}
54else{
55if($user['theme']=='Slide')
56                {include('Slide.php');}
57               
58        }
59}
60}
61?>
Note: See TracBrowser for help on using the repository browser.