[18811] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Theme Name: Slim |
---|
[25997] | 4 | Version: 1.3 |
---|
[18811] | 5 | Description: Slim. |
---|
[18832] | 6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=643 |
---|
[19045] | 7 | Author:Miklfe [piwitheme.fr] |
---|
| 8 | Author URI: http://piwitheme.fr |
---|
[18811] | 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 | |
---|
[19029] | 22 | load_language('theme.lang', PHPWG_THEMES_PATH.'Full_Background/'); |
---|
[18811] | 23 | |
---|
| 24 | |
---|
| 25 | $Slim = array_merge( unserialize( $conf['Slim'] ), (array)$Slim ); |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); |
---|
[19499] | 30 | if(!function_exists('modify_nb_thumbnail_page')) |
---|
[18811] | 31 | { |
---|
[19499] | 32 | function modify_nb_thumbnail_page() |
---|
| 33 | { |
---|
[25997] | 34 | global $user, $page, $conf; |
---|
[19499] | 35 | $page['nb_image_page']=999; |
---|
[25997] | 36 | $conf['nb_categories_page']=999; |
---|
[19499] | 37 | } |
---|
[18811] | 38 | } |
---|
[28556] | 39 | |
---|
| 40 | add_event_handler('loc_begin_index', 'block_expand'); |
---|
| 41 | if(!function_exists('block_expand')) |
---|
[19499] | 42 | { |
---|
[28556] | 43 | function block_expand() |
---|
| 44 | { |
---|
| 45 | global $user; |
---|
| 46 | $user['expand']=true; |
---|
[19499] | 47 | } |
---|
[18811] | 48 | } |
---|
| 49 | |
---|
[25997] | 50 | add_event_handler('init', 'load_Slim' ); |
---|
[18811] | 51 | function load_Slim() |
---|
| 52 | { |
---|
[25997] | 53 | include('Slim.php'); |
---|
[18811] | 54 | } |
---|
| 55 | |
---|
[28581] | 56 | if($user['theme']=='Slim') |
---|
| 57 | { |
---|
[18811] | 58 | if($Slim['style_slim']=='2') |
---|
| 59 | { |
---|
| 60 | add_event_handler('blockmanager_apply', 'sans_comm' ); |
---|
| 61 | function sans_comm( $menu_ref_arr ) |
---|
| 62 | { |
---|
| 63 | $menu = & $menu_ref_arr[0]; |
---|
| 64 | $block = $menu->get_block( 'mbMenu' ); |
---|
| 65 | unset( $block->data['comments'] ); |
---|
| 66 | } |
---|
| 67 | } |
---|
[28581] | 68 | } |
---|
[18811] | 69 | ?> |
---|