Ignore:
Timestamp:
Dec 17, 2013, 4:51:31 PM (10 years ago)
Author:
Miklfe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Wood/template/mainpage_categories.tpl

    r18813 r25981  
     1{define_derivative name='derivative_params' type='xsmall'}
    12{html_style}
    2 
    33{if $derivative_params->max_width() > 600}
    44.thumbLegend {ldelim}font-size: 130%}
     
    1414<div class="thumbContent">
    1515
    16 <div id="container" >
     16<div id="container">
    1717
    1818{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}">
    2120                <div class="thumbnailCategory">
    2221                        <div class="illustration">
     
    4443                        </div>
    4544                </div>
    46         </li>
    4745        </div>
    4846{/foreach}
     
    5149</div>
    5250{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(){
    6252
    63                         };
     53    var $container = $('#container');
     54 
     55    $container.imagesLoaded( function(){
     56      $container.masonry({
     57        itemSelector : '.box',
     58                isFitWidth: true
     59      });
     60    });
     61 
     62  });
    6463{/literal}{/footer_script}
    6564</div>
Note: See TracChangeset for help on using the changeset viewer.