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