Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.17 KB | None | 0 0
  1. <ul id="global-nav">
  2.  
  3.     <?php if($this->Session->check('secret') == true): ?>
  4.  
  5.     <li><a href="/hangouts/">Hangouts</a></li>
  6.     <li><a href="/profile/">Profile</a></li>
  7.     <li><a href="/buddies/">Buddies</a></li>
  8.  
  9.     <?php else: ?>
  10.  
  11.     <li><a href="/login/" class="dialog" title="Sign In to Foound">Sign In</a></li>
  12.     <li><a href="/signup/" title="Join Now">Join Now</a></li>
  13.  
  14.     <?php endif; ?>
  15.  
  16. </ul>
  17.  
  18. <?php if($this->Session->check('secret') == true) : if (isset($count_unread)) : ?>
  19.  
  20. <div id="notifications-link">
  21.     <?php echo ($count_unread == 0) ? '' : '<span class="notification-unread">'.$count_unread.'</span> '; ?> <a href="/notifications/" id="shownotifications">Notifications</a>
  22. </div>
  23.  
  24. <div id="notifications-box" class="notifications-hide clearfix">
  25.    
  26.     <ul id="notificationsbox">
  27.  
  28.         <?php
  29.         // Display only latest 5 notifications
  30.         array_splice($notifications["data"]["rows"], 5);
  31.         foreach($notifications["data"]["rows"] as $message) : ?>
  32.        
  33.         <li class="notificationsbox-list-item<?php if ($message['doc']['Inbox']['status'] == 2) { echo ' notificationsbox-unread'; } ?>">
  34.  
  35.             <span class="icon icon-<?php print $foound->getnotificationclass($message['doc']['Inbox']['message_type']); ?>"></span>
  36.             <div class="notificationsbox-details">
  37.                 <h4><?php echo $foound->profile_link($message["doc"]["Inbox"]["sender_full_name"], $message["doc"]["Inbox"]["sender_id"]); ?></h4>
  38.                 <p class="notificationsbox-meta"><?php echo $foound->humantimediff($message["doc"]["Inbox"]["created"]); ?></p>
  39.                 <p class="notificationsbox-content"><?php //echo $foound->profile_link($message["doc"]["Inbox"]["sender_full_name"], $message["doc"]["Inbox"]["sender_id"]); ?> <?php echo $foound->getnotification($message["doc"]["Inbox"]["message_type"],$message["doc"]["Inbox"]["source_id"],$message["doc"]["Inbox"]["sender_id"]); ?></p>
  40.             </div>
  41.  
  42.         </li>
  43.  
  44.         <?php endforeach; ?>
  45.    
  46.     </ul>
  47.    
  48.     <div class="notificationsbox-seeall clearfix">
  49.         <a href="/notifications/">See All Notifications</a>
  50.     </div>
  51.    
  52. </div>
  53.    
  54. <?php endif; endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement