summaryrefslogtreecommitdiff
path: root/templates/sidebar.block.menu.php
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-03 14:00:33 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-03 14:00:33 +0000
commit29422fa55379aa61a61019b832c83dab6d450264 (patch)
treee5884ce6fed2cf1d02165a1b5667b99cd80262e5 /templates/sidebar.block.menu.php
parentb8b1d06b2d899658fae64d0de506439ca0ea067c (diff)
downloadsemanticscuttle-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.menu.php')
-rw-r--r--templates/sidebar.block.menu.php80
1 files changed, 0 insertions, 80 deletions
diff --git a/templates/sidebar.block.menu.php b/templates/sidebar.block.menu.php
deleted file mode 100644
index ed1069a..0000000
--- a/templates/sidebar.block.menu.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php
-/* Service creation: only useful services are created */
-$tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService');
-
-
-require_once('sidebar.linkedtags.inc.php');
-
-/* Manage input */
-$userid = isset($userid)?$userid:0;
-$user = isset($user)?$user:null;
-
-
-$logged_on_userid = $userservice->getCurrentUserId();
-if ($logged_on_userid === false) {
- $logged_on_userid = NULL;
-}
-
-// editing mode
-if(($logged_on_userid != null) && ($userid === $logged_on_userid)) {
- $editingMode = true;
-} else {
- $editingMode = false;
-}
-
-if(!isset($user) || $user == '') {
- $cat_url = createURL('tags', '%2$s');
-}
-
-$menuTags = $tag2tagservice->getMenuTags($userid);
-if (sizeof($menuTags) > 0 || ($userid != 0 && $userid === $logged_on_userid)) {
-?>
-
-<h2>
-<?php
- echo '<span title="'.sprintf(T_('Tags included into the tag \'%s\''), $GLOBALS['menuTag']).'">'.T_('Menu Tags').'</span> ';
- //}
-?>
-</h2>
-
-
-<div id="related">
-<table>
-<?php
- if($editingMode) {
- echo '<tr><td></td><td>';
- echo ' (<a href="'. createURL('tag2tagadd','menu') .'" rel="tag">'.T_('Add new link').'</a>) ';
- echo ' (<a href="'. createURL('tag2tagdelete','menu') .'" rel="tag">'.T_('Delete link').'</a>)';
- echo '</td></tr>';
- }
-
- $stopList = array();
- foreach($menuTags as $menuTag) {
- $tag = $menuTag['tag'];
- if(!in_array($tag, $stopList)) {
- $displayLinkedTags = displayLinkedTags($tag, '>', $userid, $cat_url, $user, $editingMode, null, 1);
- echo $displayLinkedTags['output'];
- if(is_array($displayLinkedTags['stopList'])) {
- $stopList = array_merge($stopList, $displayLinkedTags['stopList']);
- }
- }
- }
-?>
-</table>
-
-<?php $cUser = $userservice->getUser($userid); ?>
-<?php if($userid>0): ?>
-<?php if($userid==$logged_on_userid): ?>
-<p style="text-align:right"><a href="<?php echo createURL('alltags', $cUser['username']); ?>" title="<?php echo T_('See all your tags')?>"><?php echo T_('all your tags'); ?></a> &rarr;</p>
-<?php else: ?>
-<p style="text-align:right"><a href="<?php echo createURL('alltags', $cUser['username']); ?>" title="<?php echo T_('See all tags from this user')?>"><?php echo T_('all tags from this user'); ?></a> &rarr;</p>
-<?php endif; ?>
-
-<?php else : ?>
-<p style="text-align:right"><a href="<?php echo createURL('populartags', $cUser['username']); ?>" title="<?php echo T_('See popular tags')?>"><?php echo T_('Popular Tags'); ?></a> &rarr;</p>
-<?php endif; ?>
-</div>
-
-<?php
-}
-?>