Changeset 29915 for extensions/Fotorama/template
- Timestamp:
- Oct 7, 2014, 2:02:08 PM (10 years ago)
- Location:
- extensions/Fotorama/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/template/admin.tpl
r29732 r29915 87 87 <b>{'Thumbnail height (when present)'|translate}</b> 88 88 </label> 89 <input type="number" size="2" maxlength="3" name="thumbheight" value="{$Fotorama.thumbheight}" min="5" max="300" style="width: 50px;"> px89 <input type="number" size="2" maxlength="3" name="thumbheight" id="thumbheight" value="{$Fotorama.thumbheight}" min="5" max="300" style="width: 50px;"> px 90 90 </li> 91 91 <li> … … 100 100 <b>{'Enables autoplay'|translate}</b> 101 101 </label> 102 </li> 103 <li> 104 <label for="period"> 105 <b>{'Waiting time before loading a new picture'|translate}</b> 106 </label> 107 <input type="number" size="4" maxlength="5" name="period" id="period" value="{$Fotorama.period}" min="0" max="10000" style="width: 50px;"> {'milliseconds'|translate} 102 108 </li> 103 109 <li> … … 181 187 jQuery('#replace_picture_only_users').removeAttr('checked'); 182 188 } 189 190 if(jQuery('#autoplay').is(":checked")) { 191 jQuery('#period').prop('disabled', false); 192 } 193 else { 194 jQuery('#period').prop('disabled', true); 195 } 183 196 } 184 197 jQuery().ready(function() { … … 197 210 update_Fotorama_state(); 198 211 }); 212 jQuery('#autoplay').change(function() { 213 update_Fotorama_state(); 214 }); 199 215 200 216 {/literal}{/footer_script} -
extensions/Fotorama/template/fotorama-content.tpl
r29914 r29915 9 9 data-width="100%" data-maxheight="100%" data-minheight="200" data-height="{$item_height}" 10 10 data-shadows="{if $Fotorama.shadows}true{else}false{/if}" data-nav="{$Fotorama.nav}" data-fit="{$Fotorama.fit}" 11 data-allowfullscreen="{$Fotorama.allowfullscreen}" data-autoplay="{if $Fotorama.autoplay} true{else}false{/if}"11 data-allowfullscreen="{$Fotorama.allowfullscreen}" data-autoplay="{if $Fotorama.autoplay}{$Fotorama.period}{else}false{/if}" 12 12 data-transition="{$Fotorama.transition}" data-stopautoplayontouch="{if $Fotorama.stopautoplayontouch}true{else}false{/if}" 13 13 data-loop="{if $Fotorama.loop}true{else}false{/if}" data-captions="false" data-thumbheight="{$Fotorama.thumbheight}" … … 56 56 }); 57 57 {if $Fotorama.autoplay or not $Fotorama.only_fullscreen} 58 fotorama.startAutoplay();58 // fotorama.startAutoplay(); 59 59 {/if} 60 60 … … 116 116 }); 117 117 {/if} 118 119 {if $Fotorama.autoplay} 120 $(document).keypress(function(e) { 121 if(e.which == 43) { 122 jQuery('.fotorama').data('fotorama').setOptions({ 123 autoplay: jQuery('.fotorama').data('fotorama').options['autoplay'] * 1.4 124 }); 125 } 126 if(e.which == 45) { 127 jQuery('.fotorama').data('fotorama').setOptions({ 128 autoplay: jQuery('.fotorama').data('fotorama').options['autoplay'] / 1.4 129 }); 130 } 131 }); 132 {/if} 118 133 {/footer_script}
Note: See TracChangeset
for help on using the changeset viewer.