summaryrefslogtreecommitdiffstatshomepage
path: root/data/templates/sscuttlizr/sidebar.block.watchstatus.php
diff options
context:
space:
mode:
authorGravatar buckaroo-labs2023-12-20 19:16:51 -0800
committerGravatar buckaroo-labs2023-12-20 19:16:51 -0800
commita89a4c07b811ceda200c7913d9629466f345d674 (patch)
tree05dfcf7f6be6b5e4b50f1a2c91efc05160be7758 /data/templates/sscuttlizr/sidebar.block.watchstatus.php
parente0ce98abb43505357ca1936b68c9eb7b92bbf559 (diff)
downloadscuttle-a89a4c07b811ceda200c7913d9629466f345d674.tar.gz
scuttle-a89a4c07b811ceda200c7913d9629466f345d674.zip
bundle sscuttlizr theme
Diffstat (limited to 'data/templates/sscuttlizr/sidebar.block.watchstatus.php')
-rw-r--r--data/templates/sscuttlizr/sidebar.block.watchstatus.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/data/templates/sscuttlizr/sidebar.block.watchstatus.php b/data/templates/sscuttlizr/sidebar.block.watchstatus.php
new file mode 100644
index 0000000..99574aa
--- /dev/null
+++ b/data/templates/sscuttlizr/sidebar.block.watchstatus.php
@@ -0,0 +1,28 @@
+<?php
+/* Service creation: only useful services are created */
+//No specific services
+
+
+if ($userservice->isLoggedOn()) {
+
+ if ($currentUser->getUsername() != $user) {
+ $result = $userservice->getWatchStatus($userid, $userservice->getCurrentUserId());
+ if ($result) {
+ $linkText = T_('Remove from Watchlist');
+ } else {
+ $linkText = T_('Add to Watchlist');
+ }
+ $linkAddress = createURL('watch', $user);
+?>
+
+<h2><?php echo T_('Actions'); ?></h2>
+<div id="watchlist">
+ <ul>
+ <li><a href="<?php echo $linkAddress ?>"><?php echo $linkText ?></a></li>
+ </ul>
+</div>
+
+<?php
+ }
+}
+?> \ No newline at end of file