buddypress/bp-settings/bp-settings-template.php
John James Jacoby 29b1c5ba9a Settings:
* General code clean-up.
* php5ize the loader.
* Remove closing php tags.
* Limit creation of one-time-use variables.
* Bail early instead of wrap in big if statements.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@6317 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2012-09-07 14:50:43 +00:00

57 lines
1.2 KiB
PHP

<?php
/**
* BuddyPress Settings Template Functions
*
* @package BuddyPress
* @subpackage SettingsTemplate
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
/**
* Output the settings component slug
*
* @package BuddyPress
* @subpackage SettingsTemplate
* @since BuddyPress (1.5)
*
* @uses bp_get_settings_slug()
*/
function bp_settings_slug() {
echo bp_get_settings_slug();
}
/**
* Return the settings component slug
*
* @package BuddyPress
* @subpackage SettingsTemplate
* @since BuddyPress (1.5)
*/
function bp_get_settings_slug() {
return apply_filters( 'bp_get_settings_slug', buddypress()->settings->slug );
}
/**
* Output the settings component root slug
*
* @package BuddyPress
* @subpackage SettingsTemplate
* @since BuddyPress (1.5)
*
* @uses bp_get_settings_root_slug()
*/
function bp_settings_root_slug() {
echo bp_get_settings_root_slug();
}
/**
* Return the settings component root slug
*
* @package BuddyPress
* @subpackage SettingsTemplate
* @since BuddyPress (1.5)
*/
function bp_get_settings_root_slug() {
return apply_filters( 'bp_get_settings_root_slug', buddypress()->settings->root_slug );
}