Changeset 12796 for trunk/admin
- Timestamp:
- Dec 27, 2011, 6:26:44 AM (12 years ago)
- Location:
- trunk/admin
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/batch_manager_global.php
r12748 r12796 712 712 713 713 $query = ' 714 SELECT id,path, tn_ext,file,filesize,level,name714 SELECT id,path,representative_ext,file,filesize,level,name 715 715 FROM '.IMAGES_TABLE; 716 716 … … 748 748 { 749 749 $nb_thumbs_page++; 750 $src = get_thumbnail_url($row);750 $src = DerivativeImage::thumb_url($row); 751 751 752 752 $title = $row['name']; -
trunk/admin/batch_manager_unit.php
r11853 r12796 202 202 203 203 $query = ' 204 SELECT id,path, tn_ext,name,date_creation,comment,author,level,file204 SELECT id,path,representative_ext,name,date_creation,comment,author,level,file 205 205 FROM '.IMAGES_TABLE; 206 206 … … 238 238 array_push($element_ids, $row['id']); 239 239 240 $src = get_thumbnail_url($row);240 $src = DerivativeImage::thumb_url($row); 241 241 242 242 // creation date -
trunk/admin/cat_modify.php
r12591 r12796 302 302 { 303 303 $query = ' 304 SELECT id, tn_ext,path304 SELECT id,representative_ext,path 305 305 FROM '.IMAGES_TABLE.' 306 306 WHERE id = '.$category['representative_picture_id'].' 307 307 ;'; 308 308 $row = pwg_db_fetch_assoc(pwg_query($query)); 309 $src = get_thumbnail_url($row);309 $src = DerivativeImage::thumb_url($row); 310 310 $url = get_root_url().'admin.php?page=picture_modify'; 311 311 $url.= '&image_id='.$category['representative_picture_id']; … … 388 388 { 389 389 $query = ' 390 SELECT id, file, path, tn_ext390 SELECT id, file, path, representative_ext 391 391 FROM '.IMAGES_TABLE.' 392 392 WHERE id = '.$category['representative_picture_id'].' … … 404 404 'category' => $category 405 405 )) 406 .'" class="thumblnk"><img src="'. get_thumbnail_url($element).'"></a>';406 .'" class="thumblnk"><img src="'.DerivativeImage::thumb_url($element).'"></a>'; 407 407 } 408 408 } -
trunk/admin/comments.php
r12596 r12796 100 100 $query = ' 101 101 SELECT c.id, c.image_id, c.date, c.author, '. 102 $conf['user_fields']['username'].' AS username, c.content, i.path, i. tn_ext102 $conf['user_fields']['username'].' AS username, c.content, i.path, i.representative_ext 103 103 FROM '.COMMENTS_TABLE.' AS c 104 104 INNER JOIN '.IMAGES_TABLE.' AS i … … 112 112 while ($row = pwg_db_fetch_assoc($result)) 113 113 { 114 $thumb = get_thumbnail_url(114 $thumb = DerivativeImage::thumb_url( 115 115 array( 116 116 'id'=>$row['image_id'], -
trunk/admin/element_set_ranks.php
r12782 r12796 200 200 file, 201 201 path, 202 tn_ext, 202 representative_ext, 203 width, height, 203 204 name, 204 205 rank … … 215 216 $thumbnail_info=array(); 216 217 $clipping=array(); 218 $derivativeParams = ImageStdParams::get_by_type(IMG_SQUARE); 217 219 while ($row = pwg_db_fetch_assoc($result)) 218 220 { 219 $src = get_thumbnail_url($row);220 221 $thumbnail_size = getimagesize($src);221 $derivative = new DerivativeImage($derivativeParams, new SrcImage($row)); 222 223 $thumbnail_size = $derivative->get_size(); 222 224 if ( !empty( $row['name'] ) ) 223 225 { … … 234 236 'height' => $thumbnail_size[1], 235 237 'id' => $row['id'], 236 'tn_src' => $ src,238 'tn_src' => $derivative->get_url(), 237 239 'rank' => $current_rank * 10, 238 240 ); -
trunk/admin/history.php
r9808 r12796 304 304 file, 305 305 path, 306 tn_ext306 representative_ext 307 307 FROM '.IMAGES_TABLE.' 308 308 WHERE id IN ('.implode(',', array_keys($image_ids)).') … … 314 314 $file_of_image = array(); 315 315 $path_of_image = array(); 316 $ tn_ext_of_image = array();316 $representative_ext_of_image = array(); 317 317 318 318 $result = pwg_query($query); … … 333 333 $file_of_image[ $row['id'] ] = $row['file']; 334 334 $path_of_image[ $row['id'] ] = $row['path']; 335 $ tn_ext_of_image[ $row['id'] ] = $row['tn_ext'];335 $representative_ext_of_image[ $row['id'] ] = $row['representative_ext']; 336 336 } 337 337 … … 455 455 'file' => $file_of_image[$line['image_id']], 456 456 'path' => $path_of_image[$line['image_id']], 457 ' tn_ext' => $tn_ext_of_image[$line['image_id']],457 'representative_ext' => $representative_ext_of_image[$line['image_id']], 458 458 ); 459 459 $thumbnail_display = $page['search']['fields']['display_thumbnail']; … … 488 488 $image_string = 489 489 '<a class="thumbnail" href="'.$picture_url.'">' 490 .'<span><img src="'. get_thumbnail_url($element)490 .'<span><img src="'.DerivativeImage::thumb_url($element) 491 491 .'" alt="'.$image_title.'" title="'.$image_title.'">' 492 492 .'</span></a>'; … … 497 497 $image_string = 498 498 '<a class="over" href="'.$picture_url.'">' 499 .'<span><img src="'. get_thumbnail_url($element)499 .'<span><img src="'.DerivativeImage::thumb_url($element) 500 500 .'" alt="'.$image_title.'" title="'.$image_title.'">' 501 501 .'</span>'.$image_title.'</a>'; -
trunk/admin/picture_modify.php
r12612 r12796 283 283 'PATH'=>$row['path'], 284 284 285 'TN_SRC' => get_thumbnail_url($row),285 'TN_SRC' => DerivativeImage::thumb_url($row), 286 286 287 287 'NAME' => -
trunk/admin/rating.php
r12624 r12796 185 185 i.path, 186 186 i.file, 187 i. tn_ext,187 i.representative_ext, 188 188 i.rating_score, 189 189 r.element_id … … 202 202 foreach ($images as $image) 203 203 { 204 $thumbnail_src = get_thumbnail_url($image);204 $thumbnail_src = DerivativeImage::thumb_url($image); 205 205 206 206 $image_url = PHPWG_ROOT_PATH.'admin.php?page=picture_modify'. -
trunk/admin/rating_user.php
r12650 r12796 102 102 if (count($image_ids) > 0 ) 103 103 { 104 $query = 'SELECT id, name, file, path, tn_ext104 $query = 'SELECT id, name, file, path, representative_ext 105 105 FROM '.IMAGES_TABLE.' 106 106 WHERE id IN ('.implode(',', array_keys($image_ids)).')'; … … 109 109 { 110 110 $image_urls[ $row['id'] ] = array( 111 'tn' => get_thumbnail_url($row),111 'tn' => DerivativeImage::thumb_url($row), 112 112 'page' => make_picture_url( array('image_id'=>$row['id'], 'image_file'=>$row['file']) ), 113 113 ); … … 218 218 'ratings' => $by_user_ratings, 219 219 'image_urls' => $image_urls, 220 'TN_WIDTH' => 2 0+2*$conf['upload_form_thumb_maxwidth'],220 'TN_WIDTH' => 28+2*ImageStdParams::get_by_type(IMG_THUMB)->sizing->ideal_size[0], 221 221 ) ); 222 222 $template->set_filename('rating', 'rating_user.tpl'); -
trunk/admin/themes/default/template/rating_user.tpl
r12650 r12796 60 60 {capture assign=rate_over}{foreach from=$rates item=rate_arr}<img src="{$image_urls[$rate_arr.id].tn}" alt="thumb-{$rate_arr.id}" title="{$rate_arr.date}"></img> 61 61 {/foreach}{/capture} 62 <a class="cluetip" title=" {$rate_over|@htmlspecialchars}">{$rates|@count}</a>62 <a class="cluetip" title="|{$rate_over|@htmlspecialchars}">{$rates|@count}</a> 63 63 {/if}</td> 64 64 {/foreach} … … 72 72 jQuery(document).ready(function(){ldelim} 73 73 jQuery('.cluetip').cluetip({ldelim} 74 width: {$TN_WIDTH}, s plitTitle: '|'74 width: {$TN_WIDTH}, showTitle:false, splitTitle: '|' 75 75 }); 76 76 })
Note: See TracChangeset
for help on using the changeset viewer.