Changeset 5187 for trunk/admin/element_set_ranks.php
- Timestamp:
- Mar 19, 2010, 11:17:14 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_ranks.php
r4325 r5187 154 154 { 155 155 $src = get_thumbnail_url($row); 156 157 list($thumbnail_width, $thumbnail_height) = getimagesize($src); 158 $thumbnail_x_center = $thumbnail_width/2; 159 $thumbnail_y_center = $thumbnail_height/2; 156 160 157 161 $template->append( … … 161 165 'TN_SRC' => $src, 162 166 'RANK' => $current_rank * 10, 167 'CLIP_TOP' => round($thumbnail_y_center - 96/2), 168 'CLIP_RIGHT' => round($thumbnail_x_center + 96/2), 169 'CLIP_BOTTOM' => round($thumbnail_y_center + 96/2), 170 'CLIP_LEFT' => round($thumbnail_x_center - 96/2) 163 171 ) 164 172 );
Note: See TracChangeset
for help on using the changeset viewer.