Changeset 27343
- Timestamp:
- Feb 12, 2014, 4:41:39 PM (10 years ago)
- Location:
- extensions/Fotorama
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/admin.php
r27342 r27343 9 9 $conf['Fotorama'] = array( 10 10 'shadows' => isset($_POST['shadows']), 11 'only_fullscreen' => isset($_POST['only_fullscreen']), 11 12 'autoplay' => isset($_POST['autoplay']), 12 13 'stopautoplayontouch' => isset($_POST['stopautoplayontouch']), -
extensions/Fotorama/language/en_UK/plugin.lang.php
r27342 r27343 11 11 $lang['Enables loop'] = 'Enables loop'; 12 12 $lang['Fullscreen navigation style'] = 'Fullscreen navigation style'; 13 $lang['Only fullscreen mode'] = 'Only fullscreen mode'; 13 14 14 15 ?> -
extensions/Fotorama/language/ru_RU/plugin.lang.php
r27342 r27343 11 11 $lang['Enables loop'] = 'Показывать в цикле'; 12 12 $lang['Fullscreen navigation style'] = 'Стиль навигации в полноэкранном режиме'; 13 $lang['Only fullscreen mode'] = 'только полноэкранный режим'; 13 14 14 15 ?> -
extensions/Fotorama/main.inc.php
r27201 r27343 2 2 /* 3 3 Plugin Name: Fotorama 4 Version: 2.6. f4 Version: 2.6.g 5 5 Description: Fotorama based full-screen slideshow 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=727 -
extensions/Fotorama/maintain.inc.php
r27342 r27343 17 17 'nav' => 'false', 18 18 'fullscreen_nav' => 'false', 19 'only_fullscreen' => 'true', 19 20 ); 20 21 -
extensions/Fotorama/template/admin.tpl
r27342 r27343 17 17 <option value="native"{if $Fotorama.allowfullscreen == 'native'} selected{/if}>{'native'|@translate}</option> 18 18 </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> 19 25 </li> 20 26 <li> -
extensions/Fotorama/template/slideshow.tpl
r27342 r27343 44 44 {footer_script require='jquery'}{literal} 45 45 var fullscreen = false; 46 jQuery().ready(function() { 46 jQuery().ready(function() { 47 47 jQuery('.fotorama') 48 48 // Listen to the events … … 71 71 .on('fotorama:fullscreenexit', 72 72 function (e, fotorama, extra) { 73 {/literal}{if $Fotorama['only_fullscreen']}{literal} 74 window.location.replace(fotorama.activeFrame['url']); 75 {/literal}{else}{literal} 76 73 77 fotorama.setOptions({ 74 78 nav: "{/literal}{$Fotorama['nav']}{literal}" … … 82 86 83 87 fullscreen = false; 88 {/literal}{/if}{literal} 84 89 } 85 90 ) 86 91 // Initialize fotorama manually 87 92 .fotorama(); 93 94 {/literal}{if $Fotorama['only_fullscreen']}{literal} 95 jQuery('.fotorama').data('fotorama').requestFullScreen(); 96 {/literal}{/if}{literal} 88 97 }); 89 98 {/literal}{/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.