Ignore:
Timestamp:
Dec 12, 2013, 2:41:53 PM (10 years ago)
Author:
mistic100
Message:

update for Piwigo 2.6 + code cleaning + fix unable to cancel set during generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/admin/template/config.tpl

    r25931 r25932  
    1 {combine_css path=$BATCH_DOWNLOAD_PATH|@cat:"admin/template/style.css"}
     1{combine_css path=$BATCH_DOWNLOAD_PATH|cat:"admin/template/style.css"}
    22
    33{combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/jquery.ui.slider.js'}
     
    5151$('input[name="multisize"]').on('change', function() {
    5252  if ($(this).val() == 'true') {
    53     $('#multisize_title').text('{'Maximum photo size'|@translate|escape:javascript}');
     53    $('#multisize_title').text('{'Maximum photo size'|translate|escape:javascript}');
    5454  }
    5555  else {
    56     $('#multisize_title').text('{'Photo size'|@translate|escape:javascript}');
     56    $('#multisize_title').text('{'Photo size'|translate|escape:javascript}');
    5757  }
    5858})
     
    6767<form method="post" action="" class="properties">
    6868<fieldset>
    69   <legend>{'Download permissions'|@translate}</legend>
    70  
     69  <legend>{'Download permissions'|translate}</legend>
     70
    7171  <ul>
    7272    <li>
    73       <i>{'Warning: Only registered users can use Batch Downloader.'|@translate}</i>
     73      <i>{'Warning: Only registered users can use Batch Downloader.'|translate}</i>
    7474    </li>
    7575    <li>
    7676      <label>
    7777      {if $group_options}
    78         <b>{'User groups'|@translate}</b>
    79         <select name="groups[]" data-placeholder="{'Everybody'|@translate}" class="chzn-select" multiple="multiple" style="width:370px;">
     78        <b>{'User groups'|translate}</b>
     79        <select name="groups[]" data-placeholder="{'Everybody'|translate}" class="chzn-select" multiple="multiple" style="width:370px;">
    8080          {html_options options=$group_options selected=$batch_download.groups}
    8181        </select>
    8282      {else}
    83         {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list">{'Group management'|@translate}</a>
     83        {'There is no group in this gallery.'|translate} <a href="admin.php?page=group_list">{'Group management'|translate}</a>
    8484      {/if}
    8585      </label>
     
    8787    <li>
    8888      <label>
    89         <b>{'Privacy level'|@translate}</b>
     89        <b>{'Privacy level'|translate}</b>
    9090        <select name="level">
    9191          {html_options options=$level_options selected=$batch_download.level}
     
    9494    </li>
    9595    <li>
    96       <b>{'What can be downloaded?'|@translate}</b>
    97       <label><input type="checkbox" name="what[categories]" {if in_array('categories',$batch_download.what)}checked="checked"{/if}/> {'Albums'|@translate}</label>
    98       {if $USER_COLLEC_LOADED}<label><input type="checkbox" name="what[collections]" {if in_array('collections',$batch_download.what)}checked="checked"{/if}/> {'Collections'|@translate}</label>{/if}
    99       <label><input type="checkbox" name="what[specials]" {if in_array('specials',$batch_download.what)}checked="checked"{/if}/> {'Specials'|@translate}</label>
    100       <a class="icon-info-circled-1 showInfo" title="{'Most visited'|@translate}, {'Random photos'|@translate}, {'Best rated'|@translate}..."></a>
     96      <b>{'What can be downloaded?'|translate}</b>
     97      <label><input type="checkbox" name="what[categories]" {if in_array('categories',$batch_download.what)}checked="checked"{/if}/> {'Albums'|translate}</label>
     98      {if $USER_COLLEC_LOADED}<label><input type="checkbox" name="what[collections]" {if in_array('collections',$batch_download.what)}checked="checked"{/if}/> {'Collections'|translate}</label>{/if}
     99      <label><input type="checkbox" name="what[specials]" {if in_array('specials',$batch_download.what)}checked="checked"{/if}/> {'Specials'|translate}</label>
     100      <a class="icon-info-circled-1 showInfo" title="{'Most visited'|translate}, {'Random photos'|translate}, {'Best rated'|translate}..."></a>
    101101    </li>
    102102    <li>
     
    106106
    107107      <label>
    108         <b id="multisize_title">{'Maximum photo size'|@translate}</b>
     108        <b id="multisize_title">{'Maximum photo size'|translate}</b>
    109109        <select name="photo_size">
    110110          {html_options options=$sizes_options selected=$batch_download.photo_size}
     
    116116
    117117<fieldset>
    118   <legend>{'Archives'|@translate}</legend>
    119  
     118  <legend>{'Archives'|translate}</legend>
     119
    120120  <ul>
    121121    <li>
    122122      <label>
    123         <b>{'Delete downloads after'|@translate}</b>
    124         <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|@translate}
    125       </label>
    126     </li>
    127     <li>
    128       <label>
    129         <b>{'Maximum number of photos per download set'|@translate}</b>
     123        <b>{'Delete downloads after'|translate}</b>
     124        <input type="text" name="archive_timeout" value="{$batch_download.archive_timeout}" size="3"> {'hours'|translate}
     125      </label>
     126    </li>
     127    <li>
     128      <label>
     129        <b>{'Maximum number of photos per download set'|translate}</b>
    130130        <div id="max_elements"></div>
    131131        <input type="text" name="max_elements" value="{$batch_download.max_elements}" size="5">
     
    134134    <li>
    135135      <label>
    136         <b>{'Maximum size of each archive (in Megabytes)'|@translate}</b>
     136        <b>{'Maximum size of each archive (in Megabytes)'|translate}</b>
    137137        <div id="max_size"></div>
    138138        <input type="text" name="max_size" value="{$batch_download.max_size}" size="5">
     
    141141    <li>
    142142      <label>
    143         <b>{'Archive prefix'|@translate}</b>
     143        <b>{'Archive prefix'|translate}</b>
    144144        <input type="text" name="archive_prefix" value="{$batch_download.archive_prefix}">
    145145      </label>
     
    148148      <label>
    149149        <input type="checkbox" name="one_archive" {if $batch_download.one_archive}checked{/if}>
    150         <b>{'Delete previous archive when starting to download another one'|@translate}</b>
    151       </label>
    152       <a class="icon-info-circled-1 showInfo" title="{'It saves space on the server but doesn\'t allow to restart failed downloads.'|@translate}"></a>
     150        <b>{'Delete previous archive when starting to download another one'|translate}</b>
     151      </label>
     152      <a class="icon-info-circled-1 showInfo" title="{'It saves space on the server but doesn\'t allow to restart failed downloads.'|translate}"></a>
    153153    </li>
    154154    <li>
    155155      <label>
    156156        <input type="checkbox" name="force_pclzip" {if $batch_download.force_pclzip}checked{/if}>
    157         <b>{'Force the usage of PclZip instead of ZipArchive as ZIP library'|@translate}</b>
    158       </label>
    159       <a class="icon-info-circled-1 showInfo" title="{'Only check if you are experiencing corrupted archives with ZipArchive.'|@translate}"></a>
     157        <b>{'Force the usage of PclZip instead of ZipArchive as ZIP library'|translate}</b>
     158      </label>
     159      <a class="icon-info-circled-1 showInfo" title="{'Only check if you are experiencing corrupted archives with ZipArchive.'|translate}"></a>
    160160    </li>
    161161    <li>
    162162      <label>
    163163        <input type="checkbox" name="direct" {if $batch_download.direct}checked{/if}>
    164         <b>{'Don\'t download archives through PHP'|@translate}</b>
    165       </label>
    166       <a class="icon-info-circled-1 showInfo" title="{'Only check if your host complains about high PHP usage.'|@translate}"></a>
     164        <b>{'Don\'t download archives through PHP'|translate}</b>
     165      </label>
     166      <a class="icon-info-circled-1 showInfo" title="{'Only check if your host complains about high PHP usage.'|translate}"></a>
    167167    </li>
    168168  {if $use_ziparchive}
    169169    <li>
    170170      <label>
    171         <b>{'Archive comment'|@translate} :</b><br>
     171        <b>{'Archive comment'|translate} :</b><br>
    172172        <textarea name="archive_comment" rows="5" style="width:450px;">{$batch_download_comment}</textarea>
    173173      </label>
    174174      <br>
    175       <i>{'Warning: ZipArchive doesn\'t accept special characters like accentuated ones, angle quotes (») and non-latin alphabets.'|@translate}</i>
     175      <i>{'Warning: ZipArchive doesn\'t accept special characters like accentuated ones, angle quotes (») and non-latin alphabets.'|translate}</i>
    176176    </li>
    177177  {else}
     
    181181</fieldset>
    182182
    183 <p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p> 
    184 
    185 <fieldset>
    186   <legend>{'Environment'|@translate}</legend>
    187  
     183<p class="formButtons"><input type="submit" name="save_config" value="{'Save Settings'|translate}"></p>
     184
     185<fieldset>
     186  <legend>{'Environment'|translate}</legend>
     187
    188188  <b>PHP</b> {$PHP_VERSION}<br>
    189189{if $use_ziparchive}
     
    195195
    196196<fieldset>
    197   <legend>{'Advanced features'|@translate}</legend>
    198  
     197  <legend>{'Advanced features'|translate}</legend>
     198
    199199  <dl class="advanced" style="display:none;">
    200200    {$ADVANCED_CONF}
    201201  </dl>
    202  
    203   <span class="show_advanced buttonLike">{'Display'|@translate}</span>
     202
     203  <span class="show_advanced buttonLike">{'Display'|translate}</span>
    204204</fieldset>
    205205
Note: See TracChangeset for help on using the changeset viewer.