Changeset 27343


Ignore:
Timestamp:
Feb 12, 2014, 4:41:39 PM (10 years ago)
Author:
JanisV
Message:

New mode: only fullscreen

Location:
extensions/Fotorama
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/admin.php

    r27342 r27343  
    99  $conf['Fotorama'] = array(
    1010    'shadows' => isset($_POST['shadows']),
     11    'only_fullscreen' => isset($_POST['only_fullscreen']),
    1112    'autoplay' => isset($_POST['autoplay']),
    1213    'stopautoplayontouch' => isset($_POST['stopautoplayontouch']),
  • extensions/Fotorama/language/en_UK/plugin.lang.php

    r27342 r27343  
    1111$lang['Enables loop'] = 'Enables loop';
    1212$lang['Fullscreen navigation style'] = 'Fullscreen navigation style';
     13$lang['Only fullscreen mode'] = 'Only fullscreen mode';
    1314
    1415?>
  • extensions/Fotorama/language/ru_RU/plugin.lang.php

    r27342 r27343  
    1111$lang['Enables loop'] = 'Показывать в цикле';
    1212$lang['Fullscreen navigation style'] = 'Стиль навигации в полноэкранном режиме';
     13$lang['Only fullscreen mode'] = 'только полноэкранный режим';
    1314
    1415?>
  • extensions/Fotorama/main.inc.php

    r27201 r27343  
    22/*
    33Plugin Name: Fotorama
    4 Version: 2.6.f
     4Version: 2.6.g
    55Description: Fotorama based full-screen slideshow
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=727
  • extensions/Fotorama/maintain.inc.php

    r27342 r27343  
    1717    'nav' => 'false',
    1818    'fullscreen_nav' => 'false',
     19    'only_fullscreen' => 'true',
    1920  );
    2021
  • extensions/Fotorama/template/admin.tpl

    r27342 r27343  
    1717      <option value="native"{if $Fotorama.allowfullscreen == 'native'} selected{/if}>{'native'|@translate}</option>
    1818    </select>
     19  </li>
     20  <li>
     21    <input type="checkbox" id="only_fullscreen" name="only_fullscreen"{if $Fotorama.only_fullscreen} checked="checked"{/if}>
     22    <label for="only_fullscreen">
     23      <b>{'Only fullscreen mode'|@translate}</b>
     24    </label>
    1925  </li>
    2026  <li>
  • extensions/Fotorama/template/slideshow.tpl

    r27342 r27343  
    4444{footer_script require='jquery'}{literal}
    4545  var fullscreen = false;
    46   jQuery().ready(function() { 
     46  jQuery().ready(function() {
    4747    jQuery('.fotorama')
    4848        // Listen to the events
     
    7171        .on('fotorama:fullscreenexit',
    7272            function (e, fotorama, extra) {
     73              {/literal}{if $Fotorama['only_fullscreen']}{literal}
     74              window.location.replace(fotorama.activeFrame['url']);
     75              {/literal}{else}{literal}
     76
    7377              fotorama.setOptions({
    7478                nav: "{/literal}{$Fotorama['nav']}{literal}"
     
    8286
    8387              fullscreen = false;
     88              {/literal}{/if}{literal}
    8489            }
    8590        )
    8691        // Initialize fotorama manually
    8792        .fotorama();
     93     
     94      {/literal}{if $Fotorama['only_fullscreen']}{literal}
     95      jQuery('.fotorama').data('fotorama').requestFullScreen();
     96      {/literal}{/if}{literal}
    8897  });
    8998{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.