Changeset 30052 for extensions/Fotorama/template
- Timestamp:
- Oct 14, 2014, 9:25:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/template/fotorama-content.tpl
r29984 r30052 34 34 if (history.replaceState) 35 35 history.replaceState(null, null, fotorama.activeFrame['url']+(fotorama.activeFrame['url'].indexOf('?')==-1 ? '?' : '&')+'slideshow='); 36 jQuery('#slideshow .browsePath a ').attr('href', fotorama.activeFrame['url']);36 jQuery('#slideshow .browsePath a,a.fotorama__close-icon').attr('href', fotorama.activeFrame['url']); 37 37 {/if} 38 38 … … 40 40 41 41 jQuery('#slideshow .showtitle').text(fotorama.activeFrame['caption']); 42 jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/{count($items)}'); 42 var idx = fotorama.activeIndex; 43 {if isset($view_offset)} 44 if (idx >= {$view_offset.from}) 45 idx += {$view_offset.offset}; 46 {/if} 47 jQuery('#slideshow .imageNumber').text((idx+1)+'/{$TOTAL_ITEMS}'); 43 48 document.title = fotorama.activeFrame['caption'] + ' | {$GALLERY_TITLE|escape:javascript}'; 44 49 } … … 48 53 jQuery('.fotorama') 49 54 // Listen to the events 50 .on('fotorama:showend 55 .on('fotorama:showend', 51 56 function (e, fotorama, extra) { 52 57 if (!fullscreen) { 53 58 update_picture(fotorama); 54 59 } 60 {if !empty($view_borders)} 61 {if $view_borders[0] < $view_borders[1]} 62 if (fotorama.activeIndex <= {$view_borders[0]}{if $Fotorama_has_thumbs}+5{/if} || 63 fotorama.activeIndex >= {$view_borders[1]}{if $Fotorama_has_thumbs}-5{/if} ) 64 {else} 65 if (fotorama.activeIndex <= {$view_borders[0]}{if $Fotorama_has_thumbs}+5{/if} && 66 fotorama.activeIndex >= {$view_borders[1]}{if $Fotorama_has_thumbs}-5{/if} ) 67 {/if} 68 { 69 fotorama.stopAutoplay(); 70 var url = fotorama.activeFrame.url + (fotorama.activeFrame.url.indexOf('?')==-1 ? '?' : '&')+'slideshow='; 71 {if !$Fotorama.only_fullscreen} 72 if (fullscreen) url += "&fullscreen"; 73 {/if} 74 window.location = url; 75 } 76 {/if} 55 77 } 56 78 ) … … 108 130 {/if} 109 131 url: "{$thumbnail.url}" 132 {if !empty($thumbnail.video)} 133 ,video:"{$thumbnail.video}"{if !empty($thumbnail.video_id)},id:"{$thumbnail.video_id}"{/if} 134 {/if} 110 135 },{/foreach} 111 136 ] … … 121 146 jQuery('html,body').animate({ scrollTop: jQuery('.fotorama').offset().top }, 'slow'); 122 147 {/if} 148 {if isset($smarty.get.fullscreen)} 149 jQuery('.fotorama').data('fotorama').requestFullScreen(); 150 {/if} 123 151 {/if} 124 152
Note: See TracChangeset
for help on using the changeset viewer.