|
46 | 46 | $CountNotifications = $User->CountNotifications;
|
47 | 47 | $CNotifications = is_numeric($CountNotifications) && $CountNotifications > 0 ? '<span class="Alert NotificationsAlert">'.$CountNotifications.'</span>' : '';
|
48 | 48 |
|
49 |
| - echo '<span class="ToggleFlyout" rel="/profile/notificationspopin?TransientKey='.htmlspecialchars(urlencode($transientKey)).'">'; |
50 |
| - echo anchor(sprite('SpNotifications', 'Sprite Sprite16', t('Notifications')).$CNotifications, userUrl($User), 'MeButton FlyoutButton js-clear-notifications', ['title' => t('Notifications'), 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); |
51 |
| - echo sprite('SpFlyoutHandle', 'Arrow'); |
52 |
| - echo '<div class="Flyout FlyoutMenu Flyout-withFrame"></div></span>'; |
53 |
| - |
| 49 | + $showNotifications = false; |
| 50 | + if($showNotifications) { |
| 51 | + echo '<span class="ToggleFlyout" rel="/profile/notificationspopin?TransientKey=' . htmlspecialchars(urlencode($transientKey)) . '">'; |
| 52 | + echo anchor(sprite('SpNotifications', 'Sprite Sprite16', t('Notifications')) . $CNotifications, userUrl($User), 'MeButton FlyoutButton js-clear-notifications', ['title' => t('Notifications'), 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); |
| 53 | + echo sprite('SpFlyoutHandle', 'Arrow'); |
| 54 | + echo '<div class="Flyout FlyoutMenu Flyout-withFrame"></div></span>'; |
| 55 | + } |
54 | 56 | // Inbox
|
55 |
| - if (Gdn::addonManager()->lookupAddon('conversations')) { |
| 57 | + $showInbox = false; |
| 58 | + if ($showInbox && Gdn::addonManager()->lookupAddon('conversations')) { |
56 | 59 | $CountInbox = val('CountUnreadConversations', Gdn::session()->User);
|
57 | 60 | $CInbox = is_numeric($CountInbox) && $CountInbox > 0 ? ' <span class="Alert">'.$CountInbox.'</span>' : '';
|
58 | 61 | echo '<span class="ToggleFlyout" rel="/messages/popin">';
|
|
62 | 65 | }
|
63 | 66 |
|
64 | 67 | // Bookmarks
|
65 |
| - if (Gdn::addonManager()->lookupAddon('Vanilla')) { |
| 68 | + $showBookmarks = false; |
| 69 | + if ($showBookmarks && Gdn::addonManager()->lookupAddon('Vanilla')) { |
66 | 70 | echo '<span class="ToggleFlyout" rel="/discussions/bookmarkedpopin">';
|
67 | 71 | echo anchor(sprite('SpBookmarks', 'Sprite Sprite16', t('Bookmarks')), '/discussions/bookmarked', 'MeButton FlyoutButton', ['title' => t('Bookmarks'), 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]);
|
68 | 72 | echo sprite('SpFlyoutHandle', 'Arrow');
|
|
76 | 80 |
|
77 | 81 | if ($useNewFlyouts) {
|
78 | 82 | $imgUrl = userPhotoUrl($User);
|
79 |
| - $triggerIcon = "<img class='ProfilePhoto ProfilePhotoSmall' src='$imgUrl'/>"; |
| 83 | + $triggerIcon = "<span><img class='ProfilePhoto ProfilePhotoSmall' src='$imgUrl'/><span class='Username'>".$User->Name."</span><span class='icon icon-chevron-down'></span></span>"; |
80 | 84 | } else {
|
81 | 85 | $triggerIcon = sprite('SpOptions', 'Sprite Sprite16', $triggerTitle);
|
82 | 86 | }
|
83 | 87 |
|
84 |
| - $dropdown->setTrigger('', 'anchor', 'MeButton FlyoutButton MeButton-user', $triggerIcon, '/profile', ['title' => $triggerTitle, 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); |
| 88 | + $dropdown->setTrigger('', 'anchor', 'MeButton FlyoutButton MeButton-user TopcoderMeButton', $triggerIcon, '/profile', ['title' => $triggerTitle, 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); |
85 | 89 | $editModifiers['listItemCssClasses'] = ['EditProfileWrap', 'link-editprofile'];
|
86 | 90 | $preferencesModifiers['listItemCssClasses'] = ['EditProfileWrap', 'link-preferences'];
|
87 | 91 |
|
|
121 | 125 |
|
122 | 126 | echo '<div class="SignInLinks">';
|
123 | 127 |
|
124 |
| - echo anchor(t('Sign In'), signInUrl($this->_Sender->SelfUrl), (signInPopup() ? ' SignInPopup' : ''), ['rel' => 'nofollow']); |
125 |
| - $Url = registerUrl($this->_Sender->SelfUrl); |
126 |
| - if (!empty($Url)) |
127 |
| - echo bullet(' ').anchor(t('Register'), $Url, 'ApplyButton', ['rel' => 'nofollow']).' '; |
| 128 | + echo anchor(t('Login'), signInUrl($this->_Sender->SelfUrl), (signInPopup() ? ' SignInPopup' : ''), ['rel' => 'nofollow']); |
| 129 | + // $Url = registerUrl($this->_Sender->SelfUrl); |
| 130 | + // if (!empty($Url)) { |
| 131 | + // echo bullet(' ').anchor(t('Register'), $Url, 'ApplyButton', ['rel' => 'nofollow']).' '; |
| 132 | + // } |
128 | 133 | echo '</div>';
|
129 | 134 |
|
130 | 135 | echo ' <div class="SignInIcons">';
|
|
0 commit comments