-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbabelfish.tpl
57 lines (49 loc) · 1.59 KB
/
babelfish.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
55
56
57
{* $Id: babelfish.tpl 33949 2011-04-14 05:13:23Z chealer $ *}
{if $prefs.feature_babelfish eq 'y' and $prefs.feature_babelfish_logo eq 'y'}
{assign var=links value=0}
{section loop=$babelfish_links name=i}
{assign var=links value=$links+1}
{/section}
<div id="babelfish" align="center">
{if $links>0}
<table width="100%">
{section loop=$babelfish_links name=i}
<tr>
{if $smarty.section.i.index == 0}
<td>
<a href="{$babelfish_links[i].href}" target="{$babelfish_links[i].target}"> {$babelfish_links[i].msg} </a>
</td>
<td rowspan="{$smarty.section.i.total}" align="right">
{$babelfish_logo}
</td>
{else}
<td>
<a href="{$babelfish_links[i].href}" target="{$babelfish_links[i].target}">{$babelfish_links[i].msg}</a>
</td>
{/if}
</tr>
{/section}
</table>
{elseif $tiki_p_admin eq 'y'}
<small><strong>Babelfish ({tr}debug{/tr}): {tr}Fatal error{/tr}</strong></small>
{/if}
</div>
{elseif $prefs.feature_babelfish eq 'y' and $prefs.feature_babelfish_logo eq 'n'}
<div id="babelfish" align="center">
{if $links>0}
<table width="100%">
{section loop=$babelfish_links name=i}
<tr><td align="center">
<a href="{$babelfish_links[i].href}" target="{$babelfish_links[i].target}">{$babelfish_links[i].msg}</a>
</td> </tr>
{/section}
</table>
{elseif $tiki_p_admin eq 'y'}
<small><strong>Babelfish ({tr}debug{/tr}): {tr}Fatal error{/tr}</strong></small>
{/if}
</div>
{elseif $prefs.feature_babelfish eq 'n' and $prefs.feature_babelfish_logo eq 'y'}
<div id="babelfish" align="center">
{$babelfish_logo}
</div>
{/if}