]> projects.mako.cc - scuttle/blob - templates/profile.tpl.php
Change cookie time to 2 years
[scuttle] / templates / profile.tpl.php
1 <?php
2 $userservice =& ServiceFactory::getServiceInstance('UserService');
3 $this->includeTemplate($GLOBALS['top_include']);
4 ?>
5
6 <dl id="profile">
7 <dt><?php echo T_('Username'); ?></dt>
8     <dd><?php echo $user; ?></dd>
9 <?php
10 if ($row['name'] != "") {
11 ?>
12 <dt><?php echo T_('Name'); ?></dt>
13     <dd><?php echo $row['name']; ?></dd>
14 <?php
15 }
16 if ($row['homepage'] != "") {
17 ?>
18 <dt><?php echo T_('Homepage'); ?></dt>
19     <dd><a href="<?php echo $row['homepage']; ?>"><?php echo $row['homepage']; ?></a></dd>
20 <?php
21 }
22 ?>
23 <dt><?php echo T_('Member Since'); ?></dt>
24     <dd><?php echo date($GLOBALS['longdate'], strtotime($row['uDatetime'])); ?></dd>
25 <?php
26 if ($row['uContent'] != "") {
27 ?>
28 <dt><?php echo T_('Description'); ?></dt>
29     <dd><?php echo $row['uContent']; ?></dd>
30 <?php
31 }
32 $watching = $userservice->getWatchNames($userid);
33 if ($watching) {
34 ?>
35     <dt><?php echo T_('Watching'); ?></dt>
36         <dd>
37             <?php
38             $list = '';
39             foreach($watching as $watchuser) {
40                 $list .= '<a href="'. createURL('bookmarks', $watchuser) .'">'. $watchuser .'</a>, ';
41             }
42             echo substr($list, 0, -2);
43             ?>
44         </dd>
45 <?php
46 }
47 $watchnames = $userservice->getWatchNames($userid, true);
48 if ($watchnames) {
49 ?>
50     <dt><?php echo T_('Watched By'); ?></dt>
51         <dd>
52             <?php
53             $list = '';
54             foreach($watchnames as $watchuser) {
55                 $list .= '<a href="'. createURL('bookmarks', $watchuser) .'">'. $watchuser .'</a>, ';
56             }
57             echo substr($list, 0, -2);
58             ?>
59         </dd>
60 <?php
61 }
62 ?>
63 </dl>
64
65 <?php
66 $this->includeTemplate($GLOBALS['bottom_include']);
67 ?>

Benjamin Mako Hill || Want to submit a patch?