Ignore:
Timestamp:
Jul 10, 2011, 4:36:46 PM (13 years ago)
Author:
flop25
Message:

omg i did it ! dynamic generation of thumbnails.tpl
admin page for width and this dynamic generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/local_head.tpl

    r11679 r11699  
    11{if ($BODY_ID=='theCategoryPage')}
    22{combine_script id='jquery.masonry' load='header' require='jquery' path='themes/stripped_black_bloc/js/masonry.js'}
    3 {html_head}{literal}
     3{html_head}{literal}
     4<style>
     5.bloc {
     6        width: {/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
     7}
     8.bloc a {
     9        max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
     10}
     11</style>
     12
    413<script type="text/javascript">
    514/**
     
    4453    return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
    4554};
     55
     56    // MASONRY
     57
    4658function tnb_resize() {
    4759        $('#subcontent').masonry({
    48                 columnWidth: 170,
     60                columnWidth: {/literal} {if $stripped_black_bloc.column_width}{$stripped_black_bloc.column_width}{/if}{literal},
    4961                itemSelector: '.bloc, .content_block, .bloc_stuff',
    5062                isAnimated: true
    5163        });
    5264}
     65
     66
    5367jQuery(document).ready(function(jQuery){
     68
     69        // fade onmouseover
    5470        jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     71
     72        // sidemenu managment
    5573        var sidemenu = jQuery.cookie('side-menu');
    5674        var isdisplayed;
Note: See TracChangeset for help on using the changeset viewer.