2007-12-12 17:29:16 +01:00
|
|
|
<?php
|
2008-12-05 08:25:04 +01:00
|
|
|
/* Service creation: only useful services are created */
|
|
|
|
//No specific services
|
2008-02-13 18:34:18 +01:00
|
|
|
|
2007-12-12 17:29:16 +01:00
|
|
|
if ($userservice->isLoggedOn()) {
|
|
|
|
|
2008-12-05 08:25:04 +01:00
|
|
|
if ($currentUser->getUsername() == $user) {
|
2007-12-12 17:29:16 +01:00
|
|
|
$tags = explode('+', $currenttag);
|
|
|
|
$renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags));
|
|
|
|
$renamelink = createURL('tagrename', $currenttag);
|
|
|
|
$deletelink = createURL('tagdelete', $currenttag);
|
2008-04-21 17:43:00 +02:00
|
|
|
$tagdesclink = createURL('tagedit', $currenttag);
|
2008-02-13 18:34:18 +01:00
|
|
|
$commondesclink = createURL('tagcommondescriptionedit', $currenttag);
|
2008-03-14 11:46:44 +01:00
|
|
|
$addtag2taglinklink = createURL('tag2tagadd', $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-04-21 17:43:00 +02:00
|
|
|
<li><a href="<?php echo $tagdesclink; ?>"><?php echo T_('Edit Tag Description') ?></a></li>
|
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; ?>
|
2008-03-14 11:46:44 +01:00
|
|
|
<li><a href="<?php echo $addtag2taglinklink; ?>"><?php echo T_('Create a link to another tag') ?></a></li>
|
2007-12-12 17:29:16 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
2008-02-13 18:34:18 +01:00
|
|
|
?>
|