Ignore:
Timestamp:
Jan 21, 2010, 9:32:59 PM (14 years ago)
Author:
vdigital
Message:

[Update] - Juza Theme is full working (Not tested with plugins).

Recommended organization: Don't mixed Pictures and subcategories in a category.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/script.tpl

    r4659 r4716  
    1   {*known_script id="jquery" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"*}
    21  {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    32  {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
     
    76<style type="text/css">
    87.maxIllustration a {ldelim} max-height: {$Juza_height}px; height: {$Juza_height}px; width:{$Juza_width}px; }
    9 .bigImg {ldelim} top:{$Juza_shift}px; width:{$Juza_width}px !important; }
     8.bigImg {ldelim} width:{$Juza_width}px !important; }
    109#imageToolBar {ldelim} top:{$Juza_shift2}px; }
    11 .content ul.thumbnailCategories li.Juza-cat {ldelim} height:{$Juza_height2}px; min-height:{$Juza_height2}px; width: 100%; }
    12 .content div.thumbnailCategory div.Juza-desc {ldelim} height:{$Juza_height3}px !important; top:{$Juza_shift3}px; }
     10.content ul.thumbnailCategories li.Juza-cat {ldelim} width: 100%; }
    1311</style>
    14 
     12  {/html_head}
    1513<script type="text/javascript">
    16 $().ready(function() {ldelim}
     14$('div.illustration a img').ready(function() {ldelim}
    1715  $('div.illustration a img').each(function() {ldelim}
    18     $(this).ready(function() {ldelim}
    19       var $h = $(this).height();
    20       {if isset($Juza_Auto_CS)}if ($h  < {$Juza_height}) /* Kill Auto crop */ {/if} {literal} {
    21         var $i = ($h + 55)+'px';
    22         var $j = ($h + 325)+'px';
    23         var $k = ($h + 12)+'px';
    24         var $h = $h+'px';
    25         $(this).css('top', '0px');
    26         $(this).parents('li').eq(0).addClass('Juza-cat').css('height', $i).css('min-height', $i).css('width','100%');
    27         $(this).parents('li.Juza-cat').eq(0).find('.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
    28         $(this).parents('.maxIllustration a').eq(0).css('height', $h);
    29       };{/literal}
    30     });
     16    var $h = $(this).height();
     17    $(this).css('top', '{$Juza_shift}px');
     18    $(this).parents('li').eq(0).css('height', '{$Juza_height2}px').css('min-height', '{$Juza_height2}px');
     19    $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , '{$Juza_height3}px').css('top', '{$Juza_shift3}px').find('li').css('width','100%');
     20    $(this).parents('.maxIllustration a').eq(0).css('height', '{$Juza_height}px');
     21    if ($h  < {$Juza_height3+20})  {ldelim} /* Kill Auto crop */
     22      var $i = ($h + 55)+'px';
     23      var $j = ($h + 325)+'px';
     24      var $k = ($h + 12)+'px';
     25      var $h = $h+'px';
     26      $(this).css('top', '0px');
     27      $(this).parents('li').eq(0).css('height', $i).css('min-height', $i);
     28      $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
     29      $(this).parents('.maxIllustration a').eq(0).css('height', $h);
     30    }; /* Kill Auto crop */
    3131  });
    3232  var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
     
    3434});
    3535</script>
    36   {/html_head}
     36
    3737
    3838{if isset($thumbnails)}
     
    6060
    6161{if is_admin()}
    62 <div id="Juza_call" style="display:none"><a class="Juza_conf" href="#" alt="">{'Juza Theme Configuration'|@translate}</a>
     62<div id="Juza_call" style="display:none"><a class="Juza_conf" href="#">{'Juza Theme Configuration'|@translate}</a>
    6363</div>
    6464{/if}
     
    6666{$MENUBAR}
    6767{assign var=MENUBAR value=''}
    68 
Note: See TracChangeset for help on using the changeset viewer.