Ignore:
Timestamp:
Jul 12, 2012, 12:33:33 AM (12 years ago)
Author:
plg
Message:

Compatibility with Piwigo 2.4

Better "zoom" feature on gallery side and admin side

Bug fixed: the "Upload Photos" link in menubar is hidden when Advanced Menu Manager is activated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/community/admin_pendings.php

    r9453 r16637  
    131131    i.id,
    132132    path,
    133     tn_ext,
    134133    date_creation,
    135134    name,
     
    141140    width,
    142141    height,
    143     has_high,
    144     high_filesize,
     142    rotation,
    145143
    146144    '.$conf['user_fields']['username'].' AS username
     
    192190foreach ($rows as $row)
    193191{
    194   $thumb = get_thumbnail_url(
    195     array(
    196       'id' => $row['image_id'],
    197       'path' => $row['path'],
    198       'tn_ext' => @$row['tn_ext']
    199       )
    200     );
    201 
     192  $src_image = new SrcImage($row);
     193  $thumb_url = DerivativeImage::url(IMG_THUMB, $src_image);
     194  $medium_url = DerivativeImage::url(IMG_MEDIUM, $src_image);
     195 
    202196  // file properties
    203197  $dimensions = null;
     
    231225      'U_EDIT' => get_root_url().'admin.php?page=picture_modify&image_id='.$row['image_id'],
    232226      'ID' => $row['image_id'],
    233       'TN_SRC' => $thumb,
    234       'WEBSIZE_SRC' => $row['path'],
     227      'TN_SRC' => $thumb_url,
     228      'MEDIUM_SRC' => $medium_url,
    235229      'ADDED_BY' => $row['username'],
    236230      'ADDED_ON' => format_date($row['added_on'], true),
    237       'NAME' => get_image_name($row['name'], $row['file']),
     231      'NAME' => $row['name'],
    238232      'DIMENSIONS' => $dimensions,
    239233      'FILE' => $row['file'],
Note: See TracChangeset for help on using the changeset viewer.