diff --git a/Topcoder/views/modules/topcoderme.php b/Topcoder/views/modules/topcoderme.php index 03db764..97d5c2f 100644 --- a/Topcoder/views/modules/topcoderme.php +++ b/Topcoder/views/modules/topcoderme.php @@ -46,13 +46,16 @@ $CountNotifications = $User->CountNotifications; $CNotifications = is_numeric($CountNotifications) && $CountNotifications > 0 ? ''.$CountNotifications.'' : ''; - echo ''; - 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"]); - echo sprite('SpFlyoutHandle', 'Arrow'); - echo '
'; - + $showNotifications = false; + if($showNotifications) { + echo ''; + 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"]); + echo sprite('SpFlyoutHandle', 'Arrow'); + echo '
'; + } // Inbox - if (Gdn::addonManager()->lookupAddon('conversations')) { + $showInbox = false; + if ($showInbox && Gdn::addonManager()->lookupAddon('conversations')) { $CountInbox = val('CountUnreadConversations', Gdn::session()->User); $CInbox = is_numeric($CountInbox) && $CountInbox > 0 ? ' '.$CountInbox.'' : ''; echo ''; @@ -62,7 +65,8 @@ } // Bookmarks - if (Gdn::addonManager()->lookupAddon('Vanilla')) { + $showBookmarks = false; + if ($showBookmarks && Gdn::addonManager()->lookupAddon('Vanilla')) { echo ''; echo anchor(sprite('SpBookmarks', 'Sprite Sprite16', t('Bookmarks')), '/discussions/bookmarked', 'MeButton FlyoutButton', ['title' => t('Bookmarks'), 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); echo sprite('SpFlyoutHandle', 'Arrow'); @@ -76,12 +80,12 @@ if ($useNewFlyouts) { $imgUrl = userPhotoUrl($User); - $triggerIcon = ""; + $triggerIcon = "".$User->Name.""; } else { $triggerIcon = sprite('SpOptions', 'Sprite Sprite16', $triggerTitle); } - $dropdown->setTrigger('', 'anchor', 'MeButton FlyoutButton MeButton-user', $triggerIcon, '/profile', ['title' => $triggerTitle, 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); + $dropdown->setTrigger('', 'anchor', 'MeButton FlyoutButton MeButton-user TopcoderMeButton', $triggerIcon, '/profile', ['title' => $triggerTitle, 'tabindex' => '0', "role" => "button", "aria-haspopup" => "true"]); $editModifiers['listItemCssClasses'] = ['EditProfileWrap', 'link-editprofile']; $preferencesModifiers['listItemCssClasses'] = ['EditProfileWrap', 'link-preferences']; @@ -121,10 +125,11 @@ echo ''; echo '
';