source: extensions/Juza/script.tpl @ 4659

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

[Update] For Juza - Juza Theme is full working (On Standard Piwigo Gallery).

Recommended organization: Don't mixed Pictures and subcategories in a category.
Next step - Response time checking.
To see I will raise a locked gallery.

  • 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="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"*}
2  {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
3  {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
4  {assign var=JUZA value=$ROOT_URL|@cat:"template/"|@cat:$themeconf.template|@cat:"/theme/"|@cat:$themeconf.theme}
5  {known_script id="juza" src=$JUZA|@cat:"/js/juzascript.js"}
6  {html_head}
7<style type="text/css">
8.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; }
10#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; }
13</style>
14
15<script type="text/javascript">
16$().ready(function() {ldelim}
17  $('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    });
31  });
32  var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
33  $('#copyright').css('margin-top', $h+'px');
34});
35</script>
36  {/html_head}
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="#" alt="">{'Juza Theme Configuration'|@translate}</a>
63</div>
64{/if}
65
66{$MENUBAR}
67{assign var=MENUBAR value=''}
68
Note: See TracBrowser for help on using the repository browser.