Changeset 5736
- Timestamp:
- 02/12/2012 07:58:09 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-hooks.php
r5524 r5736 68 68 add_action( 'bp_ready', 'bp_screens', 4 ); 69 69 70 /** Theme *********************************************************************/ 71 72 // Piggy back WordPress theme actions 73 add_action( 'wp_head', 'bp_head' ); 74 add_action( 'wp_footer', 'bp_footer' ); 75 70 76 /** Admin Bar *****************************************************************/ 71 77 72 78 // Setup the navigation menu 73 add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 79 add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 11 ); 74 80 75 81 /** The hooks *****************************************************************/ … … 217 223 } 218 224 225 /** Theme *********************************************************************/ 226 227 /** 228 * Piggy-back action for BuddyPress specific <head> actions in a theme 229 * 230 * @since BuddyPress (1.6) 231 * 232 * @uses do_action() Calls 'bp_head' hook 233 */ 234 function bp_head() { 235 do_action( 'bp_head' ); 236 } 237 238 /** 239 * Piggy-back action for BuddyPress specific footer actions in a theme 240 * 241 * @since BuddyPress (1.6) 242 * 243 * @uses do_action() Calls 'bp_footer' hook 244 */ 245 function bp_footer() { 246 do_action( 'bp_footer' ); 247 } 248 219 249 ?> -
trunk/bp-themes/bp-default/footer.php
r3771 r5736 1 1 </div> <!-- #container --> 2 2 3 <?php do_action( 'bp_after_container' ) ?>4 <?php do_action( 'bp_before_footer' )?>3 <?php do_action( 'bp_after_container' ); ?> 4 <?php do_action( 'bp_before_footer' ); ?> 5 5 6 6 <div id="footer"> 7 7 <?php if ( is_active_sidebar( 'first-footer-widget-area' ) || is_active_sidebar( 'second-footer-widget-area' ) || is_active_sidebar( 'third-footer-widget-area' ) || is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?> 8 8 <div id="footer-widgets"> 9 <?php get_sidebar( 'footer' ) ?>9 <?php get_sidebar( 'footer' ); ?> 10 10 </div> 11 11 <?php endif; ?> 12 12 13 13 <div id="site-generator" role="contentinfo"> 14 <?php do_action( 'bp_dtheme_credits' ) ?>15 <p><?php printf( __( 'Proudly powered by <a href="%1$s">WordPress</a> and <a href="%2$s">BuddyPress</a>.', 'buddypress' ), 'http://wordpress.org', 'http://buddypress.org' ) ?></p>14 <?php do_action( 'bp_dtheme_credits' ); ?> 15 <p><?php printf( __( 'Proudly powered by <a href="%1$s">WordPress</a> and <a href="%2$s">BuddyPress</a>.', 'buddypress' ), 'http://wordpress.org', 'http://buddypress.org' ); ?></p> 16 16 </div> 17 17 18 <?php do_action( 'bp_footer' ) ?> 18 <?php do_action( 'bp_in_footer' ); ?> 19 19 20 </div><!-- #footer --> 20 21 21 <?php do_action( 'bp_after_footer' ) ?>22 <?php do_action( 'bp_after_footer' ); ?> 22 23 23 <?php wp_footer(); ?>24 <?php wp_footer(); // @see bp_footer(); ?> 24 25 25 26 </body> -
trunk/bp-themes/bp-default/functions.php
r5539 r5736 139 139 */ 140 140 function bp_dtheme_enqueue_scripts() { 141 141 142 // Bump this when changes are made to bust cache 142 143 $version = '20111023'; … … 158 159 'remove_fav' => __( 'Remove Favorite', 'buddypress' ) 159 160 ); 160 161 161 wp_localize_script( 'dtheme-ajax-js', 'BP_DTheme', $params ); 162 163 // Maybe enqueue comment reply JS 164 if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) ) 165 wp_enqueue_script( 'comment-reply' ); 162 166 } 163 167 add_action( 'wp_enqueue_scripts', 'bp_dtheme_enqueue_scripts' ); -
trunk/bp-themes/bp-default/header.php
r5733 r5736 3 3 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> 4 4 <head profile="http://gmpg.org/xfn/11"> 5 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ) ?>; charset=<?php bloginfo( 'charset' )?>" />5 <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> 6 6 <?php if ( current_theme_supports( 'bp-default-responsive' ) ) : ?><meta name="viewport" content="width=device-width, initial-scale=1.0"><?php endif; ?> 7 7 <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title> 8 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 8 9 9 <?php do_action( 'bp_head' )?>10 <?php wp_head(); // @see bp_head(); ?> 10 11 11 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ) ?>" />12 13 <?php14 if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) )15 wp_enqueue_script( 'comment-reply' );16 17 wp_head();18 ?>19 12 </head> 20 13 … … 28 21 <h1 id="logo" role="banner"><a href="<?php echo home_url(); ?>" title="<?php _ex( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><?php bp_site_name(); ?></a></h1> 29 22 30 <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">23 <form action="<?php echo bp_search_form_action(); ?>" method="post" id="search-form"> 31 24 <label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label> 32 25 <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" /> 33 26 34 <?php echo bp_search_form_type_select() ?>27 <?php echo bp_search_form_type_select(); ?> 35 28 36 <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />29 <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ); ?>" /> 37 30 38 <?php wp_nonce_field( 'bp_search_form' ) ?>31 <?php wp_nonce_field( 'bp_search_form' ); ?> 39 32 40 33 </form><!-- #search-form --> 41 34 42 <?php do_action( 'bp_search_login_bar' ) ?>35 <?php do_action( 'bp_search_login_bar' ); ?> 43 36 44 37 </div><!-- .padder --> … … 49 42 </div> 50 43 51 <?php do_action( 'bp_header' ) ?>44 <?php do_action( 'bp_header' ); ?> 52 45 53 46 </div><!-- #header --> 54 47 55 <?php do_action( 'bp_after_header' )?>56 <?php do_action( 'bp_before_container' ) ?>48 <?php do_action( 'bp_after_header' ); ?> 49 <?php do_action( 'bp_before_container' ); ?> 57 50 58 51 <div id="container">
Note: See TracChangeset
for help on using the changeset viewer.