Changeset 23288


Ignore:
Timestamp:
Jun 17, 2013, 12:04:35 PM (7 years ago)
Author:
mistic100
Message:

add info about advanced conf

Location:
extensions/BatchDownloader
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/admin/config.php

    r21422 r23288  
    6060  'use_ziparchive' => class_exists('ZipArchive') && !isset($conf['batch_downloader_force_pclzip']),
    6161  'PHP_VERSION' => PHP_VERSION,
     62  'ADVANCED_CONF' => load_language('advanced.html', BATCH_DOWNLOAD_PATH, array('return'=>true))
    6263  ));
    6364
  • extensions/BatchDownloader/admin/template/config.tpl

    r21422 r23288  
    3131  }
    3232});
    33 $("input[name='max_elements']").change(function() {ldelim}
     33{literal}
     34$("input[name='max_elements']").change(function() {
    3435  $("#max_elements").slider("value", $(this).val());
    3536});
    3637
    37 jQuery(".showInfo").tipTip({ldelim}
     38jQuery(".showInfo").tipTip({
    3839  delay: 0,
    3940  fadeIn: 200,
     
    4243  defaultPosition: 'bottom'
    4344});
    44 {/footer_script}
     45
     46$(".show_advanced").click(function() {
     47  $(this).slideUp();
     48  $(".advanced").slideDown();
     49});
     50{/literal}{/footer_script}
    4551
    4652<div class="titrePage">
     
    152158{/if}
    153159</fieldset>
     160
     161<fieldset>
     162  <legend>{'Advanced features'|@translate}</legend>
    154163 
     164  <dl class="advanced" style="display:none;">
     165    {$ADVANCED_CONF}
     166  </dl>
     167 
     168  <span class="show_advanced buttonLike">{'Display'|@translate}</span>
     169</fieldset>
     170
    155171</form>
  • extensions/BatchDownloader/admin/template/style.css

    r21422 r23288  
    5757  font-size:0.8em;
    5858}
     59
     60.advanced span {
     61  font-family: 'Courrier New',monospace;
     62  font-size: 11pt;
     63  font-style:normal;
     64}
     65.advanced dd:not(:last-child) {
     66  margin-bottom:1em;
     67}
  • extensions/BatchDownloader/main.inc.php

    r23280 r23288  
    88Author URI: http://www.strangeplanet.fr
    99*/
    10 
    11 /*
    12  * advanced config:
    13  * $conf['batch_download_max_elements']   max value of the elements slider (default 1000)
    14  * $conf['batch_download_max_size']       max value of the size slider (default 500)
    15  * $conf['batch_download_force_pclzip']   if true, force the usage of PclZip instead of ZipArchive
    16  * $conf['batch_download_direct']         if true, the download script will redirect to the zip instead of deliver it through PHP
    17  * $conf['batch_download_additional_ext'] array containing downloadable filetypes (case sensitive), default is $conf['picture_ext']
    18  */
    1910
    2011defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
Note: See TracChangeset for help on using the changeset viewer.