Ignore:
Timestamp:
Jan 17, 2014, 11:10:30 PM (10 years ago)
Author:
rvelices
Message:

modus ui simplification

Location:
extensions/modus/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/modus/admin/admin.inc.php

    r25794 r26836  
    1616}
    1717
    18 $text_values = array('skin', 'album_thumb_size', 'index_photo_deriv','index_photo_deriv_hdpi', 'resize_threshold', 'resize_factor');
     18$text_values = array('skin', 'album_thumb_size', 'index_photo_deriv','index_photo_deriv_hdpi');
    1919$bool_values = array();
    2020
     
    2828        // int/double
    2929        $my_conf['album_thumb_size'] = max(0, $my_conf['album_thumb_size']);
    30   $my_conf['resize_threshold'] = max(1, $my_conf['resize_threshold']);
    31   $my_conf['resize_factor'] = max(0, min(1, $my_conf['resize_factor']) );
    3230  $my_conf = array_intersect_key($my_conf, $default_conf);
    3331  conf_update_param('modus_theme', addslashes(serialize($my_conf)) );
  • extensions/modus/admin/modus_admin.tpl

    r25794 r26836  
    3131<fieldset><legend>Full row thumbnail layout</legend>
    3232Automatically applied for selected derivatives if max_width > max_height*1.5
    33 <br>
    3433
    35 <fieldset><legend>Horizontal crop or resize ?</legend>
    36 If row overflow is > <input name="resize_threshold" value="{$RESIZE_THRESHOLD}" type=number min=1 step=any size=2> (range [1;Inf]) then
    37 use a factor of the overflow <input name="resize_factor" value="{$RESIZE_FACTOR}"type=number min=0 max=1 step=any size=2> (range [0;1]) for resizing.
    38 </fieldset>
    3934</fieldset>
    4035
Note: See TracChangeset for help on using the changeset viewer.