Changeset 31060
- Timestamp:
- Mar 26, 2015, 1:07:18 AM (9 years ago)
- Location:
- extensions/GDThumb
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GDThumb/admin.php
r30485 r31060 94 94 $big_thumb = !empty($_POST['big_thumb']); 95 95 $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']) 108 109 ); 109 110 … … 158 159 'GDTHUMB_VERSION' => GDTHUMB_VERSION, 159 160 'PHPWG_ROOT_PATH' => PHPWG_ROOT_PATH, 161 160 162 'HEIGHT' => $params['height'], 161 163 'MARGIN' => $params['margin'], … … 170 172 'THUMB_METAMODE' => $params['thumb_metamode'], 171 173 'NO_WORDWRAP' => isset($params['no_wordwrap']) && $params['no_wordwrap'], 174 'THUMB_ANIMATE' => isset($params['thumb_animate']) && $params['thumb_animate'], 175 172 176 'PWG_TOKEN' => get_pwg_token(), 173 177 'CUSTOM_CSS' => $custom_css -
extensions/GDThumb/changelog.txt
r30901 r31060 26 26 27 27 === Changelog === 28 version 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 28 35 version 1.0.15 29 36 + In Overlay Ex mode place "New Item" marker is placed in metadata area -
extensions/GDThumb/css/gdthumb.css
r30901 r31060 5 5 6 6 ul.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 8 ul.thumbnails .gdthumb.animate img { -webkit-transition: 700ms; -moz-transition: 700ms; -o-transition: 700ms; transition: 700ms; } 9 ul.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); } 7 10 8 11 ul.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; } … … 36 39 ul.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); } 37 40 ul.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 38 42 ul.thumbnails .gdthumb .thumbLegend.overlay-ex .thumbName { position: absolute; bottom: 0px; width: 100%; text-align: left; top: 0; } 39 43 ul.thumbnails .gdthumb .thumbLegend.overlay-ex .thumbTitle { position: absolute; left: 10px; right: 10px; top: 10px;font-size: 1.2em; text-transform: uppercase; } … … 43 47 ul.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; } 44 48 ul.thumbnails .gdthumb .overlay-ex.thumbLegend .thumbInfo .rank-num { float: right; margin-top: 2px; vertical-align: middle; height: 20px; line-height: 20px; } 45 46 49 ul.thumbnails .gdthumb .overlay-ex.thumbLegend .thumbInfo .glyphicon { padding-top: 3px; font-size: 17px; } 47 50 51 48 52 ul.thumbnails.nowrap .gdthumb .thumbLegend { white-space: nowrap; overflow: hidden; height: auto; } -
extensions/GDThumb/js/gdthumb.js
r30901 r31060 10 10 method: 'crop', 11 11 t: new Array, 12 do_merge: false, 12 13 13 14 // Initialize plugin logic, perform necessary steps … … 20 21 GDThumb.method = method; 21 22 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 26 33 GDThumb.build(); 27 34 jQuery(window).bind('RVTS_loaded', GDThumb.build); -
extensions/GDThumb/main.inc.php
r30901 r31060 2 2 /* 3 3 Plugin Name: gdThumb 4 Version: 1.0.1 54 Version: 1.0.16 5 5 Description: Apply Masonry style to album or image thumbs 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=771 … … 19 19 // | Plugin constants | 20 20 // +-----------------------------------------------------------------------+ 21 define('GDTHUMB_VERSION', '1.0.1 5');21 define('GDTHUMB_VERSION', '1.0.16'); 22 22 define('GDTHUMB_ID', basename(dirname(__FILE__))); 23 define('GDTHEME_PATH' , PHPWG_THEMES_PATH . 'greydragon/');24 23 define('GDTHUMB_PATH' , PHPWG_PLUGINS_PATH . GDTHUMB_ID . '/'); 24 if (!defined('GDTHEME_PATH')): 25 define('GDTHEME_PATH' , PHPWG_THEMES_PATH . 'greydragon/'); 26 endif; 25 27 26 28 if (!isset($conf['gdThumb'])): -
extensions/GDThumb/template/admin.tpl
r30485 r31060 8 8 <li><a href="http://piwigo.org/forum/viewtopic.php?id=24413" target="_blank">{'Support'|@translate}</a> | </li> 9 9 <li><a title="Follow me on Twitter" href="http://twitter.com/greydragon_th" target="_blank">{'Follow'|@translate}</a> | </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> | </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> | </li> 11 11 <li><a href="http://piwigo.org/ext/extension_view.php?eid=771" onclick="return false" target="_blank">{'Download'|@translate}</a></li> 12 12 </ul> … … 84 84 <label for="thumb_metamode">{'Metadata Display Mode'|@translate}</label> 85 85 </li> 86 <li><label><span class="graphicalCheckbox {if $THUMB_ANIMATE}icon-check{else}icon-check-empty{/if}"> </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> 86 87 </ul> 87 88 </fieldset> … … 123 124 {combine_css path=$GDTHEME_PATH|cat:"admin/css/styles.css"} 124 125 {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" } 126 127 {else} 127 128 {html_head}{literal} -
extensions/GDThumb/template/gdthumb_cat.tpl
r30901 r31060 10 10 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 11 11 {/if} 12 <li class="gdthumb ">12 <li class="gdthumb{if $GDThumb.thumb_animate} animate{/if}"> 13 13 {if $GDThumb.thumb_mode_album !== "hide" } 14 14 <span class="thumbLegend {$GDThumb.thumb_mode_album}"> -
extensions/GDThumb/template/gdthumb_thumb.tpl
r30901 r31060 6 6 {assign var=derivative value=$pwg->derivative($GDThumb_derivative_params, $thumbnail.src_image)} 7 7 {assign var=media_type value={media_type file=$thumbnail.file}} 8 {assign var=media_type_name value={$media_type|capitalize:false:true}} 8 9 9 <li class="gdthumb ">10 <li class="gdthumb{if $GDThumb.thumb_animate} animate{/if}"> 10 11 {if $GDThumb.thumb_mode_photo !== "hide" } 11 12 <span class="thumbLegend {$GDThumb.thumb_mode_photo}"> … … 19 20 {assign var="file_name" value=$thumbnail.file|replace:"_":" "} 20 21 {if $file_name|strstr:$file_title} 21 Photo{$thumbnail.id}22 {$media_type_name|@translate} {$thumbnail.id} 22 23 {else} 23 24 {$thumbnail.NAME} … … 38 39 {/if} 39 40 {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> 41 42 {/if} 42 43 </span>
Note: See TracChangeset
for help on using the changeset viewer.