Skip to:
Content

BuddyPress.org

Changeset 4314


Ignore:
Timestamp:
04/30/2011 02:50:09 PM (14 years ago)
Author:
djpaul
Message:

Specify user_has_access param on all items added to subnav. Fixes 3046, props sbrajesh

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-loader.php

    r4303 r4314  
    138138            'parent_slug'     => $this->slug,
    139139            'screen_function' => 'bp_member_forums_screen_topics',
     140            'user_has_access' =>  bp_is_my_profile(),
    140141            'position'        => 20,
    141142            'item_css_id'     => 'topics'
     
    149150            'parent_slug'     => $this->slug,
    150151            'screen_function' => 'bp_member_forums_screen_replies',
     152            'user_has_access' =>  bp_is_my_profile(),
    151153            'position'        => 40,
    152154            'item_css_id'     => 'replies'
     
    161163            'parent_slug'     => $this->slug,
    162164            'screen_function' => 'bp_member_forums_screen_favorites',
     165            'user_has_access' =>  bp_is_my_profile(),
    163166            'position'        => 60,
    164167            'item_css_id'     => 'favorites'
  • trunk/bp-friends/bp-friends-loader.php

    r4281 r4314  
    116116            'parent_slug' => $bp->friends->slug,
    117117            'screen_function' => 'friends_screen_my_friends',
     118            'user_has_access' =>  bp_is_my_profile(),
    118119            'position' => 10,
    119120            'item_css_id'     => 'friends-my-friends'
  • trunk/bp-groups/bp-groups-loader.php

    r4211 r4314  
    217217            'parent_slug'     => $this->slug,
    218218            'screen_function' => 'groups_screen_my_groups',
     219            'user_has_access' =>  bp_is_my_profile(),
    219220            'position'        => 10,
    220221            'item_css_id'     => 'groups-my-groups'
     
    228229            'parent_slug'     => $this->slug,
    229230            'screen_function' => 'groups_screen_group_invites',
     231            'user_has_access' =>  bp_is_my_profile(),
    230232            'position'        => 30,
    231233            'user_has_access' => bp_is_my_profile()
  • trunk/bp-themes/bp-default/members/single/friends.php

    r4206 r4314  
    1212<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    1313    <ul>
    14         <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
     14        <?php bp_get_options_nav(); ?>
    1515
    1616        <?php if ( !bp_is_current_action( 'requests' ) ) : ?>
  • trunk/bp-themes/bp-default/members/single/groups.php

    r3810 r4314  
    1212<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    1313    <ul>
    14         <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
     14        <?php bp_get_options_nav(); ?>
    1515
    1616        <?php if ( !bp_is_current_action( 'invites' ) ) : ?>
  • trunk/bp-themes/bp-default/members/single/profile.php

    r3917 r4314  
    1010?>
    1111
    12 <?php if ( bp_is_my_profile() ) : ?>
     12<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     13    <ul>
    1314
    14     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    15         <ul>
     15        <?php bp_get_options_nav(); ?>
    1616
    17             <?php bp_get_options_nav(); ?>
    18 
    19         </ul>
    20     </div><!-- .item-list-tabs -->
    21 
    22 <?php endif; ?>
     17    </ul>
     18</div><!-- .item-list-tabs -->
    2319
    2420<?php do_action( 'bp_before_profile_content' ); ?>
  • trunk/bp-xprofile/bp-xprofile-loader.php

    r4281 r4314  
    134134            'parent_slug'     => $this->slug,
    135135            'screen_function' => 'xprofile_screen_display_profile',
     136            'user_has_access' =>  bp_is_my_profile(),
    136137            'position'        => 10
    137138        );
     
    144145            'parent_slug'     => $this->slug,
    145146            'screen_function' => 'xprofile_screen_edit_profile',
     147            'user_has_access' =>  bp_is_my_profile(),
    146148            'position'        => 20
    147149        );
     
    154156            'parent_slug'     => $this->slug,
    155157            'screen_function' => 'xprofile_screen_change_avatar',
     158            'user_has_access' =>  bp_is_my_profile(),
    156159            'position'        => 30
    157160        );
Note: See TracChangeset for help on using the changeset viewer.