Changeset 12612 for trunk/admin


Ignore:
Timestamp:
11/12/11 13:45:19 (8 years ago)
Author:
mistic100
Message:

feature:2466 Display high-definition dimensions in picture_modify
(file size was already displayed)

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/picture_modify.php

    r12259 r12612  
    313313if ($row['has_high'] == 'true') 
    314314{ 
    315   $template->assign( 
    316     'HIGH_FILESIZE', 
    317     isset($row['high_filesize']) 
    318         ? $row['high_filesize'].' KB' 
    319         : l10n('unknown') 
    320     ); 
     315  $template->assign(array( 
     316    'HIGH_FILESIZE' => isset($row['high_filesize']) ? $row['high_filesize'].' KB' : l10n('unknown'), 
     317    'HIGH_DIMENSIONS' => isset($row['high_width']) ? $row['high_width'].' * '.$row['high_height'] : l10n('unknown'), 
     318    )); 
    321319} 
    322320 
  • trunk/admin/themes/default/template/picture_modify.tpl

    r12482 r12612  
    6969{if isset($HIGH_FILESIZE) } 
    7070      <tr> 
     71        <td><strong>{'High dimensions'|@translate}</strong></td> 
     72        <td>{$HIGH_DIMENSIONS}</td> 
     73      </tr> 
     74       
     75      <tr> 
    7176        <td><strong>{'High filesize'|@translate}</strong></td> 
    7277        <td>{$HIGH_FILESIZE}</td> 
Note: See TracChangeset for help on using the changeset viewer.