Guest User

r-a-y

a guest
Mar 1st, 2010
154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*------------- Removes Logo Visit link from Admin Bar --------------------*/
  3. function modify_adminbar(){
  4. remove_action( 'bp_adminbar_logo', 'bp_adminbar_logo' );
  5. remove_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 7 );
  6. remove_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
  7. }
  8. add_action('plugins_loaded','modify_adminbar',99);
  9.  
  10. function custom_mainnav_buttons() {
  11. echo '<li class="bp-login no-arrow"><a href="/">Home</a></li>';
  12. echo '<li><a href="/blog/">Blog</a>
  13. <ul>
  14. <li class="bp-login no-arrow"><a href="/blog/category/concerts-and-events/">Concerts and Events</a>
  15. <ul>
  16. <li class="bp-login no-arrow"><a href="/blog/category/concerts-and-events/after-the-show/">After The Show</a></li>
  17. <li class="bp-login no-arrow"><a href="/blog/category/concerts-and-events/featured-concert/">Featured Concert</a></li>
  18. <li class="bp-login no-arrow"><a href="/blog/category/concerts-and-events/featured-event/">Featured Event</a></li>
  19. <li class="bp-login no-arrow"><a href="/blog/category/concerts-and-events/featured-tour/">Featured Tour</a></li>
  20. </ul>
  21. </li>
  22. <li class="bp-login no-arrow"><a href="/blog/category/interviews/">Interviews</a>
  23. <ul>
  24. <li class="bp-login no-arrow"><a href="/blog/category/interviews/featured-musician/">Featured Solo Musician</a>
  25. <li class="bp-login no-arrow"><a href="/blog/category/interviews/featured-band/">Featured Band</a>
  26. <li class="bp-login no-arrow"><a href="/blog/category/interviews/featured-vendor/">Featured Vendor</a>
  27. <li class="bp-login no-arrow"><a href="/blog/category/interviews/featured-venue/">Featured Venue</a>
  28. <li class="bp-login no-arrow"><a href="/blog/category/interviews/on-the-road/">On The Road</a>
  29. <li class="bp-login no-arrow"><a href="/blog/category/interviews/studio-tours/">Studio Tours</a>
  30. </ul>
  31. </li>
  32. <li class="bp-login no-arrow"><a href="/blog/category/music-tech/">Music Tech</a>
  33. <ul>
  34. <li class="bp-login no-arrow"><a href="/blog/category/music-tech/for-the-stage/">For The Stage</a></li>
  35. <li class="bp-login no-arrow"><a href="/blog/category/music-tech/for-the-studio/">For The Studio</a><li>
  36. </ul>
  37. </li>
  38. <li class="bp-login no-arrow"><a href="/blog/category/new-releases/">New Releases</a>
  39. <ul>
  40. <li class="bp-login no-arrow"><a href="/blog/category/new-releases/albums/">Albums</a></li>
  41. <li class="bp-login no-arrow"><a href="/blog/category/new-releases/equipment/">Equipment</a></li>
  42. </ul>
  43. <li class="bp-login no-arrow"><a href="/blog/category/band-source-updates/">Band-Source Updates</a></li>
  44. </li>
  45. </ul></li>';
  46. echo '<li class="bp-login no-arrow"><a href="/activity/">Activity</a></li>';
  47. echo '<li class="bp-login no-arrow"><a href="/members/">Member Search</a></li>';
  48. echo '<li class="bp-login no-arrow"><a href="/groups/">Groups</a></li>';
  49. echo '<li class="bp-login no-arrow"><a href="/forums/">Forums</a></li>';
  50. echo '<li class="bp-login no-arrow"><a href="/contact-us/">Contact Us</a>
  51. <ul>
  52. <li class="bp-login no-arrow"><a href="/contact-advertising/">Advertising Inquiry</a></li>
  53. <li class="bp-login no-arrow"><a href="/contact-general/">General Inquiry</a><li>
  54. <li class="bp-login no-arrow"><a href="/contact-bug/">Report a Bug</a><li>
  55. <li class="bp-login no-arrow"><a href="/contact-tech/">Technical Assistance</a><li>
  56. </ul>
  57. </li>';
  58. // each button must be within the code below:
  59. }
  60. add_action('bp_adminbar_menus', 'custom_mainnav_buttons', 1);
  61. ?>
RAW Paste Data