<?PHP
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=tags
Part=page
File=tags.page
Hooks=page.tags
Tags=page.tpl:{PAGE_TAGS_ROW_TAG},{PAGE_TAGS_ROW_URL}
Order=10
[END_SED_EXTPLUGIN]
==================== */
/**
* Part of plug tags
*
* @package Cotonti
* @version 0.0.3
* @author Trustmaster - Vladimir Sibirov
* @copyright All rights reserved. 2008-2009
* @license BSD
*/
defined('SED_CODE') or die('Wrong URL');
if($cfg['plugin']['tags']['pages'])
{
require_once(sed_langfile('tags'));
$item_id = $pag['page_id'];
$tags = sed_tag_list($item_id);
if(count($tags) > 0)
{
$tag_i = 0;
foreach($tags as $tag)
{
$tag_u = sed_urlencode($tag, $cfg['plugin']['tags']['translit']);
$tl = $lang != 'en' && $tag_u != $tag ? 1 : null;
$t->assign(array(
'PAGE_TAGS_ROW_TAG' => $cfg['plugin']['tags']['title'] ? htmlspecialchars(sed_tag_title($tag)) : htmlspecialchars($tag),
'PAGE_TAGS_ROW_URL' => sed_url('plug', array('e' => 'tags', 'a' => 'pages', 't' => $tag_u, 'tl' => $tl))
));
$t->parse('MAIN.PAGE_TAGS_ROW');
$tag_i++;
}
}
else
{
$t->assign(array(
'PAGE_NO_TAGS' => $L['tags_Tag_cloud_none'],
));
$t->parse('MAIN.PAGE_NO_TAGS');
}
}
?>