diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-25 15:57:29 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-25 15:57:29 +0000 |
commit | 15b91c7e661d928d8b125ec9cfbda1702319c8b4 (patch) | |
tree | 092d474c05e414bb04a8c428b8ff6cb9ccab765d /templates/profile.tpl.php | |
parent | 9aafe7551eb5a73739709e72465031db7a1531b4 (diff) | |
download | semanticscuttle-15b91c7e661d928d8b125ec9cfbda1702319c8b4.tar.gz semanticscuttle-15b91c7e661d928d8b125ec9cfbda1702319c8b4.tar.bz2 |
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
Diffstat (limited to 'templates/profile.tpl.php')
-rw-r--r-- | templates/profile.tpl.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/profile.tpl.php b/templates/profile.tpl.php index e3e44ab..a544fb4 100644 --- a/templates/profile.tpl.php +++ b/templates/profile.tpl.php @@ -7,26 +7,26 @@ $this->includeTemplate($GLOBALS['top_include']); <dt><?php echo T_('Username'); ?></dt> <dd><?php echo $user; ?></dd> <?php -if ($row['name'] != "") { +if ($objectUser->getName() != "") { ?> <dt><?php echo T_('Name'); ?></dt> - <dd><?php echo filter($row['name']); ?></dd> + <dd><?php echo filter($objectUser->getName()); ?></dd> <?php } -if ($row['homepage'] != "") { +if ($objectUser->getHomepage() != "") { ?> <dt><?php echo T_('Homepage'); ?></dt> - <dd><a href="<?php echo filter($row['homepage']); ?>"><?php echo filter($row['homepage']); ?></a></dd> + <dd><a href="<?php echo filter($objectUser->getHomepage()); ?>"><?php echo filter($objectUser->getHomepage()); ?></a></dd> <?php } ?> <dt><?php echo T_('Member Since'); ?></dt> - <dd><?php echo date($GLOBALS['longdate'], strtotime($row['uDatetime'])); ?></dd> + <dd><?php echo date($GLOBALS['longdate'], strtotime($objectUser->getDatetime())); ?></dd> <?php -if ($row['uContent'] != "") { +if ($objectUser->getContent() != "") { ?> <dt><?php echo T_('Description'); ?></dt> - <dd><?php echo $row['uContent']; ?></dd> + <dd><?php echo $objectUser->getContent(); ?></dd> <?php } $watching = $userservice->getWatchNames($userid); |