source: extensions/stripped_black_bloc/themeconf.inc.php @ 11630

Last change on this file since 11630 was 11498, checked in by flop25, 13 years ago

remove event for the number of pics per page
attempt to set the table as block

File size: 985 bytes
Line 
1<?php
2/*
3Theme Name: stripped_black_bloc
4Version: 0
5Description: stripped_black_bloc
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=
7Author:
8Author URI:
9*/
10
11
12       
13$themeconf = array(
14  'parent' => 'stripped',
15  'name' => 'stripped_black_bloc',
16  'theme_dir' => 'stripped_black_bloc',
17  'icon_dir' => 'themes/stripped/icon',
18  'admin_icon_dir' => 'themes/default/icon/admin',
19  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
20  'local_head' => 'local_head.tpl',
21);
22add_event_handler('loc_end_index_thumbnails', 'MY');
23function MY($tpl_thumbnails_var)
24{
25    global $template;
26                $new_tplvar=array();
27                foreach ($tpl_thumbnails_var as $tplvar)
28                {
29                        list($width, $height, $type, $attr) = getimagesize(     $tplvar['TN_SRC'] );
30                        $tplvar['TN_WIDTH']=$width;
31                        $tplvar['TN_HEIGHT']=$height;
32                        $new_tplvar[]=$tplvar;
33                }
34                return $new_tplvar;
35}
36add_event_handler('init', 'MY_init');
37function MY_init()
38{
39        remove_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
40}
41?>
Note: See TracBrowser for help on using the repository browser.