本文整理汇总了PHP中bp_core_new_subnav_item函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_core_new_subnav_item函数的具体用法?PHP bp_core_new_subnav_item怎么用?PHP bp_core_new_subnav_item使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_core_new_subnav_item函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: profile_tab_gifts
public function profile_tab_gifts()
{
global $bp;
bp_core_new_nav_item(array('parent_url' => bp_loggedin_user_domain() . '/gifts/', 'parent_slug' => $bp->profile->slug, 'default_subnav_slug' => 'send_gift', 'show_for_displayed_user' => false, 'name' => 'Gifts', 'slug' => 'gifts', 'screen_function' => array($this, 'send_gift_posts'), 'position' => 40));
bp_core_new_subnav_item(array('name' => 'Send Gift', 'slug' => 'send_gift', 'show_for_displayed_user' => false, 'parent_url' => bp_loggedin_user_domain() . '/gifts/', 'parent_slug' => $bp->bp_nav['gifts']['slug'], 'position' => 10, 'screen_function' => array($this, 'send_gift_posts')));
bp_core_new_subnav_item(array('name' => 'Received Gift', 'slug' => 'received_gift', 'parent_url' => bp_loggedin_user_domain() . '/gifts/', 'parent_slug' => $bp->bp_nav['gifts']['slug'], 'position' => 10, 'screen_function' => array($this, 'received_gifts_posts')));
}
示例2: messages_action_view_message
function messages_action_view_message()
{
global $thread_id, $bp;
if (!bp_is_messages_component() || !bp_is_current_action('view')) {
return false;
}
$thread_id = (int) bp_action_variable(0);
if (!$thread_id || !messages_is_valid_thread($thread_id) || !messages_check_thread_access($thread_id) && !is_super_admin()) {
bp_core_redirect(bp_displayed_user_domain() . bp_get_messages_slug());
}
// Check if a new reply has been submitted
if (isset($_POST['send'])) {
// Check the nonce
check_admin_referer('messages_send_message', 'send_message_nonce');
// Send the reply
if (messages_new_message(array('thread_id' => $thread_id, 'subject' => $_POST['subject'], 'content' => $_POST['content']))) {
bp_core_add_message(__('Your reply was sent successfully', 'buddypress'));
} else {
bp_core_add_message(__('There was a problem sending your reply, please try again', 'buddypress'), 'error');
}
bp_core_redirect(bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . $thread_id . '/');
}
// Mark message read
messages_mark_thread_read($thread_id);
// Decrease the unread count in the nav before it's rendered
$name = sprintf(__('Messages <span>%s</span>', 'buddypress'), bp_get_total_unread_messages_count());
$bp->bp_nav[$bp->messages->slug]['name'] = $name;
do_action('messages_action_view_message');
bp_core_new_subnav_item(array('name' => sprintf(__('From: %s', 'buddypress'), BP_Messages_Thread::get_last_sender($thread_id)), 'slug' => 'view', 'parent_url' => trailingslashit(bp_displayed_user_domain() . bp_get_messages_slug()), 'parent_slug' => bp_get_messages_slug(), 'screen_function' => true, 'position' => 40, 'user_has_access' => bp_is_my_profile(), 'link' => bp_displayed_user_domain() . bp_get_messages_slug() . '/view/' . (int) $thread_id));
bp_core_load_template(apply_filters('messages_template_view_message', 'members/single/home'));
}
示例3: bp_follow_user_setup_nav
/**
* Setup profile / BuddyBar navigation.
*
* This function was moved from {@link BP_Follow_Component} in v1.3.0 due
* to the users module being toggleable.
*
* @since 1.3.0
*/
function bp_follow_user_setup_nav($main_nav = array(), $sub_nav = array())
{
global $bp;
// If we're in the admin area and we're using the WP toolbar, we don't need
// to run the rest of this method
if (defined('WP_NETWORK_ADMIN') && bp_use_wp_admin_bar()) {
return;
}
// Need to change the user ID, so if we're not on a member page, $counts variable is still calculated
$user_id = bp_is_user() ? bp_displayed_user_id() : bp_loggedin_user_id();
$counts = bp_follow_total_follow_counts(array('user_id' => $user_id));
// BuddyBar compatibility
$domain = bp_displayed_user_domain() ? bp_displayed_user_domain() : bp_loggedin_user_domain();
/** FOLLOWERS NAV ************************************************/
bp_core_new_nav_item(array('name' => sprintf(__('Following <span>%d</span>', 'bp-follow'), $counts['following']), 'slug' => $bp->follow->following->slug, 'position' => $bp->follow->params['adminbar_myaccount_order'], 'screen_function' => 'bp_follow_screen_following', 'default_subnav_slug' => 'following', 'item_css_id' => 'members-following'));
/** FOLLOWING NAV ************************************************/
bp_core_new_nav_item(array('name' => sprintf(__('Followers <span>%d</span>', 'bp-follow'), $counts['followers']), 'slug' => $bp->follow->followers->slug, 'position' => apply_filters('bp_follow_followers_nav_position', 62), 'screen_function' => 'bp_follow_screen_followers', 'default_subnav_slug' => 'followers', 'item_css_id' => 'members-followers'));
/** ACTIVITY SUBNAV **********************************************/
// Add activity sub nav item
if (bp_is_active('activity') && apply_filters('bp_follow_show_activity_subnav', true)) {
bp_core_new_subnav_item(array('name' => _x('Following', 'Activity subnav tab', 'bp-follow'), 'slug' => constant('BP_FOLLOWING_SLUG'), 'parent_url' => trailingslashit($domain . bp_get_activity_slug()), 'parent_slug' => bp_get_activity_slug(), 'screen_function' => 'bp_follow_screen_activity_following', 'position' => 21, 'item_css_id' => 'activity-following'));
}
// BuddyBar compatibility
add_action('bp_adminbar_menus', 'bp_follow_group_buddybar_items');
}
示例4: bp_profile_header_setup
function bp_profile_header_setup()
{
global $bp, $user_identity;
$display_user_link = $bp->displayed_user->domain;
$user_link = $display_user_link . $bp->settings->slug . '/';
bp_core_new_subnav_item(array('name' => __('Flickr Youtube', TEMPLATE_DOMAIN), 'slug' => 'flickr-youtube', 'parent_url' => $user_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_profile_social', 'position' => 10));
}
示例5: bp_em_setup_nav
/**
* bp_em_setup_nav()
*
* Sets up the user profile navigation items for the component. This adds the top level nav
* item and all the sub level nav items to the navigation array. This is then
* rendered in the template.
*/
function bp_em_setup_nav()
{
global $bp;
$count = 0;
/* Add 'Events' to the main user profile navigation */
bp_core_new_nav_item(array('name' => __('Events', 'bp-em'), 'slug' => $bp->events->slug, 'position' => 80, 'screen_function' => bp_is_my_profile() ? 'bp_em_my_events' : 'bp_em_events', 'default_subnav_slug' => bp_is_my_profile() ? 'my-events' : ''));
$em_link = $bp->loggedin_user->domain . $bp->events->slug . '/';
/* Create two sub nav items for this component */
bp_core_new_subnav_item(array('name' => __('My Profile', 'dbem'), 'slug' => 'profile', 'parent_slug' => $bp->events->slug, 'parent_url' => $em_link, 'screen_function' => 'bp_em_events', 'position' => 10, 'user_has_access' => bp_is_my_profile()));
bp_core_new_subnav_item(array('name' => __('Events I\'m Attending', 'dbem'), 'slug' => 'attending', 'parent_slug' => $bp->events->slug, 'parent_url' => $em_link, 'screen_function' => 'bp_em_attending', 'position' => 20, 'user_has_access' => bp_is_my_profile()));
bp_core_new_subnav_item(array('name' => __('My Events', 'dbem'), 'slug' => 'my-events', 'parent_slug' => $bp->events->slug, 'parent_url' => $em_link, 'screen_function' => 'bp_em_my_events', 'position' => 30, 'user_has_access' => bp_is_my_profile()));
bp_core_new_subnav_item(array('name' => __('My Locations', 'dbem'), 'slug' => 'my-locations', 'parent_slug' => $bp->events->slug, 'parent_url' => $em_link, 'screen_function' => 'bp_em_my_locations', 'position' => 40, 'user_has_access' => bp_is_my_profile()));
bp_core_new_subnav_item(array('name' => __('My Event Bookings', 'dbem'), 'slug' => 'my-bookings', 'parent_slug' => $bp->events->slug, 'parent_url' => $em_link, 'screen_function' => 'bp_em_my_bookings', 'position' => 50, 'user_has_access' => bp_is_my_profile()));
/* Add a nav item for this component under the settings nav item. */
bp_core_new_subnav_item(array('name' => __('Events', 'dbem'), 'slug' => 'group-events', 'parent_slug' => $bp->groups->slug, 'parent_url' => $bp->loggedin_user->domain . $bp->groups->slug . '/', 'screen_function' => 'bp_em_my_group_events', 'position' => 60, 'user_has_access' => bp_is_my_profile()));
/* Add a nav item for this component under the settings nav item. */
bp_core_new_subnav_item(array('name' => __('Events', 'dbem'), 'slug' => 'events-settings', 'parent_slug' => $bp->settings->slug, 'parent_url' => $bp->loggedin_user->domain . $bp->settings->slug . '/', 'screen_function' => 'bp_em_screen_settings_menu', 'position' => 40, 'user_has_access' => bp_is_my_profile()));
/* Create two sub nav items for this component */
$group_link = $bp->root_domain . '/' . $bp->groups->slug . '/' . $bp->groups->current_group->slug . '/';
if ($bp->current_component == 'groups') {
$count = EM_Events::count(array('group' => $bp->groups->current_group->id));
if (empty($count)) {
$count = 0;
}
}
bp_core_new_subnav_item(array('name' => sprintf(__('Events (%s)', 'dbem'), $count), 'slug' => 'events', 'parent_url' => $group_link, 'parent_slug' => $bp->groups->slug, 'screen_function' => 'bp_em_group_events', 'position' => 50, 'user_has_access' => $bp->groups->current_group->user_has_access, 'item_css_id' => 'forums'));
}
示例6: bp_content_setup_nav
function bp_content_setup_nav()
{
global $bp;
bp_core_new_nav_item(array('name' => __('My Posts', 'buddypress'), 'slug' => 'my-posts', 'screen_function' => 'my_posts_screen_link', 'position' => 40, 'default_subnav_slug' => 'my-posts-subnav'));
bp_core_new_subnav_item(array('name' => __('', 'buddypress'), 'slug' => 'my-posts', 'parent_url' => trailingslashit(bp_loggedin_user_domain() . 'main-tab'), 'parent_slug' => 'my-posts', 'screen_function' => 'my_posts_screen_link', 'position' => 10));
do_action('bp_content_setup_nav');
}
示例7: bp_page_nav
public static function bp_page_nav()
{
global $bp;
global $fitbit_php;
if (!is_user_logged_in() || !is_object($fitbit_php)) {
return '';
}
$user_domain = bp_displayed_user_domain() ? bp_displayed_user_domain() : bp_loggedin_user_domain();
$profile_link = trailingslashit($user_domain . $bp->profile->slug);
bp_core_new_subnav_item(array('name' => FITPRESS_TAB_NAME, 'slug' => 'fitpress', 'parent_url' => $profile_link, 'parent_slug' => $bp->profile->slug, 'screen_function' => array('FitPress_BuddyPress', 'page_screen'), 'position' => 20, 'user_has_access' => current_user_can('edit_users')));
// $fitbit_php->resetSession();
// var_dump($fitbit_php);
$user_domain = bp_displayed_user_domain() ? bp_displayed_user_domain() : bp_loggedin_user_domain();
$profile_link = trailingslashit($user_domain . $bp->profile->slug);
// var_dump($fitbit_php->sessionStatus());
// wp_die();
if (0 != $fitbit_php->sessionStatus() || 'authorize' == $_GET['FitPress']) {
$fitbit_php->initSession($profile_link . '/fitpress/');
$user_id = get_current_user_id();
$new_value = $fitbit_php->getOAuthToken();
// will return false if the previous value is the same as $new_value
update_user_meta($user_id, 'fitpress_fitbit_token', $new_value);
// so check and make sure the stored value matches $new_value
if (get_user_meta($user_id, 'fitpress_fitbit_token', true) != $new_value) {
wp_die('An error occurred');
}
$new_value = $fitbit_php->getOAuthSecret();
// will return false if the previous value is the same as $new_value
update_user_meta($user_id, 'fitpress_fitbit_secret', $new_value);
// so check and make sure the stored value matches $new_value
if (get_user_meta($user_id, 'fitpress_fitbit_secret', true) != $new_value) {
wp_die('An error occurred');
}
}
}
示例8: ec_bp_setup_nav
function ec_bp_setup_nav()
{
global $bp;
$events_link = $bp->displayed_user->domain . 'eventos/';
bp_core_new_nav_item(array('name' => 'Eventos', 'slug' => 'eventos', 'screen_function' => 'ec_show_events_list', 'position' => 0));
bp_core_new_subnav_item(array('name' => 'Eventos', 'slug' => 'mis-eventos', 'parent_url' => $events_link, 'parent_slug' => 'eventos', 'screen_function' => 'ec_show_events_list', 'position' => 10));
bp_core_new_subnav_item(array('name' => 'Calendario', 'slug' => 'mi-calendario', 'parent_url' => $events_link, 'parent_slug' => 'eventos', 'screen_function' => 'ec_show_events_calendar', 'position' => 20));
bp_core_new_subnav_item(array('name' => 'Crear Evento', 'slug' => 'evento_nuevo', 'parent_url' => $events_link, 'parent_slug' => 'eventos', 'screen_function' => 'ec_show_events_editor', 'user_has_access' => bp_is_my_profile(), 'position' => 30));
}
示例9: add_videos_subnav_tab
function add_videos_subnav_tab()
{
global $bp;
bp_core_new_subnav_item(array('name' => 'Posts', 'slug' => 'posts', 'parent_url' => trailingslashit(bp_loggedin_user_domain() . 'favorites'), 'parent_slug' => 'favorites', 'screen_function' => 'profile_screen_posts', 'position' => 10));
bp_core_new_subnav_item(array('name' => 'Articles', 'slug' => 'articles', 'parent_url' => trailingslashit(bp_loggedin_user_domain() . 'favorites'), 'parent_slug' => 'favorites', 'screen_function' => 'profile_screen_articles', 'position' => 20));
$bp->bp_nav['profile']['name'] = 'About Me';
$bp->bp_nav['buddyblog']['name'] = 'Published Articles';
$bp->bp_nav['friends']['name'] = 'Soul Family';
$bp->bp_nav['friends']['position'] = 20;
}
示例10: bp_profile_submenu_posts
/**
* Build two sub menu items, the first is showing by default
* @author Nacho Abejaro
*/
function bp_profile_submenu_posts()
{
global $bp;
$publishCount = get_user_posts_count('publish');
$pendingCount = get_user_posts_count('pending');
$draftCount = get_user_posts_count('draft');
bp_core_new_subnav_item(array('name' => __('Published', 'agora-functions') . '<span>' . $publishCount . '</span>', 'slug' => 'mypublished', 'parent_url' => bp_displayed_user_domain() . $bp->bp_nav['myposts']['slug'] . '/', 'parent_slug' => $bp->bp_nav['myposts']['slug'], 'position' => 10, 'screen_function' => 'mb_author_posts'));
bp_core_new_subnav_item(array('name' => __('Pending Review', 'agora-functions') . '<span>' . $pendingCount . '</span>', 'slug' => 'myunder-review', 'parent_url' => bp_displayed_user_domain() . $bp->bp_nav['myposts']['slug'] . '/', 'parent_slug' => $bp->bp_nav['myposts']['slug'], 'position' => 20, 'screen_function' => 'mb_author_pending'));
bp_core_new_subnav_item(array('name' => __('Drafts', 'agora-functions') . '<span>' . $draftCount . '</span>', 'slug' => 'mydrafts', 'parent_url' => bp_displayed_user_domain() . $bp->bp_nav['myposts']['slug'] . '/', 'parent_slug' => $bp->bp_nav['myposts']['slug'], 'position' => 30, 'screen_function' => 'mb_author_drafts'));
}
示例11: set_nav
/**
* set_nav()
*
* Sets up the component navigation
*/
function set_nav()
{
global $bp;
if (!$bp->groups->current_group || !$this->courseware_status($bp->groups->current_group->id)) {
return;
}
$group_permalink = bp_get_group_permalink($bp->groups->current_group);
bp_core_new_subnav_item(array('name' => __('Courseware', 'bpsp'), 'slug' => $bp->courseware->slug, 'parent_url' => $group_permalink, 'parent_slug' => $bp->groups->current_group->slug, 'screen_function' => array(&$this, 'screen_handler'), 'position' => 35, 'user_has_access' => $bp->groups->current_group->user_has_access, 'item_css_id' => 'courseware-group'));
$this->nav_options[__('Home', 'bpsp')] = $group_permalink . $bp->courseware->slug;
do_action('courseware_group_set_nav');
}
示例12: buddystream_profile_navigation
/**
* Add albums page for network albums (grouped)
*/
function buddystream_profile_navigation()
{
global $bp;
if (get_site_option('buddystream_social_albums') == "on") {
if (get_site_option('buddystream_social_albums_profile_navigation') == "on") {
bp_core_new_subnav_item(array('name' => __('Social albums', 'buddystream_lang'), 'slug' => 'social-album', 'parent_url' => $bp->displayed_user->domain . $bp->profile->slug . '/', 'parent_slug' => $bp->profile->slug, 'screen_function' => 'buddystream_default_album', 'position' => 80));
} else {
bp_core_new_nav_item(array('name' => __('Social albums', 'buddystream_lang'), 'slug' => 'social-album', 'position' => 12, 'default_subnav_slug' => 'albums', 'screen_function' => 'buddystream_default_album'));
}
}
}
示例13: add_bp_profile_entry
function add_bp_profile_entry()
{
global $bp;
bp_core_new_nav_item(array('name' => __('Events', Eab_EventsHub::TEXT_DOMAIN), 'slug' => 'my-events', 'show_for_displayed_user' => true, 'default_subnav_slug' => $this->_check_permissions() ? 'organized' : 'attending', 'screen_function' => '__return_false'));
if ($this->_check_permissions()) {
bp_core_new_subnav_item(array('name' => __('Organized', Eab_EventsHub::TEXT_DOMAIN), 'slug' => 'organized', 'parent_url' => $bp->displayed_user->domain . 'my-events' . '/', 'parent_slug' => 'my-events', 'screen_function' => array($this, 'bind_bp_organized_page')));
}
bp_core_new_subnav_item(array('name' => __('Attending', Eab_EventsHub::TEXT_DOMAIN), 'slug' => 'attending', 'parent_url' => $bp->displayed_user->domain . 'my-events' . '/', 'parent_slug' => 'my-events', 'screen_function' => array($this, 'bind_bp_attending_page')));
bp_core_new_subnav_item(array('name' => __('Maybe', Eab_EventsHub::TEXT_DOMAIN), 'slug' => 'mabe', 'parent_url' => $bp->displayed_user->domain . 'my-events' . '/', 'parent_slug' => 'my-events', 'screen_function' => array($this, 'bind_bp_maybe_page')));
bp_core_new_subnav_item(array('name' => __('Not Attending', Eab_EventsHub::TEXT_DOMAIN), 'slug' => 'not-attending', 'parent_url' => $bp->displayed_user->domain . 'my-events' . '/', 'parent_slug' => 'my-events', 'screen_function' => array($this, 'bind_bp_not_attending_page')));
do_action('eab-events-my_events-set_up_navigation');
}
示例14: bfox_bp_plans_setup_nav
function bfox_bp_plans_setup_nav()
{
global $bp;
$slug = 'plans';
$link = (!empty($bp->displayed_user->domain) ? $bp->displayed_user->domain : $bp->loggedin_user->domain) . $slug . '/';
bp_core_new_nav_item(array('name' => __('Reading Plans', 'bfox'), 'slug' => $slug, 'position' => 21, 'show_for_displayed_user' => true, 'screen_function' => 'bfox_bp_plans_my_plans_screen_view', 'default_subnav_slug' => 'my-plans'));
/* bp_core_new_subnav_item( array(
'name' => __('Calendar', 'bfox'),
'slug' => 'calendar',
'parent_slug' => $slug,
'parent_url' => $link,
'screen_function' => 'bfox_bp_bible_study_calendar_screen_view',
'position' => 130,
) );
*/
bp_core_new_subnav_item(array('name' => __('My Plans', 'bfox'), 'slug' => 'my-plans', 'parent_slug' => $slug, 'parent_url' => $link, 'screen_function' => 'bfox_bp_plans_my_plans_screen_view', 'position' => 130));
/*
if ($slug == $bp->current_component && ('schedule' == $bp->current_action || 'delete-schedule' == $bp->current_action)) {
$schedule = bfox_bp_schedule(BfoxReadingSchedule::schedule($bp->action_variables[0]));
if ($schedule->id) {
if ($schedule->is_user_member($bp->displayed_user->id)) {
if ('schedule' == $bp->current_action) {
bfox_bp_plans_reading_redirect($schedule, $bp->action_variables[1], $bp->action_variables[2]);
$bp->current_action = "schedule/$schedule->id";
bp_core_new_subnav_item( array(
'name' => __('View Schedule', 'bfox'),
'slug' => $bp->current_action,
'parent_slug' => $slug,
'parent_url' => $link,
'screen_function' => 'bfox_bp_bible_study_edit_schedule_screen_view',
'position' => 130,
));
}
elseif ('delete-schedule' == $bp->current_action) {
$bp->current_action = "delete-schedule/$schedule->id";
bp_core_new_subnav_item( array(
'name' => __('Delete Schedule', 'bfox'),
'slug' => $bp->current_action,
'parent_slug' => $slug,
'parent_url' => $link,
'screen_function' => 'bfox_bp_bible_study_edit_schedule_screen_view',
'position' => 130,
) );
}
}
else bp_core_redirect($schedule->url());
}
else bp_core_redirect($link);
}
*/
do_action('bfox_bp_plans_setup_nav', $slug, $link);
}
示例15: bp_media_galleries_setup_nav
/**
* bp_media_galleries_setup_nav()
*
* Sets up the user profile navigation items for the component. This adds the top level nav
* item and all the sub level nav items to the navigation array. This is then
* rendered in the template.
*/
function bp_media_galleries_setup_nav()
{
global $bp;
/* Add 'Example' to the main user profile navigation */
bp_core_new_nav_item(array('name' => __('Media Galleries', 'bp-media-galleries'), 'slug' => $bp->media_galleries->slug, 'position' => 80, 'screen_function' => 'bp_media_galleries_view', 'default_subnav_slug' => 'view'));
$media_galleries_link = $bp->loggedin_user->domain . $bp->media_galleries->slug . '/';
bp_core_new_subnav_item(array('name' => __('Create Gallery', 'bp-media-galleries'), 'slug' => 'create', 'parent_slug' => $bp->media_galleries->slug, 'parent_url' => $media_galleries_link, 'screen_function' => 'bp_media_galleries_create', 'position' => 10, 'user_has_access' => bp_is_home()));
bp_core_new_subnav_item(array('name' => __('Upload Audio', 'bp-media-galleries'), 'slug' => 'upload-audio', 'parent_slug' => $bp->media_galleries->slug, 'parent_url' => $media_galleries_link, 'screen_function' => 'bp_media_galleries_upload_audio', 'position' => 20, 'user_has_access' => bp_is_home()));
bp_core_new_subnav_item(array('name' => __('Upload Images', 'bp-media-galleries'), 'slug' => 'upload-images', 'parent_slug' => $bp->media_galleries->slug, 'parent_url' => $media_galleries_link, 'screen_function' => 'bp_media_galleries_upload_images', 'position' => 30, 'user_has_access' => bp_is_home()));
bp_core_new_subnav_item(array('name' => __('Upload Videos', 'bp-media-galleries'), 'slug' => 'upload-video', 'parent_slug' => $bp->media_galleries->slug, 'parent_url' => $media_galleries_link, 'screen_function' => 'bp_media_galleries_upload_video', 'position' => 40, 'user_has_access' => bp_is_home()));
/* Add a nav item for this component under the settings nav item. See bp_example_screen_settings_menu() for more info */
bp_core_new_subnav_item(array('name' => __('Media Galleries', 'bp-media-galleries'), 'slug' => 'media-galleries-admin', 'parent_slug' => $bp->settings->slug, 'parent_url' => $bp->loggedin_user->domain . $bp->settings->slug . '/', 'screen_function' => 'bp_media_galleries_screen_settings_menu', 'position' => 40, 'user_has_access' => bp_is_my_profile()));
}