move code up one directory
[atutor.git] / themes / default / social / activities.tmpl.php
1
2 <div class="">
3         <div class="headingbox">
4                 <div style="float:right">
5                 <?php
6                         $user = new Member($_SESSION['member_id']); 
7                         $count = $user->getVisitors();
8                         echo _AT('visitor_counts').': '.$count['total'];
9                 ?>
10                 </div>
11                 <h3><?php echo _AT('network_updates'); ?></h3>
12         </div>
13
14
15         <div class="contentbox">
16         <?php
17         /**
18          * Loop through all the friends and print out a list.  
19          */
20         if (!empty($this->activities)): ?>
21                         <ul>
22                                 <?php foreach ($this->activities as $id=>$array): ?>
23                                 <li class="activity"><?php echo $array['created_date']. ' - '. printSocialName($array['member_id']).' '. $array['title']; ?></li>
24                                 <?php endforeach; ?>
25                         </ul>
26                         <?php //little hack, show_all will only be displayed when the flag is used.
27                         if (sizeof($this->activities)==SOCIAL_FRIEND_ACTIVITIES_MAX): ?>
28                         <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'activities.php', AT_PRETTY_URL_IS_HEADER); ?>"><?php echo _AT('show_all');?></a>
29                         <?php endif; ?> 
30         <?php else: ?>
31         <?php echo _AT('no_activities'); ?>
32         <?php endif; ?>
33         </div><br />
34 </div>