Changeset 16308 for extensions
- Timestamp:
- Jul 2, 2012, 11:49:04 PM (12 years ago)
- Location:
- extensions/stripped-galleria
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped-galleria/readme.txt
r16307 r16308 11 11 Several options are available on the configuration page. 12 12 13 Changelog 13 Changelog 14 14 --------- 15 16 *** version 1.4.0 17 - update for piwigo 2.4 15 18 16 19 *** version 1.3.3 -
extensions/stripped-galleria/template/thumbnails.tpl
r16306 r16308 1 1 {if !empty($thumbnails)} 2 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 3 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 2 4 {php} 3 5 global $stripped, $strippedgalleria, $page; … … 13 15 {literal} 14 16 var data = [ 15 {/literal}{foreach from=$thumbnails item=thumbnail name=thumb}{literal} 17 {/literal}{foreach from=$thumbnails item=thumbnail name=thumb} 18 {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)} 19 {assign var=my value=$pwg->derivative('xlarge', $thumbnail.src_image)}{literal} 16 20 { 17 thumb: '{/literal}{$thumbnail.TN_SRC}{literal}', 18 image: '{/literal}{$thumbnail.FILE_PATH}{literal}', 19 big: '{/literal}{if (($thumbnail.FILE_HAS_HD) && ($strippedgalleria.lightbox == 'hd'))}{$thumbnail.HD_PATH}{else}{$thumbnail.FILE_PATH}{/if}{literal}', 21 thumb: '{/literal}{$derivative->get_url()}{literal}', 22 image: '{/literal}{$my->get_url()}{literal}', 20 23 title: '{/literal}{$thumbnail.NAME|strip_tags:false|replace:'\'':'''|replace:'"':'"'|nl2br|regex_replace:"/[\r\n]/":""}{literal}', 21 24 description: '{/literal}{$thumbnail.FILE_DESC|strip_tags:false|replace:'\'':'''|replace:'"':'"'|nl2br|regex_replace:"/[\r\n]/":""}{literal}', 22 piwigo_id: {/literal}{$thumbnail.ID}{literal}, 23 piwigo_hashd: {/literal}{if ($thumbnail.FILE_HAS_HD)}true{else}false{/if}{literal} 25 piwigo_id: {/literal}{$thumbnail.id}{literal} 24 26 }{/literal}{if (!$smarty.foreach.thumb.last)},{/if} 25 27 {/foreach}{literal} … … 46 48 var gid = e.index; 47 49 var pid = this.getData(gid).piwigo_id; 48 var hashd = this.getData(gid).piwigo_hashd; 49 if (hashd) { 50 jQuery("#downloadlink").show(); 51 jQuery("#downloadlink").prop("href","action.php?id="+pid+"&part=h"); 52 } else { 53 jQuery("#downloadlink").hide(); 54 } 50 jQuery("#downloadlink").hide(); 55 51 jQuery.post("{/literal}{$get_root_url}{literal}themes/stripped-galleria/save_history.php", { 56 52 imgid: "img-"+pid, … … 66 62 var gid=parseInt(jQuery(".galleria-lightbox-counter").text())-1; 67 63 var pid = this.getData(gid).piwigo_id; 68 var hashd = this.getData(gid).piwigo_hashd;69 64 jQuery.post("{/literal}{$get_root_url}{literal}themes/stripped-galleria/save_history.php", { 70 65 imgid: "img-"+pid, -
extensions/stripped-galleria/themeconf.inc.php
r12975 r16308 33 33 34 34 // adresse image HD depuis thumbs 35 35 /* 36 36 add_event_handler('loc_end_index_thumbnails', 'add_thumbnails_high_url', 50, 2); 37 37 function add_thumbnails_high_url($tpl_var, $pictures) … … 48 48 } 49 49 50 50 */ 51 51 ?>
Note: See TracChangeset
for help on using the changeset viewer.