Warning: This function has been deprecated.
bp_adminbar_random_menu()
Output the Random BuddyBar menu.
Description Description
Not visible for logged-in users.
Source Source
File: bp-core/deprecated/2.1.php
function bp_adminbar_random_menu() { ?> <li class="align-right" id="bp-adminbar-visitrandom-menu"> <a href="#"><?php _e( 'Visit', 'buddypress' ) ?></a> <ul class="random-list"> <li><a href="<?php bp_members_directory_permalink(); ?>?random-member" rel="nofollow"><?php _e( 'Random Member', 'buddypress' ) ?></a></li> <?php if ( bp_is_active( 'groups' ) ) : ?> <li class="alt"><a href="<?php bp_groups_directory_permalink(); ?>?random-group" rel="nofollow"><?php _e( 'Random Group', 'buddypress' ) ?></a></li> <?php endif; ?> <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?> <li><a href="<?php bp_blogs_directory_permalink(); ?>?random-blog" rel="nofollow"><?php _e( 'Random Site', 'buddypress' ) ?></a></li> <?php endif; ?> <?php do_action( 'bp_adminbar_random_menu' ) ?> </ul> </li> <?php }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |