Changeset 9868
- Timestamp:
- Mar 26, 2011, 4:53:38 PM (13 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_ranks.php
r9865 r9868 198 198 SELECT 199 199 id, 200 file, 200 201 path, 201 202 tn_ext, 203 name, 202 204 rank 203 205 FROM '.IMAGES_TABLE.' … … 217 219 218 220 $thumbnail_size = getimagesize($src); 221 if ( !empty( $row['name'] ) ) 222 { 223 $thumbnail_name = $row['name']; 224 } 225 else 226 { 227 $file_wo_ext = get_filename_wo_extension($row['file']); 228 $thumbnail_name = str_replace('_', ' ', $file_wo_ext); 229 } 219 230 $thumbnail_info[] = array( 231 'name' => $thumbnail_name, 220 232 'width' => $thumbnail_size[0], 221 233 'height' => $thumbnail_size[1], … … 243 255 array( 244 256 'ID' => $thumbnails_info['id'], 257 'NAME' => $thumbnails_info['name'], 245 258 'TN_SRC' => $thumbnails_info['tn_src'], 246 259 'RANK' => $thumbnails_info['rank'], -
trunk/admin/themes/default/template/element_set_ranks.tpl
r9864 r9868 29 29 checkOrderOptions(); 30 30 }); 31 jQuery(document).ready(function() { 32 jQuery('.clipwrapper').tipTip({ 33 'delay' : 0, 34 'fadeIn' : 200, 35 'fadeOut' : 200 36 }); 37 }); 31 38 {/literal}{/footer_script} 32 39 … … 45 52 {foreach from=$thumbnails item=thumbnail} 46 53 <li class="rank-of-image" style="width:{$thumbnail.CLIPING_li}px; height:{$thumbnail.CLIPING_li}px; "> 47 <div class="clipwrapper" style="width:{$thumbnail.CLIPING}px; height:{$thumbnail.CLIPING}px; " >54 <div class="clipwrapper" style="width:{$thumbnail.CLIPING}px; height:{$thumbnail.CLIPING}px; " title="{$thumbnail.NAME|@replace:'"':' '}"> 48 55 <div class="clip" style="clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> 49 <img src="{$thumbnail.TN_SRC}" class="thumbnail" alt=" ">56 <img src="{$thumbnail.TN_SRC}" class="thumbnail" alt="{$thumbnail.NAME|@replace:'"':' '}"> 50 57 </div> 51 58 </div>
Note: See TracChangeset
for help on using the changeset viewer.