Changeset 25981 for extensions/Wood/template/thumbnails.tpl
- Timestamp:
- Dec 17, 2013, 4:51:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Wood/template/thumbnails.tpl
r21060 r25981 1 {define_derivative name='derivative_params' type='xsmall'} 1 2 {if !empty($thumbnails)}{strip} 2 3 … … 41 42 42 43 <div class="thumbContent"> 43 <div id="containerThumb" class="clearfix">44 <div id="containerThumb"> 44 45 45 46 {foreach from=$thumbnails item=thumbnail} … … 90 91 </div> 91 92 {footer_script require='jquery'}{literal} 92 window.onload = function() { 93 var wall1 = new Masonry( document.getElementById('container'), { 94 gutterWidth: 10, 95 isFitWidth: true 96 }); 97 var wall2 = new Masonry( document.getElementById('containerThumb'), { 98 gutterWidth: 10, 99 isFitWidth: true 100 }); 93 $(function(){ 101 94 102 }; 95 var $container = $('#containerThumb'); 96 97 $container.imagesLoaded( function(){ 98 $container.masonry({ 99 itemSelector : '.box', 100 isFitWidth: true 101 }); 102 }); 103 104 }); 103 105 {/literal}{/footer_script} 104 106 </div>
Note: See TracChangeset
for help on using the changeset viewer.