mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/trunk@1452 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
21 lines
No EOL
569 B
PHP
21 lines
No EOL
569 B
PHP
<?php
|
|
|
|
function bp_get_options_class() {
|
|
global $bp;
|
|
|
|
if ( ( !bp_is_home() && $bp->current_component == $bp->profile->slug ) || ( !bp_is_home() && $bp->current_component == $bp->friends->slug ) || ( !bp_is_home() && $bp->current_component == $bp->blogs->slug ) ) {
|
|
echo ' class="arrow"';
|
|
}
|
|
|
|
if ( ( $bp->current_component == $bp->groups->slug && $bp->is_single_item ) || ( $bp->current_component == $bp->groups->slug && !bp_is_home() ) )
|
|
echo ' class="arrow"';
|
|
}
|
|
|
|
function bp_has_icons() {
|
|
global $bp;
|
|
|
|
if ( ( !bp_is_home() ) )
|
|
echo ' class="icons"';
|
|
}
|
|
|
|
?>
|