Changeset 22135 for trunk/admin


Ignore:
Timestamp:
Apr 11, 2013, 3:18:46 PM (11 years ago)
Author:
flop25
Message:

bug:2863
display a message on the upload page if "Resized after upload" is checked

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/photos_add_direct_prepare.inc.php

    r19828 r22135  
    106106}
    107107
     108//warn the user if the picture will be resized after upload
     109if ($conf['original_resize'])
     110{
     111  $template->assign(
     112    array(
     113        'original_resize_maxwidth' => $conf['original_resize_maxwidth'],
     114        'original_resize_maxheight' => $conf['original_resize_maxheight'],
     115      )
     116    );
     117}
     118
     119
    108120$upload_modes = array('html', 'multiple');
    109121$upload_mode = isset($conf['upload_mode']) ? $conf['upload_mode'] : 'multiple';
     
    256268      );
    257269  }
    258 
    259270  $template->assign(
    260271    array(
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r19828 r22135  
    290290    <fieldset>
    291291      <legend>{'Select files'|@translate}</legend>
     292 
     293    {if isset($original_resize_maxheight)}<p class="uploadInfo">{'The picture dimensions will be reduced to %dx%d pixels.'|@translate|@sprintf:$original_resize_maxwidth:$original_resize_maxheight}</p>{/if}
    292294
    293295    <p id="uploadWarningsSummary">{$upload_max_filesize_shorthand}B. {$upload_file_types}. {if isset($max_upload_resolution)}{$max_upload_resolution}Mpx{/if} <a class="showInfo" title="{'Learn more'|@translate}">i</a></p>
     
    300302  {/if}
    301303    </p>
     304
     305
    302306
    303307{if $upload_mode eq 'html'}
  • trunk/admin/themes/default/theme.css

    r19530 r22135  
    996996#addUploadBox {margin-bottom:2em;}
    997997
     998p.uploadInfo {text-align:left;font-size:90%;color:#999;}
    998999p#uploadWarningsSummary {text-align:left;margin-bottom:1em;font-size:90%;color:#999;}
    9991000p#uploadWarningsSummary .showInfo {position:static;display:inline;padding:1px 6px;margin-left:3px;}
Note: See TracChangeset for help on using the changeset viewer.