2 //Profile template for social
6 <div><h2><?php echo printSocialName($this->profile['member_id'], false); ?></h2></div>
7 <div style="float:left; width:40%;">
8 <div class="headingbox" style="margin-right:1em;">
9 <h5><?php echo _AT('profile'); ?></h5>
11 <div class="contentbox" style="margin-right:1em;">
12 <?php if ($this->scope=='owner'): ?>
13 <div style="float:right; border:thin #cccccc solid;">
14 <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME."edit_profile.php");?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/edit_profile.gif" alt="<?php echo _AT('edit_profile'); ?>" title="<?php echo _AT('edit_profile'); ?>" border="0"/></a>
17 <a href="get_profile_img.php?id=<?php echo $this->profile['member_id'].SEP ;?>size=o"><?php echo printSocialProfileImg($this->profile['member_id'], 2, false); ?></a>
18 <p><a href="inbox/send_message.php?id=<?php echo $this->profile['member_id']; ?>"><?php echo _AT('send_message'); ?></a></p>
19 <dl class="public-profile">
20 <?php if($this->profile['occupation']){ ?>
21 <dt><?php echo _AT('occupation'); ?></dt>
22 <dd><?php echo $this->profile['occupation']; ?></dd>
24 <?php if($this->profile['expertise']){ ?>
25 <dt><?php echo _AT('expertise'); ?></dt>
26 <dd><?php echo $this->profile['expertise']; ?></dd>
28 <?php if ($this->relationship==AT_SOCIAL_FRIENDS_VISIBILITY || $this->relationship==AT_SOCIAL_OWNER_VISIBILITY): ?>
29 <?php if($this->profile['email']): ?>
30 <dt><?php echo _AT('email'); ?></dt>
31 <dd><?php echo $this->profile['email']; ?></dd>
34 <?php if($this->profile['gender']){ ?>
35 <dt><?php echo _AT('gender'); ?></dt>
36 <dd><?php echo $this->profile['gender']; ?></dd>
38 <?php if($this->profile['dob']){ ?>
39 <dt><?php echo _AT('dob'); ?></dt>
40 <dd><?php echo $this->profile['dob']; ?></dd>
42 <?php if($this->profile['phone']){ ?>
43 <dt><?php echo _AT('phone'); ?></dt>
44 <dd><?php echo $this->profile['phone']; ?></dd>
46 <?php if($this->profile['country']){ ?>
47 <dt><?php echo _AT('country'); ?></dt>
48 <dd><?php echo $this->profile['country']; ?></dd>
50 <?php if($this->profile['postal']){ ?>
51 <dt><?php echo _AT('street_address'); ?></dt>
52 <dd><?php echo $this->profile['postal']; ?></dd>
54 <?php if($this->profile['interests']){ ?>
55 <dt><?php echo _AT('interests'); ?></dt>
56 <dd><?php echo $this->profile['interests']; ?></dd>
58 <?php if($this->profile['associations']){ ?>
59 <dt><?php echo _AT('associations'); ?></dt>
60 <dd><?php echo $this->profile['associations']; ?></dd>
62 <?php if($this->profile['awards']){ ?>
63 <dt><?php echo _AT('awards'); ?></dt>
64 <dd><?php echo $this->profile['awards']; ?></dd>
66 <?php if($this->profile['others']){ ?>
67 <dt><?php echo _AT('others'); ?></dt>
68 <dd><?php echo $this->profile['others']; ?></dd>
74 <div style="float:left; width:59%;">
75 <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_EDUCATION, $this->relationship, $this->prefs)): ?>
76 <?php if (!empty($this->education)){ ?>
78 <div class="headingbox"><h5><?php echo _AT('training_and_education'); ?></h5></div>
79 <div class="contentbox">
80 <table class="data static">
82 <th> <?php echo _AT('institution'); ?></th>
83 <th> <?php echo _AT('degrees'); ?></th>
84 <th> <?php echo _AT('year'); ?></th>
88 foreach($this->education as $edu){
89 echo '<tr><td>'.$edu['university'].'</td>';
90 echo '<td>'.$edu['degree'].'/'.$edu['field'].'/'.$edu['field'].'</td>';
91 echo '<td>'.$edu['from'].'-'.$edu['to'].'</td></tr>';
101 <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_POSITION, $this->relationship, $this->prefs)): ?>
103 <?php if (!empty($this->position)){ ?>
105 <div class="headingbox"><h5><?php echo _AT('credits_and_work_experience'); ?></h5></div>
106 <div class="contentbox">
107 <table class="data static">
109 <th><?php echo _AT('company'); ?></th>
110 <th><?php echo _AT('title'); ?></th>
111 <th><?php echo _AT('year'); ?></th>
115 foreach($this->position as $pos){
116 echo '<tr><td>'.$pos['company'].'</td>';
117 echo '<td>'.$pos['title'].'</td>';
118 echo '<td>'.$pos['from'].'-'.$pos['to'].'</td></tr>';
127 <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_MEDIA, $this->relationship, $this->prefs)): ?>
129 <?php if (!empty($this->websites)): ?>
130 <div class="headingbox"><h5><?php echo _AT('websites'); ?></h5></div>
131 <div class="contentbox">
132 <table class="data static">
134 <th><?php echo _AT('site_name'); ?></th>
135 <th><?php echo _AT('url'); ?></th>
139 foreach($this->websites as $sites){
140 echo '<tr><td>'.$sites['site_name'].'</td>';
141 echo '<td><a href="'.$sites['url'].'">'.$sites['url'].'</a></td></tr>';
151 <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_STATUS_UPDATE, $this->relationship, $this->prefs)): ?>
152 <div class="headingbox">
153 <h5><?php echo _AT('activities'); ?></h5></div>
154 <div class="contentbox" id="activity">
155 <?php if(!empty($this->activities)): ?>
158 foreach($this->activities as $id=>$activity):
160 * harris @may 26, 2009
161 * Would be nice to use this, but we will have to change "has" to "have" for _AT('you')
163 if ($_SESSION['member_id']== $this->profile['member_id']){
164 echo '<li>'._AT('you');
165 echo ' '.$activity.' ';
166 echo '<a href="'.url_rewrite(AT_SOCIAL_BASENAME.'sprofile.php?delete='.$id).'"><img src="'.$_base_href.AT_SOCIAL_BASENAME.'images/b_drop.png" alt="'._AT('remove').'" title="'._AT('remove').'" border="0" /></a></li>';
168 echo '<li>'.printSocialName($this->profile['member_id']).' '.$activity.'</li>';
172 <li><?php echo $activity['created_date']. ' - '. printSocialName($activity['member_id']).' '. $activity['title']; ?></li>
176 <?php echo _AT('no_activities'); ?>
181 <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_CONNECTION, $this->relationship, $this->prefs)): ?>
182 <div class="headingbox">
183 <h5><?php echo _AT('connections'); ?></h5>
185 <div class="contentbox">
186 <?php if (sizeof($this->friends)>0):
187 foreach($this->friends as $friend_id): ?>
188 <div style="float:left; margin-left:1em;">
189 <?php echo printSocialProfileImg($friend_id); ?><br/>
190 <?php echo printSocialName($friend_id); ?>
194 echo _AT('no_friends');
198 <?php if (isset($this->mutual_friends)): ?>
199 <div class="headingbox">
200 <h5><?php echo _AT('mutual_connections'); ?></h5>
202 <div class="contentbox">
203 <?php foreach($this->mutual_friends as $friend_id): ?>
204 <div style="float:left; margin-left:1em;">
205 <?php echo printSocialProfileImg($friend_id); ?><br/>
206 <?php echo printSocialName($friend_id); ?>
210 <?php endif; //this->mutual_friends != empty ?>