Changeset 16622


Ignore:
Timestamp:
Jul 11, 2012, 3:06:22 PM (12 years ago)
Author:
mistic100
Message:

-add some css for sliders, waiting for Piwigo 2.4.2
-mask photo sizes options
-ZipArchives can't properly use utf-8 filenames, try to sanitize names

Location:
extensions/BatchDownloader
Files:
4 edited

Legend:

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

    r16598 r16622  
    5353        </select>
    5454      {else}
    55         {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list">{'Groups management'|@translate}</a>
     55        {'There is no group in this gallery.'|@translate} <a href="admin.php?page=group_list">{'Group management'|@translate}</a>
    5656      {/if}
    5757      </label>
     
    7272 
    7373  <ul>
    74     <li>
     74    <li style="display:none;">
    7575      <label>
    7676        <span class="property">{'Maximum photo size'|@translate}</span>
  • extensions/BatchDownloader/admin/template/style.css

    r16400 r16622  
    1919}
    2020
     21.table2 .throw {
     22  font-size:100%;
     23}
     24TABLE.table2 THEAD TD {
     25  padding: 0 5px !important;
     26}
    2127.table2 .action {
    2228  width:70px;
    2329}
    2430.table2 .user {
    25   width:120px;
     31  width:150px;
    2632}
    2733.table2 .date {
    28   width:180px;
     34  width:190px;
    2935}
    3036.table2 .size {
     
    3844}
    3945.table2 .status {
    40   width:100px;
     46  width:80px;
    4147}
     48
     49.ui-slider { background:#666;border-radius:2px;border:1px solid #888; }
     50.ui-slider .ui-slider-handle { border:1px solid #ccc;background:#444;border-radius:0.6em; }
     51.ui-slider .ui-slider-range { background:#888;border-radius:2px; }
  • extensions/BatchDownloader/include/BatchDownloader.class.php

    r16609 r16622  
    330330      $total_size = 0;
    331331      foreach ($images_to_add as $row)
    332       {
    333         $zip->addFile(PHPWG_ROOT_PATH . $row['path'], $row['id'].'_'.$row['name'].'.'.get_extension($row['file']));
     332      {       
     333        $zip->addFile(PHPWG_ROOT_PATH . $row['path'], $row['id'].'_'.str2url($row['name']).'.'.get_extension($row['file']));
    334334       
    335335        array_push($images_added, $row['id']);
     
    344344      // archive comment
    345345      global $conf;
    346       $comment = 'Generated on '.date('r').' with PHP ZipArchive '.PHP_VERSION.' by Piwigo Advanced Downloader.';
     346      $comment = 'Generated on '.date('r').' with PHP ZipArchive '.PHP_VERSION.' by Piwigo Batch Downloader.';
    347347      $comment.= "\n".$conf['gallery_title'].' - '.get_absolute_root_url();
    348348      if (!empty($this->conf['archive_comment']))
  • extensions/BatchDownloader/language/fr_FR/plugin.lang.php

    r16609 r16622  
    66$lang['Random'] = 'Aléatoire';
    77$lang['User collection'] = 'Collection utilisateur';
    8 $lang['Nb images'] = 'Nb images';
     8$lang['Nb images'] = 'Nb photos';
    99$lang['Nb archives'] = 'Nb archives';
    1010$lang['Total size'] = 'Taille totale';
Note: See TracChangeset for help on using the changeset viewer.