From a11432db93dbfdb0dbc78e1dd384663439799559 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Mon, 23 May 2011 06:53:31 +0200 Subject: first try to implement theming support, which currently does not work at all --- .../default/sidebar.block.watchstatus.php | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 data/templates/default/sidebar.block.watchstatus.php (limited to 'data/templates/default/sidebar.block.watchstatus.php') 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 @@ +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); +?> + +

+
+ +
+ + \ No newline at end of file -- cgit v1.2.3