Ignore:
Timestamp:
Dec 27, 2011, 6:26:44 AM (12 years ago)
Author:
rvelices
Message:

feature 2541 multisize

  • core implementation + usage on most public/admin pages
  • still to do: sync process, upload, gui/persistence for size parameters, migration script, center of interest ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/history.php

    r9808 r12796  
    304304    file,
    305305    path,
    306     tn_ext
     306    representative_ext
    307307  FROM '.IMAGES_TABLE.'
    308308  WHERE id IN ('.implode(',', array_keys($image_ids)).')
     
    314314    $file_of_image = array();
    315315    $path_of_image = array();
    316     $tn_ext_of_image = array();
     316    $representative_ext_of_image = array();
    317317
    318318    $result = pwg_query($query);
     
    333333      $file_of_image[ $row['id'] ] = $row['file'];
    334334      $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'];
    336336    }
    337337
     
    455455          'file' => $file_of_image[$line['image_id']],
    456456          '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']],
    458458          );
    459459        $thumbnail_display = $page['search']['fields']['display_thumbnail'];
     
    488488          $image_string =
    489489            '<a class="thumbnail" href="'.$picture_url.'">'
    490             .'<span><img src="'.get_thumbnail_url($element)
     490            .'<span><img src="'.DerivativeImage::thumb_url($element)
    491491            .'" alt="'.$image_title.'" title="'.$image_title.'">'
    492492            .'</span></a>';
     
    497497          $image_string =
    498498            '<a class="over" href="'.$picture_url.'">'
    499             .'<span><img src="'.get_thumbnail_url($element)
     499            .'<span><img src="'.DerivativeImage::thumb_url($element)
    500500            .'" alt="'.$image_title.'" title="'.$image_title.'">'
    501501            .'</span>'.$image_title.'</a>';
Note: See TracChangeset for help on using the changeset viewer.