bp_adminbar_random_menu

Output the Random BuddyBar menu.

Description

bp_adminbar_random_menu(); 

Not visible for logged-in users.


Usage

  1. if ( !function_exists( 'bp_adminbar_random_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.1.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_adminbar_random_menu(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/2.1.php  
  1. function bp_adminbar_random_menu() { 
  2. ?> 
  3.  
  4. <li class="align-right" id="bp-adminbar-visitrandom-menu"> 
  5. <a href="#"><?php _e( 'Visit', buddypress ) ?></a> 
  6. <ul class="random-list"> 
  7. <li><a href="<?php bp_members_directory_permalink(); ?>?random-member" rel="nofollow"><?php _e( 'Random Member', buddypress ) ?></a></li> 
  8.  
  9. <?php if ( bp_is_active( 'groups' ) ) : ?> 
  10.  
  11. <li class="alt"><a href="<?php bp_groups_directory_permalink(); ?>?random-group" rel="nofollow"><?php _e( 'Random Group', buddypress ) ?></a></li> 
  12.  
  13. <?php endif; ?> 
  14.  
  15. <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?> 
  16.  
  17. <li><a href="<?php bp_blogs_directory_permalink(); ?>?random-blog" rel="nofollow"><?php _e( 'Random Site', buddypress ) ?></a></li> 
  18.  
  19. <?php endif; ?> 
  20.  
  21.  
  22. </ul> 
  23. </li> 
  24.  
  25. <?php