summaryrefslogtreecommitdiffstatshomepage
path: root/data/templates/pico/sidebar.block.tagactions.php
diff options
context:
space:
mode:
authorGravatar Tom Willemse2024-06-11 00:58:31 -0700
committerGravatar Tom Willemse2024-06-11 14:59:42 -0700
commit15a30340e8867dfac3f88460fbd93b581e56f10f (patch)
tree5f1ec84c8003a229769613d0bd6c7d399ec94be4 /data/templates/pico/sidebar.block.tagactions.php
parentb76f3afb27702c990275708c2ea0d432f35c6df1 (diff)
downloadscuttle-15a30340e8867dfac3f88460fbd93b581e56f10f.tar.gz
scuttle-15a30340e8867dfac3f88460fbd93b581e56f10f.zip
Initial steps towards a pico.css-based theme
Diffstat (limited to 'data/templates/pico/sidebar.block.tagactions.php')
-rw-r--r--data/templates/pico/sidebar.block.tagactions.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/data/templates/pico/sidebar.block.tagactions.php b/data/templates/pico/sidebar.block.tagactions.php
new file mode 100644
index 0000000..3351866
--- /dev/null
+++ b/data/templates/pico/sidebar.block.tagactions.php
@@ -0,0 +1,35 @@
+<?php
+/* Service creation: only useful services are created */
+//No specific services
+
+if ($userservice->isLoggedOn()) {
+
+ if ($currentUser->getUsername() == $user) {
+ $tags = explode('+', $currenttag);
+ $renametext = T_ngettext('Rename Tag', 'Rename Tags', count($tags));
+ $renamelink = createURL('tagrename', $currenttag);
+ $deletelink = createURL('tagdelete', $currenttag);
+ $tagdesclink = createURL('tagedit', $currenttag);
+ $commondesclink = createURL('tagcommondescriptionedit', $currenttag);
+ $addtag2taglinklink = createURL('tag2tagadd', $currenttag);
+?>
+
+<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; ?>
+ <li><a href="<?php echo $tagdesclink; ?>"><?php echo T_('Edit Tag Description') ?></a></li>
+ <?php if ($GLOBALS['enableCommonTagDescription'] && ($GLOBALS['enableCommonTagDescriptionEditedByAll'] || $currentUser->isAdmin() )): ?>
+ <li><a href="<?php echo $commondesclink; ?>"><?php echo T_('Edit Tag Common Description') ?></a></li>
+ <?php endif; ?>
+ <li><a href="<?php echo $addtag2taglinklink; ?>"><?php echo T_('Create a link to another tag') ?></a></li>
+ </ul>
+</div>
+
+<?php
+ }
+}
+?>