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

    r12591 r12796  
    302302  {
    303303    $query = '
    304 SELECT id,tn_ext,path
     304SELECT id,representative_ext,path
    305305  FROM '.IMAGES_TABLE.'
    306306  WHERE id = '.$category['representative_picture_id'].'
    307307;';
    308308    $row = pwg_db_fetch_assoc(pwg_query($query));
    309     $src = get_thumbnail_url($row);
     309    $src = DerivativeImage::thumb_url($row);
    310310    $url = get_root_url().'admin.php?page=picture_modify';
    311311    $url.= '&image_id='.$category['representative_picture_id'];
     
    388388  {
    389389    $query = '
    390 SELECT id, file, path, tn_ext
     390SELECT id, file, path, representative_ext
    391391  FROM '.IMAGES_TABLE.'
    392392  WHERE id = '.$category['representative_picture_id'].'
     
    404404                          'category' => $category
    405405                        ))
    406                       .'" class="thumblnk"><img src="'.get_thumbnail_url($element).'"></a>';
     406                      .'" class="thumblnk"><img src="'.DerivativeImage::thumb_url($element).'"></a>';
    407407    }
    408408  }
Note: See TracChangeset for help on using the changeset viewer.