From 15b91c7e661d928d8b125ec9cfbda1702319c8b4 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 25 Nov 2008 15:57:29 +0000 Subject: Major refactoring: transform user into object, define parameters used into each file, ... git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@173 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/about.tpl.php | 13 +++++++++---- templates/bookmarkcommondescriptionedit.tpl.php | 7 ++++++- templates/bookmarks.tpl.php | 20 ++++++++++--------- templates/editbookmark.tpl.php | 8 +++----- templates/editprofile.tpl.php | 8 ++++---- templates/profile.tpl.php | 14 ++++++------- templates/sidebar.block.common.php | 26 ++++++++++++------------- templates/sidebar.block.popular.php | 7 +++++++ templates/sidebar.block.recent.php | 2 +- templates/sidebar.block.related.php | 7 ++++++- templates/top.inc.php | 3 ++- templates/userlist.tpl.php | 19 ++++++++---------- 12 files changed, 76 insertions(+), 58 deletions(-) (limited to 'templates') diff --git a/templates/about.tpl.php b/templates/about.tpl.php index 3f3cbe3..a4bc718 100644 --- a/templates/about.tpl.php +++ b/templates/about.tpl.php @@ -1,9 +1,13 @@ includeTemplate($GLOBALS['top_include']); +/* Service creation: only useful services are created */ $userservice =& ServiceFactory::getServiceInstance('UserService'); -$currentUser = $userservice->getCurrentUser(); -$currentUserId = $userservice->getCurrentUserId(); +//$currentUser = $userservice->getCurrentUser(); +//$currentUserId = $userservice->getCurrentUserId(); + +$currentObjectUser = $userservice->getCurrentObjectUser(); + +$this->includeTemplate($GLOBALS['top_include']); ?> includeTemplate($GLOBALS['top_include']); +/* Service creation: only useful services are created */ $userservice = & ServiceFactory :: getServiceInstance('UserService'); + +$this->includeTemplate($GLOBALS['top_include']); + list ($url, $hash) = explode('/', $_SERVER['PATH_INFO']); + + ?> + - +