Changeset 29398
- Timestamp:
- Sep 4, 2014, 10:52:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/template/slideshow.tpl
r29397 r29398 30 30 data-allowfullscreen="{$Fotorama['allowfullscreen']}" data-autoplay="{if $Fotorama['autoplay']}true{else}false{/if}" 31 31 data-transition="{$Fotorama['transition']}" data-stopautoplayontouch="{if $Fotorama['stopautoplayontouch']}true{else}false{/if}" 32 data-loop="{if $Fotorama['loop']}true{else}false{/if}" >32 data-loop="{if $Fotorama['loop']}true{else}false{/if}" data-captions="false"> 33 33 {foreach from=$items item=thumbnail} 34 34 <a href="{$thumbnail['derivative']->get_url()}" 35 data-full="{$thumbnail['derivative_big']->get_url()}" data-url="{$thumbnail['url']}" data- title="{$thumbnail['TITLE']}"{if $Fotorama['enable_caption']} data-caption="{$thumbnail['TITLE']}"{/if}>35 data-full="{$thumbnail['derivative_big']->get_url()}" data-url="{$thumbnail['url']}" data-caption="{$thumbnail['TITLE']}"> 36 36 {if $Fotorama['nav'] == 'thumbs' || $Fotorama['fullscreen_nav'] == 'thumbs'}<img src="{$thumbnail['derivative_thumb']->get_url()}">{/if} 37 37 </a> … … 52 52 history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow='); 53 53 jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']); 54 jQuery('#slideshow .showtitle').text(fotorama.activeFrame[' title']);54 jQuery('#slideshow .showtitle').text(fotorama.activeFrame['caption']); 55 55 jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal}); 56 document.title = fotorama.activeFrame[' title'] + ' | {/literal}{$GALLERY_TITLE|@escape:javascript}{literal}';56 document.title = fotorama.activeFrame['caption'] + ' | {/literal}{$GALLERY_TITLE|@escape:javascript}{literal}'; 57 57 } 58 58 } … … 61 61 function (e, fotorama, extra) { 62 62 fotorama.setOptions({ 63 nav: "{/literal}{$Fotorama['fullscreen_nav']}{literal}" 63 nav: "{/literal}{$Fotorama['fullscreen_nav']}{literal}", 64 {/literal}{if $Fotorama['enable_caption']}{literal} 65 captions: "true", 66 {/literal}{/if}{literal} 64 67 }); 65 68 fotorama.startAutoplay(); … … 76 79 77 80 fotorama.setOptions({ 78 nav: "{/literal}{$Fotorama['nav']}{literal}" 81 nav: "{/literal}{$Fotorama['nav']}{literal}", 82 {/literal}{if $Fotorama['enable_caption']}{literal} 83 captions: "false", 84 {/literal}{/if}{literal} 79 85 }); 80 86 81 87 history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow='); 82 88 jQuery('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']); 83 jQuery('#slideshow .showtitle').text(fotorama.activeFrame[' title']);89 jQuery('#slideshow .showtitle').text(fotorama.activeFrame['caption']); 84 90 jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal}); 85 document.title = fotorama.activeFrame[' title'] + ' | {/literal}{$GALLERY_TITLE|@escape:javascript}{literal}';91 document.title = fotorama.activeFrame['caption'] + ' | {/literal}{$GALLERY_TITLE|@escape:javascript}{literal}'; 86 92 87 93 fullscreen = false;
Note: See TracChangeset
for help on using the changeset viewer.