Changeset 31060


Ignore:
Timestamp:
Mar 26, 2015, 1:07:18 AM (9 years ago)
Author:
SergeD
Message:

version 1.0.15 - refer to changelog for more details

Location:
extensions/GDThumb
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/GDThumb/admin.php

    r30485 r31060  
    9494  $big_thumb = !empty($_POST['big_thumb']);
    9595  $params  = array(
    96     'height'          => $_POST['height'],
    97     'margin'          => $_POST['margin'],
    98     'nb_image_page'   => $_POST['nb_image_page'],
    99     'big_thumb'       => $big_thumb,
    100     'big_thumb_noinpw'=> !empty($_POST['big_thumb_noinpw']),
    101     'cache_big_thumb' => !empty($_POST['cache_big_thumb']),
    102     'normalize_title' => $normalize,
    103     'method'          => $method,
    104     'thumb_mode_album'=> $_POST['thumb_mode_album'],
    105     'thumb_mode_photo'=> $_POST['thumb_mode_photo'],
    106     'thumb_metamode'  => $_POST['thumb_metamode'],
    107     'no_wordwrap'     => !empty($_POST['no_wordwrap'])
     96      'height'          => $_POST['height']
     97    , 'margin'          => $_POST['margin']
     98    , 'nb_image_page'   => $_POST['nb_image_page']
     99    , 'big_thumb'       => $big_thumb
     100    , 'big_thumb_noinpw'=> !empty($_POST['big_thumb_noinpw'])
     101    , 'cache_big_thumb' => !empty($_POST['cache_big_thumb'])
     102    , 'normalize_title' => $normalize
     103    , 'method'          => $method
     104    , 'thumb_mode_album'=> $_POST['thumb_mode_album']
     105    , 'thumb_mode_photo'=> $_POST['thumb_mode_photo']
     106    , 'thumb_metamode'  => $_POST['thumb_metamode']
     107    , 'no_wordwrap'     => !empty($_POST['no_wordwrap'])
     108    , 'thumb_animate'   => !empty($_POST['thumb_animate'])
    108109  );
    109110
     
    158159    'GDTHUMB_VERSION'  => GDTHUMB_VERSION,
    159160    'PHPWG_ROOT_PATH'  => PHPWG_ROOT_PATH,
     161
    160162    'HEIGHT'           => $params['height'],
    161163    'MARGIN'           => $params['margin'],
     
    170172    'THUMB_METAMODE'   => $params['thumb_metamode'],
    171173    'NO_WORDWRAP'      => isset($params['no_wordwrap']) && $params['no_wordwrap'],
     174    'THUMB_ANIMATE'    => isset($params['thumb_animate']) && $params['thumb_animate'],
     175
    172176    'PWG_TOKEN'        => get_pwg_token(),
    173177    'CUSTOM_CSS'       => $custom_css
  • extensions/GDThumb/changelog.txt

    r30901 r31060  
    2626
    2727=== Changelog ===
     28version 1.0.16
     29+ ADMIN: Added new option  "Animate thumbnail on hover"
     30+ Added event integration with RV Thumb Scroller
     31+ Corrected PayPal link for "Donate" link in admin area
     32- Remove reference to jquery.ui.button.js in admin page
     33- Added check for shared system variables to prevent conflict with other GD plugins and themes
     34
    2835version 1.0.15
    2936+ In Overlay Ex mode place "New Item" marker is placed in metadata area
  • extensions/GDThumb/css/gdthumb.css

    r30901 r31060  
    55
    66ul.thumbnails .gdthumb a img.thumbnail, ul.thumbnails .gdthumb a img.thumbnail:hover { border: 0 none; margin: 0; padding: 0; top: 0; border-radius: 0; }
     7
     8ul.thumbnails .gdthumb.animate img { -webkit-transition: 700ms; -moz-transition: 700ms; -o-transition: 700ms; transition: 700ms; }
     9ul.thumbnails .gdthumb.animate:hover img { transform: scale(1.5,1.5) rotate(10deg); -ms-transform: scale(1.5,1.5) rotate(10deg); -webkit-transform: scale(1.5,1.5) rotate(10deg); -o-transform: scale(1.5,1.5) rotate(10deg); -moz-transform: scale(1.5,1.5) rotate(10deg); }
    710
    811ul.thumbnails .gdthumb .thumbLegend    { position: absolute; z-index: 1; height: 5em; left:0; right:0; padding:5px 0; width:100%; background:rgba(0,0,0,0.7); text-align:center; overflow:hidden; color:#aaa; padding-left: 4px; padding-right: 4px; }
     
    3639ul.thumbnails .gdthumb .thumbLegend.overlay-ex       { visibility: hidden;  top: 0; bottom: 0; height: auto; opacity: 0; cursor: pointer; padding: 0; background-color: rgba(6, 6, 6, 0.8); }
    3740ul.thumbnails .gdthumb:hover .thumbLegend.overlay-ex { visibility: visible; opacity: 1; transition: opacity 200ms linear; -o-transition: opacity 200ms linear; -ms-transition: opacity 200ms linear; -moz-transition: opacity 200ms linear; -webkit-transition: opacity 200ms linear; }
     41
    3842ul.thumbnails .gdthumb .thumbLegend.overlay-ex .thumbName  { position: absolute; bottom: 0px; width: 100%; text-align: left; top: 0; }
    3943ul.thumbnails .gdthumb .thumbLegend.overlay-ex .thumbTitle { position: absolute; left: 10px; right: 10px; top: 10px;font-size: 1.2em; text-transform: uppercase; }
     
    4347ul.thumbnails .gdthumb .overlay-ex.thumbLegend .thumbInfo .hit-num   { background-color: #036FE5; min-width: 15px; height: 16px; display: block; color: #fff; float: left; line-height: 16px; padding: 1px; padding-top: 0px; padding-right: 4px; padding-left: 4px; margin-top: 4px; margin-right: 6px; font-size: 10px; text-align: center; }
    4448ul.thumbnails .gdthumb .overlay-ex.thumbLegend .thumbInfo .rank-num  { float: right; margin-top: 2px; vertical-align: middle; height: 20px; line-height: 20px; }
    45 
    4649ul.thumbnails .gdthumb .overlay-ex.thumbLegend .thumbInfo .glyphicon { padding-top: 3px; font-size: 17px; }
    4750
     51
    4852ul.thumbnails.nowrap .gdthumb .thumbLegend { white-space: nowrap; overflow: hidden; height: auto; }
  • extensions/GDThumb/js/gdthumb.js

    r30901 r31060  
    1010  method: 'crop',
    1111  t: new Array,
     12  do_merge: false,
    1213
    1314  // Initialize plugin logic, perform necessary steps
     
    2021    GDThumb.method     = method;
    2122    GDThumb.check_pv   = check_pv;
    22 
    23     if (do_merge) { GDThumb.merge(); }
    24 
    25     GDThumb.big_thumb = big_thumb;
     23    GDThumb.do_merge   = do_merge;
     24    GDThumb.big_thumb  = big_thumb;
     25
     26    $(window).bind("RVTS_loaded", function() { GDThumb.init(); });
     27    GDThumb.init();
     28  },
     29
     30  init: function() {
     31    if (GDThumb.do_merge) { GDThumb.merge(); }
     32
    2633    GDThumb.build();
    2734    jQuery(window).bind('RVTS_loaded', GDThumb.build);
  • extensions/GDThumb/main.inc.php

    r30901 r31060  
    22/*
    33Plugin Name: gdThumb
    4 Version: 1.0.15
     4Version: 1.0.16
    55Description: Apply Masonry style to album or image thumbs
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=771
     
    1919// | Plugin constants                                               |
    2020// +-----------------------------------------------------------------------+
    21 define('GDTHUMB_VERSION', '1.0.15');
     21define('GDTHUMB_VERSION', '1.0.16');
    2222define('GDTHUMB_ID',      basename(dirname(__FILE__)));
    23 define('GDTHEME_PATH' ,   PHPWG_THEMES_PATH . 'greydragon/');
    2423define('GDTHUMB_PATH' ,   PHPWG_PLUGINS_PATH . GDTHUMB_ID . '/');
     24if (!defined('GDTHEME_PATH')):
     25  define('GDTHEME_PATH' ,   PHPWG_THEMES_PATH . 'greydragon/');
     26endif;
    2527
    2628if (!isset($conf['gdThumb'])):
  • extensions/GDThumb/template/admin.tpl

    r30485 r31060  
    88      <li><a href="http://piwigo.org/forum/viewtopic.php?id=24413" target="_blank">{'Support'|@translate}</a>&nbsp;|&nbsp;</li>
    99      <li><a title="Follow me on Twitter" href="http://twitter.com/greydragon_th" target="_blank">{'Follow'|@translate}</a>&nbsp;|&nbsp;</li>
    10       <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=9MWBSVJMWMJEU" target="_blank">{'Coffee Fund'|@translate}</a>&nbsp;|&nbsp;</li>
     10      <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=GYVNZCNDMSD58" target="_blank">{'Coffee Fund'|@translate}</a>&nbsp;|&nbsp;</li>
    1111      <li><a href="http://piwigo.org/ext/extension_view.php?eid=771" onclick="return false" target="_blank">{'Download'|@translate}</a></li>
    1212    </ul>
     
    8484      <label for="thumb_metamode">{'Metadata Display Mode'|@translate}</label>
    8585    </li>
     86    <li><label><span class="graphicalCheckbox {if $THUMB_ANIMATE}icon-check{else}icon-check-empty{/if}">&nbsp;</span><input name="thumb_animate" id="thumb_animate" type="checkbox" value="1" {if $THUMB_ANIMATE}checked="checked"{/if}>{'Animate thumbnail on hover'|@translate}</label></li>
    8687  </ul>
    8788</fieldset>
     
    123124  {combine_css path=$GDTHEME_PATH|cat:"admin/css/styles.css"}
    124125  {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js' }
    125   {combine_script id='greydragon.admin' load='footer' require='jquery,jquery.ui.button.js' path=$GDTHEME_PATH|cat:"admin/js/admin.js" }
     126  {combine_script id='greydragon.admin' load='footer' require='jquery' path=$GDTHEME_PATH|cat:"admin/js/admin.js" }
    126127{else}
    127128{html_head}{literal}
  • extensions/GDThumb/template/gdthumb_cat.tpl

    r30901 r31060  
    1010{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
    1111{/if}
    12   <li class="gdthumb">
     12  <li class="gdthumb{if $GDThumb.thumb_animate} animate{/if}">
    1313    {if $GDThumb.thumb_mode_album !== "hide" }
    1414    <span class="thumbLegend {$GDThumb.thumb_mode_album}">
  • extensions/GDThumb/template/gdthumb_thumb.tpl

    r30901 r31060  
    66{assign var=derivative value=$pwg->derivative($GDThumb_derivative_params, $thumbnail.src_image)}
    77{assign var=media_type value={media_type file=$thumbnail.file}}
     8{assign var=media_type_name value={$media_type|capitalize:false:true}}
    89
    9 <li class="gdthumb">
     10<li class="gdthumb{if $GDThumb.thumb_animate} animate{/if}">
    1011  {if $GDThumb.thumb_mode_photo !== "hide" }
    1112  <span class="thumbLegend {$GDThumb.thumb_mode_photo}">
     
    1920      {assign var="file_name" value=$thumbnail.file|replace:"_":" "}
    2021      {if $file_name|strstr:$file_title}
    21       Photo {$thumbnail.id}
     22      {$media_type_name|@translate} {$thumbnail.id}
    2223      {else}
    2324      {$thumbnail.NAME}
     
    3839        {/if}
    3940        {if $thumbnail.rating_score > 0}
    40         <span class="rank-num glyphicon glyphicon-star">{$thumbnail.rating_score|string_format:"%d"}</span>
     41        <span class="rank-num"><i class="glyphicon glyphicon-star"></i>{$thumbnail.rating_score|string_format:"%d"}</span>
    4142        {/if}
    4243      </span>
Note: See TracChangeset for help on using the changeset viewer.