|
Revision 11677, 1.0 KB
(checked in by flop25, 23 months ago)
|
|
masonry works for thumbnails album and thumbnails pics
all max-width cancelled
menu switch works
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /* |
|---|
| 3 | Theme Name: stripped_black_bloc |
|---|
| 4 | Version: 0 |
|---|
| 5 | Description: stripped_black_bloc |
|---|
| 6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid= |
|---|
| 7 | Author: |
|---|
| 8 | Author 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 | ); |
|---|
| 22 | add_event_handler('loc_end_index_category_thumbnails', 'MY'); |
|---|
| 23 | add_event_handler('loc_end_index_thumbnails', 'MY'); |
|---|
| 24 | function MY($tpl_thumbnails_var) |
|---|
| 25 | { |
|---|
| 26 | global $template; |
|---|
| 27 | $new_tplvar=array(); |
|---|
| 28 | foreach ($tpl_thumbnails_var as $tplvar) |
|---|
| 29 | { |
|---|
| 30 | list($width, $height, $type, $attr) = getimagesize( $tplvar['TN_SRC'] ); |
|---|
| 31 | $tplvar['TN_WIDTH']=$width; |
|---|
| 32 | $tplvar['TN_HEIGHT']=$height; |
|---|
| 33 | $new_tplvar[]=$tplvar; |
|---|
| 34 | } |
|---|
| 35 | return $new_tplvar; |
|---|
| 36 | } |
|---|
| 37 | add_event_handler('init', 'MY_init'); |
|---|
| 38 | function MY_init() |
|---|
| 39 | { |
|---|
| 40 | remove_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); |
|---|
| 41 | } |
|---|
| 42 | ?> |
|---|