Changeset 4716 for extensions/Juza/script.tpl
- Timestamp:
- Jan 21, 2010, 9:32:59 PM (14 years ago)
- 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"*}2 1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 3 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} … … 7 6 <style type="text/css"> 8 7 .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; } 10 9 #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%; } 13 11 </style> 14 12 {/html_head} 15 13 <script type="text/javascript"> 16 $( ).ready(function() {ldelim}14 $('div.illustration a img').ready(function() {ldelim} 17 15 $('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 */ 31 31 }); 32 32 var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width}; … … 34 34 }); 35 35 </script> 36 {/html_head} 36 37 37 38 38 {if isset($thumbnails)} … … 60 60 61 61 {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> 63 63 </div> 64 64 {/if} … … 66 66 {$MENUBAR} 67 67 {assign var=MENUBAR value=''} 68
Note: See TracChangeset
for help on using the changeset viewer.