BP_Admin::about_screen()
Output the BuddyPress Hello template.
Description Description
Source Source
File: bp-core/classes/class-bp-admin.php
public function about_screen() {
if ( 0 !== strpos( get_current_screen()->id, 'dashboard' ) || empty( $_GET['hello'] ) || $_GET['hello'] !== 'buddypress' ) {
return;
}
// Get BuddyPress stable version.
$version = preg_replace( '/-.*/', '', bp_get_version() );
$version_slug = 'version-' . str_replace( '.', '-', $version );
?>
<div id="bp-hello-container">
<div id="plugin-information-scrollable">
<div id='plugin-information-title' class="with-banner">
<div class='vignette'></div>
<h2>
<?php printf(
/* translators: %s is the placehoder for the BuddyPress version number. */
esc_html__( 'BuddyPress %s', 'buddypress' ),
$version
); ?>
</h2>
</div>
<div id="plugin-information-tabs">
<a name="whats-new" href="#whats-new" class="current"><?php esc_html_e( 'What\'s new?', 'buddypress' ); ?></a>
<a name="changelog" href="#changelog" class="dynamic" data-slug="<?php echo esc_attr( $version_slug ); ?>" data-endpoint="https://codex.buddypress.org/wp-json/wp/v2/pages"><?php esc_html_e( 'Changelog', 'buddypress' ); ?></a>
<a name="get-involved" href="#get-involved" class="dynamic" data-slug="participate-and-contribute" data-endpoint="https://codex.buddypress.org/wp-json/wp/v2/pages"><?php esc_html_e( 'Get involved', 'buddypress' ); ?></a>
</div>
<div class="bp-hello-content">
<div id="dynamic-content"></div>
<div id="top-features">
<h2><?php esc_html_e( 'Introducing the BP REST API', 'buddypress' ); ?></h2>
<figure class="bp-hello-alignleft">
<div class="dashicons dashicons-rest-api big"></div>
</figure>
<p>
<?php esc_html_e( 'BuddyPress 5.0.0 comes with REST API endpoints for members, groups, activities, users, private messages, screen notifications and extended profiles.', 'buddypress' ); ?>
</p>
<p>
<?php esc_html_e( 'BuddyPress endpoints provide machine-readable external access to your WordPress site with a clear, standards-driven interface, paving the way for new and innovative methods of interacting with your community through plugins, themes, apps, and beyond.', 'buddypress' ); ?>
<?php printf(
/* translators: %s is the placehoder for the link to the BP REST API documentation site. */
esc_html__( 'Ready to get started with development? Check out the %s.', 'buddypress' ),
sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( 'https://developer.buddypress.org/bp-rest-api/' ),
esc_html__( 'BP REST API reference', 'buddypress' )
)
); ?>
</p>
<hr class="bp-hello-divider"/>
<h2><?php esc_html_e( 'A new interface for managing group members.', 'buddypress' ); ?></h2>
<p>
<?php esc_html_e( 'The best way to show the power of the BP REST API is to start using it for one of our Core features.', 'buddypress' ); ?>
</p>
<figure class="bp-hello-aligncenter">
<img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/manage-members-interface.png' ); ?>" alt="<?php esc_attr_e( 'Screenshot of the Group Members management interface in the administration and on the front-end of your site.', 'buddypress' ); ?>" />
</figure>
<p>
<?php esc_html_e( 'Group administrators will love our new interface for managing group membership. Whether you\'re working as a group admin on the front-end Manage tab, or as the site admin on the Dashboard, the new REST API-based tools are faster, easier to use, and more consistent.', 'buddypress' ); ?>
</p>
<hr class="bp-hello-divider"/>
<h2><?php esc_html_e( 'Improved Group invites and membership requests.', 'buddypress' ); ?></h2>
<figure class="bp-hello-alignright">
<div class="dashicons dashicons-buddicons-groups big"></div>
</figure>
<p>
<?php esc_html_e( 'Thanks to the new BP Invitations API, Group invites and membership requests are now managed in a more consistent way.', 'buddypress' ); ?>
</p>
<p>
<?php esc_html_e( 'The BP Invitations API abstracts how these two actions are handled and allows developers to use them for any object on your site (e.g., Sites of a WordPress network).', 'buddypress' ); ?>
<?php printf(
/* translators: %s is the placehoder for the link to the BP Invitations API development note. */
esc_html__( 'Read more about the %s.', 'buddypress' ),
sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( 'https://bpdevel.wordpress.com/2019/09/16/new-invitations-api-coming-in-buddypress-5-0/' ),
esc_html__( 'BP Invitations API', 'buddypress' )
)
); ?>
</p>
<hr class="bp-hello-divider"/>
<h2><?php esc_html_e( 'Help our support volunteers help you.', 'buddypress' ); ?></h2>
<p>
<?php esc_html_e( 'Knowing your WordPress and BuddyPress configuration is very important when one of our beloved support volunteers tries to help you fix an issue. That\'s why we added a BuddyPress section to the Site Health Info Administration screen.', 'buddypress' ); ?>
</p>
<figure class="bp-hello-aligncenter">
<img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/site-health-buddypress-section.png' ); ?>" alt="<?php esc_attr_e( 'Screenshot of the BuddyPress section of the Site Health Info Administration screen.', 'buddypress' ); ?>" />
</figure>
<p>
<?php esc_html_e( 'The panel is displayed at the bottom of the screen. It includes the BuddyPress version, active components, active template pack, and a list of other component-specific settings information.', 'buddypress' ); ?>
</p>
<hr class="bp-hello-divider"/>
<h2><?php esc_html_e( 'Improved integrations with WordPress', 'buddypress' ); ?></h2>
<figure class="bp-hello-aligncenter">
<img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/bp-nouveau-improvements.png' );?>" alt="<?php esc_attr_e( 'Screenshot of the BuddyPress members directory & Password control in Twenty Ninteen.', 'buddypress' ); ?>" />
</figure>
<p>
<?php esc_html_e( 'In BuddyPress 5.0.0, the BP Nouveau template pack looks better than ever with the Twenty Nineteen theme.', 'buddypress' ); ?>
<?php esc_html_e( 'Nouveau also now uses the same password control as the one used in WordPress Core, for better consistency between BuddyPress and WordPress spaces.', 'buddypress' ); ?>
</p>
<p>
<strong><?php esc_html_e( 'BuddyPress Blocks now have their own category into the Block Editor.', 'buddypress' ); ?></strong>
</p>
<figure class="bp-hello-aligncenter">
<img src="<?php echo esc_url( buddypress()->plugin_url . 'bp-core/images/buddypress-blocks-category.png' ); ?>" alt="<?php esc_attr_e( 'Screenshot of the BuddyPress block category.', 'buddypress' ); ?>" />
</figure>
<p>
<?php esc_html_e( 'Developers building tools for the Block Editor can now add their blocks to the BuddyPress category. This change provides a foundation for organizing custom BuddyPress blocks.', 'buddypress' ); ?>
<?php printf(
/* translators: %s is the placehoder for the link to the blocks category development note. */
esc_html__( 'Read more about this feature in the %s.', 'buddypress' ),
sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( 'https://bpdevel.wordpress.com/2019/07/31/a-category-to-store-your-buddypress-blocks/' ),
esc_html__( 'development note', 'buddypress' )
)
); ?>
</p>
<hr class="bp-hello-divider"/>
<h2><?php echo esc_html( _x( 'Your feedback', 'screen heading', 'buddypress' ) ); ?></h2>
<p>
<?php
printf(
/* translators: %s is the placehoder for the link to BuddyPress support forums. */
esc_html__( ' How are you using BuddyPress? Receiving your feedback and suggestions for future versions of BuddyPress genuinely motivates and encourages our contributors. Please %s about this version of BuddyPress on our website. ', 'buddypress' ),
sprintf(
'<a href="%1$s">%2$s</a>',
esc_url( 'https://buddypress.org/support/' ),
esc_html__( 'share your feedback', 'buddypress' )
)
);
?>
</p>
<p><?php esc_html_e( 'Thank you for using BuddyPress! 😊', 'buddypress' ); ?></p>
<br /><br />
</div>
</div>
</div>
<div id="plugin-information-footer">
<div class="bp-hello-social-cta">
<p>
<?php
printf(
_n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 28, 'buddypress' ),
'<span class="dashicons dashicons-heart"></span>',
esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ),
number_format_i18n( 28 )
);
?>
</p>
</div>
<div class="bp-hello-social-links">
<ul class="bp-hello-social">
<li>
<?php
printf(
'<a class="twitter bp-tooltip" data-bp-tooltip="%1$s" href="%2$s"><span class="screen-reader-text">%3$s</span></a>',
esc_attr__( 'Follow BuddyPress on Twitter', 'buddypress' ),
esc_url( 'https://twitter.com/buddypress' ),
esc_html__( 'Follow BuddyPress on Twitter', 'buddypress' )
);
?>
</li>
<li>
<?php
printf(
'<a class="support bp-tooltip" data-bp-tooltip="%1$s" href="%2$s"><span class="screen-reader-text">%3$s</span></a>',
esc_attr__( 'Visit the Support Forums', 'buddypress' ),
esc_url( 'https://buddypress.org/support/' ),
esc_html__( 'Visit the Support Forums', 'buddypress' )
);
?>
</li>
</ul>
</div>
</div>
</div>
<?php
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Now outputs BuddyPress Hello template. |
| 1.7.0 | Introduced. |