Changeset 12855 for trunk/admin


Ignore:
Timestamp:
Jan 5, 2012, 11:06:21 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize - improved picture.php display (original...) + code cleanup

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r12820 r12855  
    201201    $files[] = get_element_path($row);
    202202
    203     if (!empty($row['tn_ext']))
    204     {
    205       $files[] = get_thumbnail_path($row);
    206     }
    207    
    208     if (!empty($row['has_high']) and get_boolean($row['has_high']))
    209     {
    210       $files[] = get_high_path($row);
    211     }
    212    
     203   
    213204    if (!empty($row['representative_ext']))
    214205    {
    215206      $pi = pathinfo($row['path']);
    216207      $file_wo_ext = get_filename_wo_extension($pi['basename']);
    217       $files[] = PHPWG_ROOT_PATH.$pi['dirname'].'/pwg_representative/'.$file_wo_ext.'.'.$row['representative_ext'];
     208      $files[] = original_to_representative( $files[0], $row['representative_ext']);
    218209    }
    219210
  • trunk/admin/picture_modify.php

    r12831 r12855  
    304304  );
    305305
    306 if ($row['has_high'] == 'true')
    307 {
    308   $template->assign(array(
    309     'HIGH_FILESIZE' => isset($row['high_filesize']) ? $row['high_filesize'].' KB' : l10n('unknown'),
    310     'HIGH_DIMENSIONS' => isset($row['high_width']) ? $row['high_width'].' * '.$row['high_height'] : l10n('unknown'),
    311     ));
    312 }
    313 
    314306// image level options
    315307$selected_level = isset($_POST['level']) ? $_POST['level'] : $row['level'];
  • trunk/admin/themes/default/template/picture_modify.tpl

    r12693 r12855  
    6767      </tr>
    6868
    69 {if isset($HIGH_FILESIZE) }
    70       <tr>
    71         <td><strong>{'High dimensions'|@translate}</strong></td>
    72         <td>{$HIGH_DIMENSIONS}</td>
    73       </tr>
    74      
    75       <tr>
    76         <td><strong>{'High filesize'|@translate}</strong></td>
    77         <td>{$HIGH_FILESIZE}</td>
    78       </tr>
    79 {/if}
    80 
    8169      <tr>
    8270        <td><strong>{'Storage album'|@translate}</strong></td>
Note: See TracChangeset for help on using the changeset viewer.