Ignore:
Timestamp:
Feb 12, 2014, 3:11:45 PM (10 years ago)
Author:
JanisV
Message:

Disable history update only in native full-screen mode
Hide thumbnails in full-screen mode, hide thumbnails in non full-screen mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/template/slideshow.tpl

    r27201 r27342  
    3434        <a href="{$thumbnail['derivative']->get_url()}"
    3535          data-full="{$thumbnail['derivative_big']->get_url()}" data-url="{$thumbnail['url']}" data-title="{$thumbnail['TITLE']}">
    36           {if $Fotorama['nav'] == 'thumbs'}<img src="{$thumbnail['derivative_thumb']->get_url()}">{/if}
     36          {if $Fotorama['nav'] == 'thumbs' || $Fotorama['fullscreen_nav'] == 'thumbs'}<img src="{$thumbnail['derivative_thumb']->get_url()}">{/if}
    3737        </a>
    3838      {/foreach}
     
    6060        .on('fotorama:fullscreenenter',
    6161            function (e, fotorama, extra) {
    62               fullscreen = true;
     62              fotorama.setOptions({
     63                nav: "{/literal}{$Fotorama['fullscreen_nav']}{literal}"
     64              });
    6365              fotorama.startAutoplay();
     66
     67              if (jQuery('.fotorama').attr('data-allowfullscreen') == 'native')
     68                fullscreen = true;
    6469            }
    6570        )
    6671        .on('fotorama:fullscreenexit',
    6772            function (e, fotorama, extra) {
    68               fullscreen = false;
     73              fotorama.setOptions({
     74                nav: "{/literal}{$Fotorama['nav']}{literal}"
     75              });
    6976
    7077              history.replaceState(null, null, fotorama.activeFrame['url']+'&slideshow=');
     
    7380              jQuery('#slideshow .imageNumber').text((fotorama.activeFrame['i'])+'/'+{/literal}{count($items)}{literal});
    7481              document.title = fotorama.activeFrame['title'] + ' | {/literal}{$GALLERY_TITLE}{literal}';
     82
     83              fullscreen = false;
    7584            }
    7685        )
Note: See TracChangeset for help on using the changeset viewer.