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/rating_user.php

    r12650 r12796  
    102102if (count($image_ids) > 0 )
    103103{
    104   $query = 'SELECT id, name, file, path, tn_ext
     104  $query = 'SELECT id, name, file, path, representative_ext
    105105  FROM '.IMAGES_TABLE.'
    106106  WHERE id IN ('.implode(',', array_keys($image_ids)).')';
     
    109109  {
    110110    $image_urls[ $row['id'] ] = array(
    111       'tn' => get_thumbnail_url($row),
     111      'tn' => DerivativeImage::thumb_url($row),
    112112      'page' => make_picture_url( array('image_id'=>$row['id'], 'image_file'=>$row['file']) ),
    113113    );
     
    218218  'ratings' => $by_user_ratings,
    219219  'image_urls' => $image_urls,
    220   'TN_WIDTH' => 20+2*$conf['upload_form_thumb_maxwidth'],
     220  'TN_WIDTH' => 28+2*ImageStdParams::get_by_type(IMG_THUMB)->sizing->ideal_size[0],
    221221  ) );
    222222$template->set_filename('rating', 'rating_user.tpl');
Note: See TracChangeset for help on using the changeset viewer.