<?php

/**
 * [BEGIN_COT_EXT]
 * Hooks=folio.add.tags
 * [END_COT_EXT]
 */
/**
 * plugin tagslance for Cotonti Siena
 * 
 * @package tagslance
 * @version 1.0.0
 * @author CMSWorks Team
 * @copyright Copyright (c) CMSWorks.ru, littledev.ru
 * @license BSD
 *  */

defined('COT_CODE') or die('Wrong URL.');

if ($cfg['plugin']['tagslance']['folio'] && cot_auth('plug', 'tags', 'W'))
{
	require_once cot_incfile('tags', 'plug');
	$t->assign(array(
		'PRDADD_TOP_TAGS' => $L['Tags'],
		'PRDADD_TOP_TAGS_HINT' => $L['tags_comma_separated'],
		'PRDADD_FORM_TAGS' => cot_rc('tags_input_editpage', array('tags' => ''))
	));
	if (cot_get_caller() == 'i18n.folio')
	{
		$t->assign(array(
			'I18N_PRD_TAGS' => implode(', ', cot_tag_list($id)),
			'I18N_IPRD_TAGS' => cot_rc('tags_input_editpage', array('tags' => ''))
		));
	}
	$t->parse('MAIN.TAGS');
}
