Ignore:
Timestamp:
Dec 17, 2013, 11:22:53 PM (7 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Slim/themeconf.inc.php

    r19499 r25997  
    22/*
    33Theme Name: Slim
    4 Version: auto
     4Version: 1.3
    55Description: Slim.
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=643
     
    3232        function modify_nb_thumbnail_page()
    3333        {
    34         global $user, $page;
     34        global $user, $page, $conf;
    3535                $user['nb_image_page']=999;
    3636                $page['nb_image_page']=999;
     37                $conf['nb_categories_page']=999;
    3738        }
    3839}
    39 
    4040add_event_handler('get_categories_menu_sql_where', 'mic_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 );
    4141if(!function_exists('mic_get_categories_menu_sql_where'))
     
    4848}
    4949
    50 if($user['theme']=='Slim'){
    51 add_event_handler('loc_end_page_header', 'load_Slim' );
    52 
     50add_event_handler('init', 'load_Slim' );
    5351function load_Slim()
    5452{
    55 global $user, $page;
    56 if($page['body_id']=='theAdminPage' )
    57 {}
    58 else{
    59 if($user['theme']=='Slim')
    60                 {include('Slim.php');}
    61                
    62         }
     53        include('Slim.php');
    6354}
    6455
     
    7465}
    7566}
    76 }
    7767?>
Note: See TracChangeset for help on using the changeset viewer.