2007-12-12 17:29:16 +01:00
|
|
|
<?php
|
|
|
|
$userservice =& ServiceFactory::getServiceInstance('UserService');
|
2008-02-13 18:34:18 +01:00
|
|
|
$tagservice =& ServiceFactory::getServiceInstance('TagService');
|
|
|
|
|
2007-12-12 17:29:16 +01:00
|
|
|
if ($userservice->isLoggedOn()) {
|
|
|
|
$currentUser = $userservice->getCurrentUser();
|
|
|
|
$currentUsername = $currentUser[$userservice->getFieldName('username')];
|
|
|
|
|
|
|
|
if ($currentUsername == $user) {
|
|
|
|
$tags = explode('+', $currenttag);
|
|
|
|
$renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags));
|
|
|
|
$renamelink = createURL('tagrename', $currenttag);
|
|
|
|
$deletelink = createURL('tagdelete', $currenttag);
|
2008-02-13 18:34:18 +01:00
|
|
|
$commondesclink = createURL('tagcommondescriptionedit', $currenttag);
|
2007-12-12 17:29:16 +01:00
|
|
|
?>
|
|
|
|
|
|
|
|
<h2><?php echo T_('Actions'); ?></h2>
|
|
|
|
<div id="tagactions">
|
|
|
|
<ul>
|
|
|
|
<li><a href="<?php echo $renamelink; ?>"><?php echo $renametext ?></a></li>
|
|
|
|
<?php if (count($tags) == 1): ?>
|
|
|
|
<li><a href="<?php echo $deletelink; ?>"><?php echo T_('Delete Tag') ?></a></li>
|
|
|
|
<?php endif; ?>
|
2008-02-13 18:34:18 +01:00
|
|
|
<?php if ($GLOBALS['enableCommonTagDescription']): ?>
|
|
|
|
<li><a href="<?php echo $commondesclink; ?>"><?php echo T_('Edit Tag Common Description') ?></a></li>
|
|
|
|
<?php endif; ?>
|
2007-12-12 17:29:16 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
2008-02-13 18:34:18 +01:00
|
|
|
?>
|