Changeset 3124 for trunk/include
- Timestamp:
- Feb 5, 2009, 3:28:37 AM (16 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_cats.inc.php
r3049 r3124 221 221 trigger_action('loc_begin_index_category_thumbnails', $categories); 222 222 223 $tpl_thumbnails_var = array(); 224 223 225 foreach ($categories as $category) 224 226 { … … 238 240 } 239 241 240 $icon_ts = get_icon($category['max_date_last'], $category['is_child_date_last']);241 242 242 $tpl_var = 243 243 array( … … 245 245 'TN_SRC' => $thumbnail_src_of[$category['representative_picture_id']], 246 246 'TN_ALT' => strip_tags($category['name']), 247 'ICON_TS' => $icon_ts,247 'ICON_TS' => get_icon($category['max_date_last'], $category['is_child_date_last']), 248 248 249 249 'URL' => make_index_url( … … 296 296 }//fromto 297 297 298 //plugins need to add/modify sth in this loop ? 299 $tpl_var = trigger_event('loc_index_category_thumbnail', 300 $tpl_var, $category ); 301 302 $template->append( 'category_thumbnails', $tpl_var); 303 } 304 305 trigger_action('loc_end_index_category_thumbnails', $categories); 298 $tpl_thumbnails_var[] = $tpl_var; 299 } 300 301 $tpl_thumbnails_var = trigger_event('loc_end_index_category_thumbnails', $tpl_thumbnails_var, $categories); 302 $template->assign( 'category_thumbnails', $tpl_thumbnails_var); 303 306 304 $template->assign_var_from_handle('CATEGORIES', 'index_category_thumbnails'); 307 305 } 306 pwg_debug('end include/category_cats.inc.php'); 308 307 ?> -
trunk/include/category_default.inc.php
r3120 r3124 91 91 92 92 trigger_action('loc_begin_index_thumbnails', $pictures); 93 $tpl_thumbnails_var = array(); 93 94 94 95 foreach ($pictures as $row) 95 96 { 96 $thumbnail_url = get_thumbnail_url($row);97 98 97 // link on picture.php page 99 98 $url = duplicate_picture_url( … … 108 107 array( 109 108 'ID' => $row['id'], 110 'TN_SRC' => $thumbnail_url,109 'TN_SRC' => get_thumbnail_url($row), 111 110 'TN_ALT' => $row['file'], 112 111 'TN_TITLE' => get_thumbnail_title($row), … … 172 171 } 173 172 174 //plugins need to add/modify sth in this loop ? 175 $tpl_var = trigger_event('loc_index_thumbnail', $tpl_var, $row); 176 177 $template->append('thumbnails', $tpl_var); 173 $tpl_thumbnails_var[] = $tpl_var; 178 174 } 179 175 180 trigger_action('loc_end_index_thumbnails', $pictures); 176 $tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures); 177 $template->assign('thumbnails', $tpl_thumbnails_var); 178 181 179 $template->assign_var_from_handle('THUMBNAILS', 'index_thumbnails'); 182 180
Note: See TracChangeset
for help on using the changeset viewer.