diff options
author | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-03 14:00:33 +0000 |
---|---|---|
committer | cweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2009-10-03 14:00:33 +0000 |
commit | 29422fa55379aa61a61019b832c83dab6d450264 (patch) | |
tree | e5884ce6fed2cf1d02165a1b5667b99cd80262e5 /templates/sidebar.block.watchlist.php | |
parent | b8b1d06b2d899658fae64d0de506439ca0ea067c (diff) | |
download | semanticscuttle-29422fa55379aa61a61019b832c83dab6d450264.tar.gz semanticscuttle-29422fa55379aa61a61019b832c83dab6d450264.tar.bz2 |
move files to new locations
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@386 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'templates/sidebar.block.watchlist.php')
-rw-r--r-- | templates/sidebar.block.watchlist.php | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/templates/sidebar.block.watchlist.php b/templates/sidebar.block.watchlist.php deleted file mode 100644 index 8f4984e..0000000 --- a/templates/sidebar.block.watchlist.php +++ /dev/null @@ -1,60 +0,0 @@ -<?php -/* Service creation: only useful services are created */ -//No specific services - -$watching = $userservice->getWatchNames($userid); -$watchedBy = $userservice->getWatchNames($userid, true); - - -$closeContacts = array(); // people in my contacts list and who I am also in the contacts list -foreach($watching as $watchuser) { - if(in_array($watchuser, $watchedBy)) { - $closeContacts[] = $watchuser; - } -} - -?> - -<?php if(count($closeContacts)>0):?> -<h2 title="<?php echo T_('Close contacts are mutual contacts');?>"><?php echo ' &harr '. T_('Close contacts'); ?></h2> -<div id="watching"> - <ul> - <?php foreach($closeContacts as $watchuser): ?> - <li><a href="<?php echo createURL('bookmarks', $watchuser); ?>"><?php echo $watchuser; ?></a> </li> - <?php endforeach; ?> - </ul> -</div> -<?php endif; ?> - - -<h2><?php echo ' → '. T_('Watching'); ?></h2> -<div id="watching"> - <ul> - <?php if($userservice->isLoggedOn() && $currentUser->getUsername() == $user): ?> - <li> - <form action="<?php echo createURL('watch', '');?>" method="post"> - <input type="text" name="contact" value="<?php echo T_('Add a contact...');?>" onfocus="if (this.value == '<?php echo T_('Add a contact...');?>') this.value = '';" onblur="if (this.value == '') this.value = '<?php echo T_('Add a contact...');?>';" title="<?php echo T_('Type a username to add it to your contacts.') ?>" /> - </form> - </li> - <?php endif; ?> - - <?php foreach($watching as $watchuser): ?> - <li><a href="<?php echo createURL('bookmarks', $watchuser); ?>"><?php echo $watchuser; ?></a> - <?php if($userservice->isLoggedOn() && $currentUser->getUsername() == $user): ?> - - <a href="<?php echo createUrl('watch','?contact='.$watchuser); ?>" title="<?php echo T_('Remove this contact'); ?>">x<a/> - </li> - <?php endif; ?> - <?php endforeach; ?> - - </ul> -</div> - -<h2><?php echo ' ← '. T_('Watched By'); ?></h2> -<div id="watching"> - <ul> - <?php foreach($watchedBy as $watchuser): ?> - <li><a href="<?php echo createURL('bookmarks', $watchuser); ?>"><?php echo $watchuser; ?></a> </li> - <?php endforeach; ?> - </ul> - -</div> |