made a copy
[atutor.git] / themes / default / profile.tmpl.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/\r
6 /* Adaptive Technology Resource Centre / University of Toronto                  */\r
7 /* http://atutor.ca                                                                                                             */\r
8 /*                                                                                                                                              */\r
9 /* This program is free software. You can redistribute it and/or                */\r
10 /* modify it under the terms of the GNU General Public License                  */\r
11 /* as published by the Free Software Foundation.                                                */\r
12 /************************************************************************/\r
13 // $Id: edit.php 3111 2005-01-18 19:32:00Z joel $\r
14 \r
15 \r
16 global $display_name_formats, $moduleFactory;\r
17 \r
18 ?>\r
19 <div class="input-form">\r
20         <div class="row">\r
21                 <p><a href="inbox/send_message.php?id=<?php echo $this->row['member_id']; ?>"><?php echo _AT('send_message'); ?></a></p>\r
22                 <dl id="public-profile">\r
23                         <?php $mod = $moduleFactory->getModule('_standard/profile_pictures'); \r
24                         if ($mod->isEnabled() === TRUE): ?>\r
25                                 <dt><?php echo _AT('picture'); ?></dt>\r
26                                 <dd><?php if (profile_image_exists($this->row['member_id'])): ?>\r
27                                         <a href="get_profile_img.php?id=<?php echo $this->row['member_id'].SEP.'size=o'; ?>"><?php print_profile_img($this->row['member_id'], 2); ?></a>\r
28                                         <?php else: ?>\r
29                                                 <?php echo _AT('none'); ?>\r
30                                         <?php endif; ?>\r
31                                 </dd>\r
32                         <?php endif; ?>\r
33 \r
34                         <dt><?php echo _AT('email'); ?></dt>\r
35                         <dd>\r
36                                 <?php if($this->row['private_email']): ?>\r
37                                         <?php echo _AT('private'); ?>\r
38                                 <?php else: ?>\r
39                                         <a href="mailto:<?php echo $this->row['email']; ?>"><?php echo $this->row['email']; ?></a>\r
40                                 <?php endif; ?>\r
41                         </dd>\r
42                 \r
43                         <dt><?php echo _AT('web_site'); ?></dt>\r
44                         <dd>\r
45                                 <?php if ($this->row['website']) { \r
46                                         echo '<a href="'.htmlspecialchars($this->row['website'], ENT_COMPAT, "UTF-8").'">'.AT_print($this->row['website'], 'members.website').'</a>'; \r
47                                 } else {\r
48                                         echo '--';\r
49                                 } ?>\r
50                         </dd>\r
51 \r
52                         <dt><?php echo _AT('phone'); ?></dt>\r
53                         <dd>\r
54                                 <?php if ($this->row['phone']) { \r
55                                         echo $this->row['phone'];\r
56                                 } else {\r
57                                         echo '--';\r
58                                 }\r
59                                 ?>\r
60                         </dd>\r
61                         \r
62                         <dt><?php echo _AT('status'); ?></dt>\r
63                         <dd><?php echo $this->status; ?></dd>                   \r
64                 </dl>\r
65 \r
66         </div>\r
67 </div>\r