diff options
author | 2011-05-23 06:53:31 +0200 | |
---|---|---|
committer | 2011-05-23 06:53:31 +0200 | |
commit | a11432db93dbfdb0dbc78e1dd384663439799559 (patch) | |
tree | 374acc61a5be95bda099b355cc80582348d151bd /data/templates/default/sidebar.block.watchstatus.php | |
parent | 97bba97049eeed2ecec022caa641b50ca507cb72 (diff) | |
download | scuttle-a11432db93dbfdb0dbc78e1dd384663439799559.tar.gz scuttle-a11432db93dbfdb0dbc78e1dd384663439799559.zip |
first try to implement theming support, which currently does not work at all
Diffstat (limited to 'data/templates/default/sidebar.block.watchstatus.php')
-rw-r--r-- | data/templates/default/sidebar.block.watchstatus.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/data/templates/default/sidebar.block.watchstatus.php b/data/templates/default/sidebar.block.watchstatus.php new file mode 100644 index 0000000..99574aa --- /dev/null +++ b/data/templates/default/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 |