mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-06-01 05:49:21 +08:00
Moving the bp_head and bp_footer actions outside of the template, and piggybacking them on WP core actions, causes problems for backward compatibility with themes that have mimicked BP's previous behavior of hardcoding the actions. Fixes #4339 git-svn-id: https://buddypress.svn.wordpress.org/trunk@6177 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
28 lines
No EOL
909 B
PHP
28 lines
No EOL
909 B
PHP
</div> <!-- #container -->
|
|
|
|
<?php do_action( 'bp_after_container' ); ?>
|
|
<?php do_action( 'bp_before_footer' ); ?>
|
|
|
|
<div id="footer">
|
|
<?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' ) ) : ?>
|
|
<div id="footer-widgets">
|
|
<?php get_sidebar( 'footer' ); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div id="site-generator" role="contentinfo">
|
|
<?php do_action( 'bp_dtheme_credits' ); ?>
|
|
<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>
|
|
</div>
|
|
|
|
<?php do_action( 'bp_footer' ); ?>
|
|
|
|
</div><!-- #footer -->
|
|
|
|
<?php do_action( 'bp_after_footer' ); ?>
|
|
|
|
<?php wp_footer(); ?>
|
|
|
|
</body>
|
|
|
|
</html>
|