-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcategobjects.tpl
54 lines (53 loc) · 1.63 KB
/
categobjects.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{* $Id: categobjects.tpl 35171 2011-07-02 11:30:05Z gta74 $ *}
<div class="catblock clearfix">
{if !isset($params.showTitle) or $params.showTitle eq 'y'}
<div class="cattitle">
<span class="label">{tr}Category:{/tr} </span>
{foreach name=for key=id item=cattitle from=$titles}
{if $params.categoryshowlink ne 'n'}<a href="tiki-browse_categories.php?parentId={$id}">{/if}
{$cattitle|tr_if|escape}
{if $params.categoryshowlink ne 'n'}</a>{/if}
{if !$smarty.foreach.for.last} & {/if}
{/foreach}
</div>
{/if}
<div class="catlists">
<ul class="{if $params.showtype ne 'n'}catfeatures{elseif $params.one eq 'y'}catitemsone{else}catitems{/if}">
{foreach key=t item=i from=$listcat}
{if $params.showtype ne 'n'}
<li>
{$t}:
<ul class="{if $params.one eq 'y'}catitemsone{else}catitems{/if}">
{/if}
{section name=o loop=$i}
<li>
{if $params.showlinks ne 'n'}
{if $prefs.feature_sefurl eq 'y'}
<a href="{$i[o].itemId|sefurl:$i[o].type}" class="link">
{else}
<a href="{$i[o].href}" class="link">
{/if}
{/if}
{if $params.showname ne 'n' or empty($i[o].description)}
{$i[o].name|escape}
{if $params.showlinks ne 'n'}</a>{/if}
{if $params.showdescription eq 'y'} <span class='description'>{/if}
{/if}
{if $params.showdescription eq 'y'}
{$i[o].description|escape}
{if $params.showname ne 'n' or empty($i[o].description)}
</span>
{else}
{if $params.showlinks ne 'n'}</a>{/if}
{/if}
{/if}
</li>
{/section}
{if $params.showtype ne 'n'}
</ul>
</li>
{/if}
{/foreach}
</ul>
</div>
</div>