2 $sf = new ServiceFactory();
3 $userservice =& $sf->getServiceInstance('UserService');
4 if ($userservice->isLoggedOn()) {
5 $currentUser = $userservice->getCurrentUser();
6 $currentUsername = $currentUser[$userservice->getFieldName('username')];
8 if ($currentUsername == $user) {
9 $tags = explode('+', $currenttag);
10 $renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags));
11 $renamelink = createURL('tagrename', $currenttag);
12 $deletelink = createURL('tagdelete', $currenttag);
15 <h2><?php echo T_('Actions'); ?></h2>
18 <li><a href="<?php echo $renamelink; ?>"><?php echo $renametext ?></a></li>
19 <?php if (count($tags) == 1): ?>
20 <li><a href="<?php echo $deletelink; ?>"><?php echo T_('Delete Tag') ?></a></li>