Ignore:
Timestamp:
Mar 23, 2012, 10:58:12 PM (13 years ago)
Author:
plg
Message:

feature 2598: add sizes XXS and XS

new label for sizes

On picture.php, the current size is "checked" and javascript refreshed when switched (with jQuery)

jQuery loaded by default on header.tpl (already loaded by thumbnails.tpl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/derivative_std_params.inc.php

    r13472 r13683  
    2222define('IMG_SQUARE', 'square');
    2323define('IMG_THUMB', 'thumb');
     24define('IMG_XXSMALL', '2small');
     25define('IMG_XSMALL', 'xsmall');
    2426define('IMG_SMALL', 'small');
    2527define('IMG_MEDIUM', 'medium');
     
    4244final class ImageStdParams
    4345{
    44   private static $all_types = array(IMG_SQUARE,IMG_THUMB,IMG_SMALL,IMG_MEDIUM,IMG_LARGE,IMG_XLARGE,IMG_XXLARGE);
     46  private static $all_types = array(
     47    IMG_SQUARE,IMG_THUMB,IMG_XXSMALL,IMG_XSMALL,IMG_SMALL,IMG_MEDIUM,IMG_LARGE,IMG_XLARGE,IMG_XXLARGE
     48    );
    4549  private static $all_type_map = array();
    4650  private static $type_map = array();
     
    163167    self::$type_map[IMG_SQUARE] = new DerivativeParams( SizingParams::square(120,120) );
    164168    self::$type_map[IMG_THUMB] = new DerivativeParams( SizingParams::classic(144,144) );
    165     self::$type_map[IMG_SMALL] = new DerivativeParams( SizingParams::classic(240,240) );
    166     self::$type_map[IMG_MEDIUM] = new DerivativeParams( SizingParams::classic(432,432) );
    167     self::$type_map[IMG_LARGE] = new DerivativeParams( SizingParams::classic(648,576) );
    168     self::$type_map[IMG_XLARGE] = new DerivativeParams( SizingParams::classic(864,648) );
    169     self::$type_map[IMG_XXLARGE] = new DerivativeParams( SizingParams::classic(1200,900) );
     169    self::$type_map[IMG_XXSMALL] = new DerivativeParams( SizingParams::classic(240,240) );
     170    self::$type_map[IMG_XSMALL] = new DerivativeParams( SizingParams::classic(432,324) );
     171    self::$type_map[IMG_SMALL] = new DerivativeParams( SizingParams::classic(576,432) );
     172    self::$type_map[IMG_MEDIUM] = new DerivativeParams( SizingParams::classic(792,594) );
     173    self::$type_map[IMG_LARGE] = new DerivativeParams( SizingParams::classic(1008,756) );
     174    self::$type_map[IMG_XLARGE] = new DerivativeParams( SizingParams::classic(1224,918) );
     175    self::$type_map[IMG_XXLARGE] = new DerivativeParams( SizingParams::classic(1656,1242) );
    170176  }
    171177
Note: See TracChangeset for help on using the changeset viewer.