- Timestamp:
- Mar 9, 2011, 11:47:08 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/modules/FeaturedPhotos/main.inc.php
r9369 r9581 64 64 65 65 // template thumbnail initialization 66 $template->set_filenames( array( 'pwgs_feat' => 'thumbnails.tpl',));67 68 66 trigger_action('loc_begin_index_thumbnails', $pictures); 69 $ tpl_thumbnails_var= array();67 $block['thumbnails'] = array(); 70 68 71 69 foreach ($pictures as $row) … … 129 127 } 130 128 131 $ tpl_thumbnails_var[] = $tpl_var;129 $block['thumbnails'][] = $tpl_var; 132 130 } 133 131 134 $tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures); 135 $template->assign('thumbnails', $tpl_thumbnails_var); 132 $block['thumbnails'] = trigger_event('loc_end_index_thumbnails', $block['thumbnails'], $pictures); 136 133 137 $block['CONTENT'] = $template->parse('pwgs_feat', true); 138 $block['TEMPLATE'] = 'stuffs_featuredphotos.tpl'; 134 $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 139 135 } 140 136
Note: See TracChangeset
for help on using the changeset viewer.