Ignore:
Timestamp:
Mar 26, 2011, 4:53:38 PM (13 years ago)
Author:
flop25
Message:

use of tiptip for the name of the picture, and this name is now in the alt attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_ranks.php

    r9865 r9868  
    198198SELECT
    199199    id,
     200    file,
    200201    path,
    201202    tn_ext,
     203    name,
    202204    rank
    203205  FROM '.IMAGES_TABLE.'
     
    217219       
    218220        $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  }
    219230        $thumbnail_info[] = array(
     231                'name'  => $thumbnail_name,
    220232                'width' => $thumbnail_size[0],
    221233                'height'        => $thumbnail_size[1],
     
    243255    array(
    244256      'ID' => $thumbnails_info['id'],
     257      'NAME' => $thumbnails_info['name'],
    245258      'TN_SRC' => $thumbnails_info['tn_src'],
    246259      'RANK' => $thumbnails_info['rank'],
Note: See TracChangeset for help on using the changeset viewer.