SemanticScuttle/data/templates/minimal/sidebar.block.watchstatus.php

28 lines
651 B
PHP
Raw Permalink Normal View History

2023-12-21 06:39:10 +01:00
<?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
}
}
?>