Changeset 18124
- Timestamp:
- Sep 21, 2012, 6:36:42 PM (12 years ago)
- Location:
- extensions/GThumb
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GThumb/admin.php
r15970 r18124 104 104 'cache_big_thumb' => !empty($_POST['cache_big_thumb']), 105 105 'method' => $_POST['method'], 106 'show_thumbnail_caption' => !empty($_POST['show_thumbnail_caption']), 106 107 ); 107 108 … … 150 151 'CACHE_BIG_THUMB' => $params['cache_big_thumb'], 151 152 'METHOD' => $params['method'], 153 'SHOW_THUMBNAIL_CAPTION' => $params['show_thumbnail_caption'], 152 154 'PWG_TOKEN' => get_pwg_token(), 153 155 ) -
extensions/GThumb/config_default.inc.php
r12678 r18124 8 8 'cache_big_thumb' => true, 9 9 'method' => 'crop', 10 'show_thumbnail_caption' => true, 10 11 ); 11 12 -
extensions/GThumb/js/gthumb.js
r13652 r18124 37 37 var round_rest = 0; 38 38 var main_width = jQuery('#thumbnails').width(); 39 var first_thumb = jQuery('#thumbnails img :first');39 var first_thumb = jQuery('#thumbnails img.thumbnail:first'); 40 40 var best_size = {width:1,height:1}; 41 41 -
extensions/GThumb/language/en_UK/plugin.lang.php
r12759 r18124 14 14 $lang['Delete images in GThumb+ cache.'] = 'Delete images in GThumb+ cache.'; 15 15 $lang['Finds images that have not been cached and creates the cached version.'] = 'Finds images that have not been cached and creates the cached version.'; 16 $lang['Show thumbnails caption'] = 'Show thumbnails caption'; 16 17 17 18 ?> -
extensions/GThumb/language/fr_FR/plugin.lang.php
r12759 r18124 14 14 $lang['Delete images in GThumb+ cache.'] = 'Efface les images du cache de GThumb+.'; 15 15 $lang['Finds images that have not been cached and creates the cached version.'] = "Met en cache les images qui n'ont pas encore été crées."; 16 $lang['Show thumbnails caption'] = 'Afficher les légendes des miniatures'; 16 17 17 18 ?> -
extensions/GThumb/main.inc.php
r16318 r18124 33 33 { 34 34 global $conf, $user, $page, $template; 35 36 // new param in 2.4.c 37 if (!isset($conf['GThumb']['show_thumbnail_caption'])) 38 { 39 $conf['GThumb']['show_thumbnail_caption'] = true; 40 conf_update_param('GThumb', serialize($conf['GThumb'])); 41 } 42 35 43 36 44 $template->set_prefilter('index', 'GThumb_prefilter'); … … 40 48 $user['nb_image_page'] = $conf['GThumb']['nb_image_page']; 41 49 $page['nb_image_page'] = $conf['GThumb']['nb_image_page']; 50 $conf['show_thumbnail_caption'] = $conf['GThumb']['show_thumbnail_caption']; 42 51 } 43 52 -
extensions/GThumb/template/admin.tpl
r13653 r18124 25 25 <tr> 26 26 <td align="right">{'Double the size of the first thumbnail'|@translate} : </td> 27 <td>< input type="radio" name="big_thumb" value="1" {if $BIG_THUMB}checked="checked"{/if}> {'Yes'|@translate} 28 < input type="radio" name="big_thumb" value="0" {if !$BIG_THUMB}checked="checked"{/if}> {'No'|@translate}27 <td><label><input type="radio" name="big_thumb" value="1" {if $BIG_THUMB}checked="checked"{/if}> {'Yes'|@translate}</label> 28 <label><input type="radio" name="big_thumb" value="0" {if !$BIG_THUMB}checked="checked"{/if}> {'No'|@translate}</label> 29 29 </td> 30 30 </tr> … … 32 32 <tr> 33 33 <td align="right">{'Cache the big thumbnails (recommended)'|@translate} : </td> 34 <td>< input type="radio" name="cache_big_thumb" value="1" {if $CACHE_BIG_THUMB}checked="checked"{/if}> {'Yes'|@translate} 35 < input type="radio" name="cache_big_thumb" value="0" {if !$CACHE_BIG_THUMB}checked="checked"{/if}> {'No'|@translate}34 <td><label><input type="radio" name="cache_big_thumb" value="1" {if $CACHE_BIG_THUMB}checked="checked"{/if}> {'Yes'|@translate}</label> 35 <label><input type="radio" name="cache_big_thumb" value="0" {if !$CACHE_BIG_THUMB}checked="checked"{/if}> {'No'|@translate}</label> 36 36 </td> 37 37 </tr> … … 39 39 <tr> 40 40 <td align="right">{'Scale thumbnails'|@translate} : </td> 41 <td><input type="radio" name="method" value="crop" {if $METHOD == 'crop'}checked="checked"{/if}> {'Crop'|@translate} 42 <input type="radio" name="method" value="resize" {if $METHOD == 'resize'}checked="checked"{/if}> {'Resize'|@translate} 41 <td><label><input type="radio" name="method" value="crop" {if $METHOD == 'crop'}checked="checked"{/if}> {'Crop'|@translate}</label> 42 <label><input type="radio" name="method" value="resize" {if $METHOD == 'resize'}checked="checked"{/if}> {'Resize'|@translate}</label> 43 </td> 44 </tr> 45 46 <tr> 47 <td align="right">{'Show thumbnails caption'|@translate} : </td> 48 <td><label><input type="radio" name="show_thumbnail_caption" value="1" {if $SHOW_THUMBNAIL_CAPTION}checked="checked"{/if}> {'Yes'|@translate}</label> 49 <label><input type="radio" name="show_thumbnail_caption" value="0" {if !$SHOW_THUMBNAIL_CAPTION}checked="checked"{/if}> {'No'|@translate}</label> 43 50 </td> 44 51 </tr> -
extensions/GThumb/template/gthumb.css
r12731 r18124 13 13 #thumbnails .gthumb a { 14 14 position: absolute; 15 z-index:0; 15 16 } 16 17 17 #thumbnails .gthumb img.thumbnail,18 #thumbnails .gthumb img.thumbnail:hover {18 #thumbnails .gthumb a img.thumbnail, 19 #thumbnails .gthumb a img.thumbnail:hover { 19 20 border: 0 none; 20 21 margin: 0; … … 22 23 top: 0; 23 24 } 25 26 #thumbnails .thumbLegend { 27 display:none; 28 position:absolute; 29 z-index:100; 30 top:50%; 31 margin-top:-20px; 32 height:30px; 33 padding:5px 0; 34 width:100%; 35 background:rgba(0,0,0,0.7); 36 text-align:center; 37 vertical-align:middle; 38 overflow:hidden; 39 box-shadow:0 0 3px rgb(0,0,0); 40 color:aaa; 41 } 42 #thumbnails .gthumb:hover .thumbLegend { 43 display:block; 44 } 45 #thumbnails .thumbLegend .thumbName { 46 display:block; 47 vertical-align:middle; 48 font-weight:bold; 49 color:#eee; 50 } -
extensions/GThumb/template/gthumb.tpl
r13652 r18124 3 3 {assign var=derivative value=$pwg->derivative($GThumb_derivative_params, $thumbnail.src_image)} 4 4 <li class="gthumb"> 5 {if $SHOW_THUMBNAIL_CAPTION } 6 <span class="thumbLegend"> 7 <span class="thumbName"> 8 {$thumbnail.NAME} 9 {if !empty($thumbnail.icon_ts)} 10 <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)"> 11 {/if} 12 </span> 13 {if isset($thumbnail.NB_COMMENTS)} 14 <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> 15 {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} 16 </span> 17 {/if} 18 {if isset($thumbnail.NB_HITS)} 19 <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> 20 {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} 21 </span> 22 {/if} 23 </span> 24 {/if} 5 25 <a href="{$thumbnail.URL}"> 6 26 <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" {$derivative->get_size_htm()}>
Note: See TracChangeset
for help on using the changeset viewer.