{* based on $Id: mod-freetags_current.tpl 66134 2018-04-21 11:33:19Z chibaguy $ *}

{if isset($modFreetagsCurrent) && count($modFreetagsCurrent) gt 0}
	{tikimodule error=$module_params.error title=$tpl_module_title name="freetags_current" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
		{if $modFreetagsCurrent.cant gt 0}
			{section name=ix loop=$modFreetagsCurrent.data}
				<div class="module">
					{capture name=tagurl}{if (strstr($modFreetagsCurrent.data[ix].tag, ' '))}"{$modFreetagsCurrent.data[ix].tag}"{else}{$modFreetagsCurrent.data[ix].tag}{/if}{/capture}
					<a class="linkmodule" href="tiki-browse_freetags.php?tag={$smarty.capture.tagurl|escape:'url'}">{$modFreetagsCurrent.data[ix].tag|escape}</a>
				</div>
			{/section}
		{/if}
		{if isset($addFreetags)}
			<form method="post" action="">
				<div>
					<input type="text" name="tags" value=""/>
					<input type="submit" class="btn btn-primary btn-sm" name="mod_add_tags" value="{tr}Add tags{/tr}"/>
				</div>
			</form>
		{/if}
	{/tikimodule}
{/if}
