source: extensions/Fotorama/template/slideshow.tpl @ 27185

Last change on this file since 27185 was 27185, checked in by JanisV, 10 years ago

Removed debug output

File size: 2.2 KB
Line 
1{combine_css path="plugins/Fotorama/fotorama/fotorama.css"}
2{combine_script id='fotorama' require='jquery' load='header' path='plugins/Fotorama/fotorama/fotorama.js'}
3
4<div id="slideshow">
5        <div id="imageHeaderBar">
6          <div class="browsePath">
7                {if isset($U_SLIDESHOW_STOP) }
8                [ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ]
9                {/if}
10                        <h2 class="showtitle">{$current.TITLE}</h2>
11          </div>
12        </div>
13
14        <div id="imageToolBar">
15          <div class="imageNumber">{$PHOTO}</div>
16        </div>
17
18        <div id="content">
19        <div id="theImage">
20      <div class="fotorama" data-startindex="{$current_rank}" data-ratio="16/9" data-auto="false"
21        data-width="100%" data-maxheight="100%" data-minheight="200" data-height="{$item_height}"
22        data-shadows="{$Fotorama['shadows']}" data-nav="{$Fotorama['nav']}" data-fit="{$Fotorama['fit']}"
23        data-allowfullscreen="{$Fotorama['allowfullscreen']}" data-autoplay="{if $Fotorama['autoplay']}true{else}false{/if}"
24        data-transition="{$Fotorama['transition']}" data-stopautoplayontouch="{$Fotorama['stopautoplayontouch']}"
25        data-loop="{$Fotorama['stopautoplayontouch']}">
26      {foreach from=$items item=thumbnail}
27        <a href="{$thumbnail['derivative']->get_url()}"
28          data-full="{$thumbnail['derivative_big']->get_url()}" data-url="{$thumbnail['url']}" data-title="{$thumbnail['TITLE']}">
29          {if $Fotorama['nav'] == 'thumbs'}<img src="{$thumbnail['derivative_thumb']->get_url()}">{/if}
30        </a>
31      {/foreach}
32      </div>
33        </div>
34        </div>
35<div>
36
37<script>
38  $(function () {
39    $('.fotorama')
40        // Listen to the events
41        .on('fotorama:showend ',
42            function (e, fotorama, extra) {
43              history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow=');
44              $('#slideshow .browsePath a').attr('href', fotorama.activeFrame['url']);
45              $('#slideshow .showtitle').text(fotorama.activeFrame['title']);
46              document.title = fotorama.activeFrame['title'] + ' | {$GALLERY_TITLE}';
47              $('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{count($items)});
48            }
49        )
50        // Initialize fotorama manually
51        .fotorama();
52  });
53</script>
Note: See TracBrowser for help on using the repository browser.