source: extensions/Juza/script.tpl @ 4716

Last change on this file since 4716 was 4716, checked in by vdigital, 14 years ago

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

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

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
Line 
1  {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
2  {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
3  {assign var=JUZA value=$ROOT_URL|@cat:"template/"|@cat:$themeconf.template|@cat:"/theme/"|@cat:$themeconf.theme}
4  {known_script id="juza" src=$JUZA|@cat:"/js/juzascript.js"}
5  {html_head}
6<style type="text/css">
7.maxIllustration a {ldelim} max-height: {$Juza_height}px; height: {$Juza_height}px; width:{$Juza_width}px; }
8.bigImg {ldelim} width:{$Juza_width}px !important; }
9#imageToolBar {ldelim} top:{$Juza_shift2}px; }
10.content ul.thumbnailCategories li.Juza-cat {ldelim} width: 100%; }
11</style>
12  {/html_head}
13<script type="text/javascript">
14$('div.illustration a img').ready(function() {ldelim}
15  $('div.illustration a img').each(function() {ldelim}
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  });
32  var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
33  $('#copyright').css('margin-top', $h+'px');
34});
35</script>
36
37
38{if isset($thumbnails)}
39<div id="ix-desc" style="display:none">
40{foreach from=$thumbnails item=thumbnail}
41  <div title="{$thumbnail.FILE_DESC|@htmlspecialchars}" class="Thumb-{$thumbnail.ID}" alt="{$thumbnail.FILE_WIDTH}"></div>
42   <div title="{$thumbnail.FILE_PATH}" class="Medium-{$thumbnail.ID}" alt="{$thumbnail.FILE_HEIGHT}"></div>
43{/foreach}
44</div>
45{/if}
46
47{if isset($category_thumbnails)}
48<div id="ix-cat" style="display:none">
49{foreach from=$category_thumbnails item=cat}
50  <img src="{$cat.TN_SRC}" title="{$cat.TN_SRC|@Juza_file}" alt="{$cat.DESCRIPTION|@strip_tags|@htmlspecialchars}" class="Cat"/>
51{/foreach}
52</div>
53{/if}
54
55{if isset($Juza_cats)}
56<div id="menu-cat" style="display:none">
57{$Juza_cats}
58</div>
59{/if}
60
61{if is_admin()}
62<div id="Juza_call" style="display:none"><a class="Juza_conf" href="#">{'Juza Theme Configuration'|@translate}</a>
63</div>
64{/if}
65
66{$MENUBAR}
67{assign var=MENUBAR value=''}
Note: See TracBrowser for help on using the repository browser.