Changeset 25981 for extensions/Wood/template/mainpage_categories.tpl
- Timestamp:
- Dec 17, 2013, 4:51:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Wood/template/mainpage_categories.tpl
r18813 r25981 1 {define_derivative name='derivative_params' type='xsmall'} 1 2 {html_style} 2 3 3 {if $derivative_params->max_width() > 600} 4 4 .thumbLegend {ldelim}font-size: 130%} … … 14 14 <div class="thumbContent"> 15 15 16 <div id="container" 16 <div id="container"> 17 17 18 18 {foreach from=$category_thumbnails item=cat name=cat_loop} 19 <div class="box photo colMainpage"> 20 <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 19 <div class="box {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 21 20 <div class="thumbnailCategory"> 22 21 <div class="illustration"> … … 44 43 </div> 45 44 </div> 46 </li>47 45 </div> 48 46 {/foreach} … … 51 49 </div> 52 50 {footer_script require='jquery'}{literal} 53 window.onload = function() { 54 var wall1 = new Masonry( document.getElementById('container'), { 55 gutterWidth: 10, 56 isFitWidth: true, 57 }); 58 var wall2 = new Masonry( document.getElementById('containerThumb'), { 59 gutterWidth: 10, 60 isFitWidth: true, 61 }); 51 $(function(){ 62 52 63 }; 53 var $container = $('#container'); 54 55 $container.imagesLoaded( function(){ 56 $container.masonry({ 57 itemSelector : '.box', 58 isFitWidth: true 59 }); 60 }); 61 62 }); 64 63 {/literal}{/footer_script} 65 64 </div>
Note: See TracChangeset
for help on using the changeset viewer.