-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfreetag.tpl
37 lines (36 loc) · 1.36 KB
/
freetag.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
{if $prefs.feature_freetags eq 'y' && $tiki_p_freetags_tag eq 'y'}
<tr>
<td><label for="tagBox">{tr}Folksonomy Tags{/tr}</label></td>
<td>
{jq notonready=true}
function addTag(tag) {
document.getElementById('tagBox').value = document.getElementById('tagBox').value + ' ' + tag;
}
{/jq}
<div id="freetager">
{if $prefs.feature_help eq 'y'}
{tr}Put tags separated by spaces. For tags with more than one word, use no spaces and put words together or enclose them with double quotes.{/tr}
{/if}
<input type="text" id="tagBox" name="freetag_string" value="{$taglist|escape}" style="width:98%">
<br>
{foreach from=$tag_suggestion item=t}
{capture name=tagurl}{if (strstr($t, ' '))}"{$t}"{else}{$t}{/if}{/capture}
<a href="javascript:addTag('{$smarty.capture.tagurl|escape:'javascript'|escape}');" onclick="javascript:needToConfirm=false">{$t|escape}</a>
{/foreach}
</div>
</td>
</tr>
{if $prefs.feature_multilingual eq 'y' && $prefs.freetags_multilingual eq 'y' && $blog eq 'y'}
<tr>
<td>{tr}Folksonomy Language{/tr}</td>
<td>
<select name="lang">
<option value="">{tr}All{/tr}</option>
{section name=ix loop=$languages}
<option value="{$languages[ix].value|escape}"{if $lang eq $languages[ix].value} selected="selected"{/if}>{$languages[ix].name}</option>
{/section}
</select>
</td>
</tr>
{/if}
{/if}