6eb7e4b099a93834a2289e780be9a9228c11b8f6
[atutor.git] / docs / themes / default15 / profile.tmpl.php
1 <?php\r
2 /************************************************************************/\r
3 /* ATutor                                                                                                                               */\r
4 /************************************************************************/\r
5 /* Copyright (c) 2002-2010                                              */\r
6 /* Inclusive Design Institute                                           */\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 global $display_name_formats, $moduleFactory;\r
14 \r
15 ?>\r
16 <div class="input-form">\r
17         <div class="row">\r
18                 <p><a href="inbox/send_message.php?id=<?php echo $this->row['member_id']; ?>"><?php echo _AT('send_message'); ?></a></p>\r
19 \r
20                 <dl id="public-profile">\r
21                         <dt><?php echo _AT('email'); ?></dt>\r
22                         <dd>\r
23                                 <?php if($this->row['private_email']): ?>\r
24                                         <?php echo _AT('private'); ?>\r
25                                 <?php else: ?>\r
26                                         <a href="mailto:<?php echo $this->row['email']; ?>"><?php echo $this->row['email']; ?></a>\r
27                                 <?php endif; ?>\r
28                         </dd>\r
29                 \r
30                         <dt><?php echo _AT('web_site'); ?></dt>\r
31                         <dd>\r
32                                 <?php if ($this->row['website']) { \r
33                                         echo '<a href="'.htmlspecialchars($this->row['website'], ENT_COMPAT, "UTF-8").'">'.AT_print($this->row['website'], 'members.website').'</a>'; \r
34                                 } else {\r
35                                         echo '--';\r
36                                 } ?>\r
37                         </dd>\r
38 \r
39                         <dt><?php echo _AT('phone'); ?></dt>\r
40                         <dd>\r
41                                 <?php if ($this->row['phone']) { \r
42                                         echo $this->row['phone'];\r
43                                 } else {\r
44                                         echo '--';\r
45                                 }\r
46                                 ?>\r
47                         </dt>\r
48 \r
49                         <dt><?php echo _AT('status'); ?></dt>\r
50                         <dd><?php echo $this->status; ?></dd>\r
51 \r
52                         <?php $mod = $moduleFactory->getModule('_standard/profile_pictures'); \r
53                         if ($mod->isEnabled() === TRUE): ?>\r
54                                 <dt><?php echo _AT('picture'); ?></dt>\r
55                                 <dd><?php if (profile_image_exists($this->row['member_id'])): ?>\r
56                                         <a href="get_profile_img.php?id=<?php echo $this->row['member_id'].SEP.'size=o'; ?>"><?php print_profile_img($this->row['member_id']); ?></a>\r
57                                         <?php else: ?>\r
58                                                 <?php echo _AT('none'); ?>\r
59                                         <?php endif; ?>\r
60                                 </dd>\r
61                         <?php endif; ?>\r
62                 </dl>\r
63                 <div style="clear: both; size: 1em"></div>\r
64         </div>\r
65 </div>\r