remove old readme
[atutor.git] / docs / themes / default / 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 // $Id: edit.php 3111 2005-01-18 19:32:00Z joel $\r
14 \r
15 \r
16 global $display_name_formats, $moduleFactory, $db, $_modules;\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                                 <?php\r
28                                         //run a check to see if any personal album exists, if not, create one.\r
29                                         $sql = 'SELECT * FROM '.TABLE_PREFIX.'pa_albums WHERE member_id='.$this->row['member_id'].' AND type_id='.AT_PA_TYPE_PERSONAL;\r
30                                         $result = mysql_query($sql, $db);\r
31                                         if ($result){\r
32                                                 $row = mysql_fetch_assoc($result);      //album info.\r
33                                                 $aid = $row['id'];\r
34                                         }\r
35                                         if (in_array('mods/_standard/photos/index.php', $_modules)){\r
36                                                 $img_link = AT_PA_BASENAME.'albums.php?id='.$aid;\r
37                                         } else {\r
38                                                 $img_link = 'get_profile_img.php?id='.$this->row['member_id'].SEP.'size=o';\r
39                                         }\r
40                                 ?>\r
41                                         <a href="<?php echo $img_link ?>"><?php print_profile_img($this->row['member_id'], 2); ?></a>\r
42                                         <?php else: ?>\r
43                                                 <?php echo _AT('none'); ?>\r
44                                         <?php endif; ?>\r
45                                 </dd>\r
46                         <?php endif; ?>\r
47 \r
48                         <dt><?php echo _AT('email'); ?></dt>\r
49                         <dd>\r
50                                 <?php if($this->row['private_email']): ?>\r
51                                         <?php echo _AT('private'); ?>\r
52                                 <?php else: ?>\r
53                                         <a href="mailto:<?php echo $this->row['email']; ?>"><?php echo $this->row['email']; ?></a>\r
54                                 <?php endif; ?>\r
55                         </dd>\r
56                 \r
57                         <dt><?php echo _AT('web_site'); ?></dt>\r
58                         <dd>\r
59                                 <?php if ($this->row['website']) { \r
60                                         echo '<a href="'.htmlspecialchars($this->row['website'], ENT_COMPAT, "UTF-8").'">'.AT_print($this->row['website'], 'members.website').'</a>'; \r
61                                 } else {\r
62                                         echo '--';\r
63                                 } ?>\r
64                         </dd>\r
65 \r
66                         <dt><?php echo _AT('phone'); ?></dt>\r
67                         <dd>\r
68                                 <?php if ($this->row['phone']) { \r
69                                         echo $this->row['phone'];\r
70                                 } else {\r
71                                         echo '--';\r
72                                 }\r
73                                 ?>\r
74                         </dd>\r
75                         \r
76                         <dt><?php echo _AT('status'); ?></dt>\r
77                         <dd><?php echo $this->status; ?></dd>                   \r
78                 </dl>\r
79 \r
80         </div>\r
81 </div>\r