Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul id="global-nav">
- <?php if($this->Session->check('secret') == true): ?>
- <li><a href="/hangouts/">Hangouts</a></li>
- <li><a href="/profile/">Profile</a></li>
- <li><a href="/buddies/">Buddies</a></li>
- <?php else: ?>
- <li><a href="/login/" class="dialog" title="Sign In to Foound">Sign In</a></li>
- <li><a href="/signup/" title="Join Now">Join Now</a></li>
- <?php endif; ?>
- </ul>
- <?php if($this->Session->check('secret') == true) : if (isset($count_unread)) : ?>
- <div id="notifications-link">
- <?php echo ($count_unread == 0) ? '' : '<span class="notification-unread">'.$count_unread.'</span> '; ?> <a href="/notifications/" id="shownotifications">Notifications</a>
- </div>
- <div id="notifications-box" class="notifications-hide clearfix">
- <ul id="notificationsbox">
- <?php
- // Display only latest 5 notifications
- array_splice($notifications["data"]["rows"], 5);
- foreach($notifications["data"]["rows"] as $message) : ?>
- <li class="notificationsbox-list-item<?php if ($message['doc']['Inbox']['status'] == 2) { echo ' notificationsbox-unread'; } ?>">
- <span class="icon icon-<?php print $foound->getnotificationclass($message['doc']['Inbox']['message_type']); ?>"></span>
- <div class="notificationsbox-details">
- <h4><?php echo $foound->profile_link($message["doc"]["Inbox"]["sender_full_name"], $message["doc"]["Inbox"]["sender_id"]); ?></h4>
- <p class="notificationsbox-meta"><?php echo $foound->humantimediff($message["doc"]["Inbox"]["created"]); ?></p>
- <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>
- </div>
- </li>
- <?php endforeach; ?>
- </ul>
- <div class="notificationsbox-seeall clearfix">
- <a href="/notifications/">See All Notifications</a>
- </div>
- </div>
- <?php endif; endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement