From 834b3aedb86bf5a7f76e01646201c495a9da8faf Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 10 Feb 2009 11:40:07 +0000 Subject: Minor fix: translations, improve watchlist, improve search behaviour... git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@266 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/profile.tpl.php | 2 +- templates/sidebar.block.menu2.php | 24 ++++-------------------- templates/sidebar.block.watchlist.php | 11 ++++++----- 3 files changed, 11 insertions(+), 26 deletions(-) (limited to 'templates') diff --git a/templates/profile.tpl.php b/templates/profile.tpl.php index dda9c80..1e2003a 100644 --- a/templates/profile.tpl.php +++ b/templates/profile.tpl.php @@ -6,7 +6,7 @@ $this->includeTemplate($GLOBALS['top_include']);
isAdmin()) { +if ($userservice->isLoggedOn() && $currentUser->isAdmin()) { ?>
getEmail()) ?>
diff --git a/templates/sidebar.block.menu2.php b/templates/sidebar.block.menu2.php index d571120..eee150e 100644 --- a/templates/sidebar.block.menu2.php +++ b/templates/sidebar.block.menu2.php @@ -14,12 +14,11 @@ if ($logged_on_userid === false) { $logged_on_userid = NULL; } -if(!isset($user) || $user == '') { - $cat_url = createURL('tags', '%2$s'); -} +$cat_url = createURL('tags', '%2$s'); $menu2Tags = $GLOBALS['menu2Tags']; + if (sizeOf($menu2Tags) > 0) { $this->includeTemplate("dojo.inc"); ?> @@ -41,23 +40,8 @@ foreach($menu2Tags as $menu2Tag) { echo ''; echo ''; } -?> getUser($userid); ?> 0): ?> - -

-→

- -

-→

- -

-→

- +?> + getWatchNames($userid); -if ($watching) { ?>

@@ -12,9 +11,11 @@ if ($watching) {
  • +
  • +
    + +
    +
  • - - \ No newline at end of file + -- cgit v1.2.3-54-g00ecf