Changeset 29732 for extensions/Fotorama
- Timestamp:
- Sep 22, 2014, 1:53:23 PM (10 years ago)
- Location:
- extensions/Fotorama
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/admin.php
r29730 r29732 18 18 'clicktransition_crossfade' => isset($_POST['clicktransition_crossfade']), 19 19 'close_button' => isset($_POST['close_button']), 20 'resize' => isset($_POST['resize']), 20 21 ); 21 22 if (isset($_POST['allowfullscreen'])) -
extensions/Fotorama/language/en_UK/plugin.lang.php
r29730 r29732 18 18 $lang['Use crossfade transition on click'] = 'Use crossfade transition on click'; 19 19 $lang['Add close button'] = 'Add close button'; 20 $lang['Resize to fit window'] = 'Resize to fit window'; 20 21 21 22 ?> -
extensions/Fotorama/language/ru_RU/plugin.lang.php
r29730 r29732 18 18 $lang['Use crossfade transition on click'] = 'Использовать стиль перехода crossfade при щелчке'; 19 19 $lang['Add close button'] = 'Добавить кнопку закрытия'; 20 $lang['Resize to fit window'] = 'Изменить размер по размеру окна'; 20 21 21 22 ?> -
extensions/Fotorama/main.inc.php
r29730 r29732 45 45 if (!isset($conf['Fotorama']['close_button'])) { 46 46 $conf['Fotorama']['close_button'] = false; 47 $conf['Fotorama']['resize'] = false; 47 48 } 48 49 … … 107 108 if ($skip >= 0) 108 109 $big_type = $def_type; 109 if ($skip >= 1 )110 if ($skip >= 1 and $conf['Fotorama']['resize']) 110 111 $next_type = $def_type; 111 112 if ($skip == 0) -
extensions/Fotorama/maintain.inc.php
r29730 r29732 24 24 'clicktransition_crossfade' => true, 25 25 'close_button' => false, 26 'resize' => false, 26 27 ); 27 28 -
extensions/Fotorama/template/admin.tpl
r29730 r29732 22 22 <label for="only_fullscreen"> 23 23 <b>{'Only fullscreen mode'|translate}</b> 24 </label> 25 </li> 26 <li> 27 <input type="checkbox" id="resize" name="resize"{if $Fotorama.resize} checked="checked"{/if}> 28 <label for="resize"> 29 <b>{'Resize to fit window'|translate}</b> 24 30 </label> 25 31 </li> … … 153 159 if(jQuery('#only_fullscreen').is(":checked")) { 154 160 jQuery('#nav').prop('disabled', true); 161 jQuery('#resize').prop('disabled', true); 155 162 } 156 163 else { 157 164 jQuery('#nav').prop('disabled', false); 165 jQuery('#resize').prop('disabled', false); 158 166 } 159 167 -
extensions/Fotorama/template/fotorama-content.tpl
r29730 r29732 99 99 jQuery('.fotorama').data('fotorama').requestFullScreen(); 100 100 {else} 101 jQuery('.fotorama').data('fotorama').resize({ 102 height: jQuery(window).height() 103 }); 101 {if $Fotorama.resize} 102 jQuery('.fotorama').data('fotorama').resize({ 103 height: jQuery(window).height() 104 }); 105 jQuery('html,body').animate({ scrollTop: jQuery('.fotorama').offset().top }, 'slow'); 106 {/if} 104 107 {/if} 105 108 106 $('html,body').animate({ scrollTop: jQuery('.fotorama').offset().top }, 'slow');107 109 }); 108 110
Note: See TracChangeset
for help on using the changeset viewer.