Changeset 1254 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 03/25/2009 07:01:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r1250 r1254 535 535 536 536 function bp_activation_page( $echo = true ) { 537 global $bp; 538 537 539 if ( bp_has_custom_activation_page() ) { 538 540 if ( $echo ) 539 echo site_url(ACTIVATION_SLUG);541 echo $bp->root_domain . '/' . ACTIVATION_SLUG; 540 542 else 541 return site_url(ACTIVATION_SLUG);543 return $bp->root_domain . '/' . ACTIVATION_SLUG; 542 544 } else { 543 545 if ( $echo ) 544 echo site_url('wp-activate.php');546 echo $bp->root_domain . '/wp-activate.php'; 545 547 else 546 return site_url('wp-activate.php');548 return $bp->root_domain . '/wp-activate.php'; 547 549 } 548 550 } … … 551 553 global $bp; 552 554 553 return apply_filters( 'bp_search_form_action', site_url('search'));555 return apply_filters( 'bp_search_form_action', $bp->root_domain . '/search' ); 554 556 } 555 557 … … 590 592 591 593 function bp_login_bar() { 594 global $bp; 595 592 596 if ( !is_user_logged_in() ) : ?> 593 597 594 <form name="login-form" id="login-form" action="<?php echo site_url( '/wp-login.php' )?>" method="post">598 <form name="login-form" id="login-form" action="<?php echo $bp->root_domain . '/wp-login.php' ?>" method="post"> 595 599 <input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" /> 596 600 <input type="password" name="pwd" id="user_pass" class="input" value="" /> … … 614 618 <?php 615 619 if ( function_exists('wp_logout_url') ) { 616 $logout_link = '/ <a href="' . wp_logout_url( site_url()) . '">' . __( 'Log Out', 'buddypress' ) . '</a>';620 $logout_link = '/ <a href="' . wp_logout_url( $bp->root_domain ) . '">' . __( 'Log Out', 'buddypress' ) . '</a>'; 617 621 } else { 618 $logout_link = '/ <a href="' . site_url( '/wp-login.php?action=logout&redirect_to=' . site_url() ). '">' . __( 'Log Out', 'buddypress' ) . '</a>';622 $logout_link = '/ <a href="' . $bp->root_domain . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain . '">' . __( 'Log Out', 'buddypress' ) . '</a>'; 619 623 } 620 624
Note: See TracChangeset
for help on using the changeset viewer.