Changeset 1596 for trunk/include/category_default.inc.php
- Timestamp:
- Nov 7, 2006, 4:37:57 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_default.inc.php
r1384 r1596 50 50 ;'; 51 51 $result = pwg_query($query); 52 while ($row = mysql_fetch_a rray($result))52 while ($row = mysql_fetch_assoc($result)) 53 53 { 54 54 $row['rank'] = $page['rank_of'][ $row['id'] ]; … … 61 61 62 62 // template thumbnail initialization 63 $template->set_filenames( array( 'thumbnails' => 'thumbnails.tpl',)); 63 $template->set_filenames( array( 'thumbnails' => 'thumbnails.tpl',)); 64 64 if (count($pictures) > 0) 65 65 { 66 $template->assign_block_vars('thumbnails', array());67 66 // first line 68 67 $template->assign_block_vars('thumbnails.line', array()); … … 71 70 } 72 71 72 trigger_action('loc_begin_index_thumbnails', $pictures); 73 73 74 foreach ($pictures as $row) 74 75 { 75 $thumbnail_url = get_thumbnail_ src($row['path'], @$row['tn_ext']);76 $thumbnail_url = get_thumbnail_url($row); 76 77 77 78 // message in title for the thumbnail … … 81 82 $thumbnail_title .= ' : '.$row['filesize'].' KB'; 82 83 } 83 84 84 85 // link on picture.php page 85 86 $url = duplicate_picture_url( … … 160 161 } 161 162 163 //plugins need to add/modify sth in this loop ? 164 trigger_action('loc_index_thumbnail', $row, 'thumbnails.line.thumbnail' ); 165 162 166 // create a new line ? 163 167 if (++$row_number == $user['nb_image_line']) … … 167 171 } 168 172 } 173 174 trigger_action('loc_end_index_thumbnails', $pictures); 169 175 $template->assign_var_from_handle('THUMBNAILS', 'thumbnails'); 170 176
Note: See TracChangeset
for help on using the changeset viewer.