FUMAMX

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Pre test

AdaAda
edited December 2014 in General
      echo '';
// Notifications
$CountNotifications = $User->CountNotifications;
$CNotifications = is_numeric($CountNotifications) && $CountNotifications > 0 ? ''.$CountNotifications.'' : '';
echo UserPhoto($User);
echo '';
echo Anchor(Sprite('SpNotifications', 'Sprite Sprite16').Wrap(T('Notifications'), 'em').$CNotifications, UserUrl($User), 'MeButton FlyoutButton', array('title' => T('Notifications')));
echo Sprite('SpFlyoutHandle', 'Arrow');
echo '';

// Inbox
if (Gdn::ApplicationManager()->CheckApplication('Conversations')) {
$CountInbox = GetValue('CountUnreadConversations', Gdn::Session()->User);
$CInbox = is_numeric($CountInbox) && $CountInbox > 0 ? ' '.$CountInbox.'' : '';
echo '';
echo Anchor(Sprite('SpInbox', 'Sprite Sprite16').Wrap(T('Inbox'), 'em').$CInbox, '/messages/all', 'MeButton FlyoutButton', array('title' => T('Inbox')));
echo Sprite('SpFlyoutHandle', 'Arrow');
echo '';
}

// Bookmarks
if (Gdn::ApplicationManager()->CheckApplication('Vanilla')) {
echo '';
echo Anchor(Sprite('SpBookmarks', 'Sprite Sprite16').Wrap(T('Bookmarks'), 'em'), '/discussions/bookmarked', 'MeButton FlyoutButton', array('title' => T('Bookmarks')));
echo Sprite('SpFlyoutHandle', 'Arrow');
echo '';
}

Comments

  • testing
    This forum is not responsible for content others may post please read the privacy notice
Sign In or Register to comment.