Changeset 4761
- Timestamp:
- 07/21/2011 10:12:40 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-buddybar.php
r4566 r4761 36 36 37 37 <li><a class="confirm" href="<?php echo wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/delete-group/', 'groups_delete_group' ); ?>&delete-group-button=1&delete-group-understand=1"><?php _e( "Delete Group", 'buddypress' ) ?></a></li> 38 39 <?php /* These advanced admin items have been removed for the 1.3 release */ ?>40 <?php /*41 <li>42 <li><a href="<?php bp_groups_action_link( 'admin/edit-details' ); ?>"><?php _e( 'Admin', 'buddypress' ); ?></a>43 44 <ul>45 <li><a href="<?php bp_groups_action_link( 'admin/edit-details' ); ?>"><?php _e( 'Edit Details', 'buddypress' ); ?></a></li>46 <li><a href="<?php bp_groups_action_link( 'admin/group-settings' ); ?>"><?php _e( 'Group Settings', 'buddypress' ); ?></a></li>47 <li><a href="<?php bp_groups_action_link( 'admin/group-avatar' ); ?>"><?php _e( 'Group Avatar', 'buddypress' ); ?></a></li>48 49 <?php if ( bp_is_active( 'friends' ) ) : ?>50 51 <li><a href="<?php bp_groups_action_link( 'send-invites' ); ?>"><?php _e( 'Manage Invitations', 'buddypress' ); ?></a></li>52 53 <?php endif; ?>54 55 <li><a href="<?php bp_groups_action_link( 'admin/manage-members' ); ?>"><?php _e( 'Manage Members', 'buddypress' ); ?></a></li>56 57 <?php if ( $bp->groups->current_group->status == 'private' ) : ?>58 59 <li><a href="<?php bp_groups_action_link( 'admin/membership-requests' ); ?>"><?php _e( 'Membership Requests', 'buddypress' ); ?></a></li>60 61 <?php endif; ?>62 63 <li><a class="confirm" href="<?php echo wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/delete-group/', 'groups_delete_group' ); ?>&delete-group-button=1&delete-group-understand=1"><?php _e( "Delete Group", 'buddypress' ) ?></a></li>64 </ul>65 </li>66 67 <?php if ( bp_is_active( 'activity' ) ) : ?>68 69 <li>70 <a href="<?php bp_groups_action_link( 'activity' ); ?>"><?php _e( 'Activity', 'buddypress' ); ?></a>71 <ul>72 <li><a href="<?php bp_groups_action_link( 'activity/admin', array( 'clear' => 'all' ), true ); ?>" class="confirm"><?php _e( "Delete All Activity", 'buddypress' ); ?></a></li>73 </ul>74 </li>75 76 <?php endif; ?>77 78 <?php if ( bp_is_active( 'forums' ) ) : ?>79 80 <li>81 <a href="<?php bp_groups_action_link( 'forums' ); ?>"><?php _e( 'Forums', 'buddypress' ); ?></a>82 <ul>83 <li><a href="<?php bp_groups_action_link( 'forums/admin', array( 'clear' => 'all' ), true ); ?>" class="confirm"><?php _e( "Delete Forum Contents", 'buddypress' ); ?></a></li>84 </ul>85 </li>86 87 <?php endif; ?>88 89 */ ?>90 38 91 39 <?php do_action( 'bp_groups_adminbar_admin_menu' ) ?> -
trunk/bp-members/bp-members-buddybar.php
r4647 r4761 121 121 122 122 <li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/delete-user/', 'delete-user' ) ?>" class="confirm"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ); ?></a></li> 123 124 <?php /* The following items have been removed for the BP 1.3 release */ ?>125 <?php /*126 <li>127 <a href="<?php echo trailingslashit( $bp->displayed_user->domain . $bp->profile->slug ); ?>"><?php _e( 'Account Status', 'buddypress' ); ?></a>128 <ul>129 130 <?php if ( !bp_core_is_user_spammer( $bp->displayed_user->id ) ) : ?>131 132 <li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/mark-spammer/', 'mark-unmark-spammer' ) ?>" class="confirm"><?php printf( __( "Mark %s as Spam", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ); ?></a></li>133 134 <?php else : ?>135 136 <li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/unmark-spammer/', 'mark-unmark-spammer' ) ?>" class="confirm"><?php _e( "Not a Spammer", 'buddypress' ) ?></a></li>137 138 <?php endif; ?>139 140 <li><a href="<?php echo wp_nonce_url( $bp->displayed_user->domain . 'admin/delete-user/', 'delete-user' ) ?>" class="confirm"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ); ?></a></li>141 </ul>142 </li>143 144 <?php if ( bp_is_active( 'activity' ) ) : ?>145 146 <li>147 <a href="<?php bp_members_component_link( 'activity' ); ?>"><?php _e( 'Activity', 'buddypress' ); ?></a>148 <ul>149 <li><a href="<?php bp_members_component_link( 'activity', 'admin', array( 'clear' => 'all' ), true ); ?>" class="confirm"><?php printf( __( "Delete %s's Activity", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>150 </ul>151 </li>152 153 <?php endif; ?>154 155 <?php if ( bp_is_active( 'xprofile' ) ) : ?>156 157 <li>158 <a href="<?php bp_members_component_link( 'profile' ); ?>"><?php _e( 'Profile', 'buddypress' ); ?></a>159 <ul>160 <li><a href="<?php bp_members_component_link( 'profile', 'edit' ); ?>"><?php printf( __( "Edit %s's Profile", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>161 <li><a href="<?php bp_members_component_link( 'profile', 'change-avatar' ); ?>"><?php printf( __( "Edit %s's Avatar", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>162 </ul>163 </li>164 165 <?php endif; ?>166 167 <?php if ( bp_is_active( 'messages' ) ) : ?>168 169 <li>170 <a href="<?php bp_members_component_link( 'messages' ); ?>"><?php _e( 'Messages', 'buddypress' ); ?></a>171 <ul>172 <li><a href="<?php bp_members_component_link( 'messages', 'admin', array( 'clear' => 'inbox' ), true ); ?>" class="confirm"><?php printf( __( "Empty %s's Inbox", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>173 <li><a href="<?php bp_members_component_link( 'messages', 'admin', array( 'clear' => 'sentbox' ), true ); ?>" class="confirm"><?php printf( __( "Empty %s's Sentbox", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>174 <li><a href="<?php bp_members_component_link( 'messages', 'admin', array( 'clear' => 'all' ), true ); ?>" class="confirm"><?php printf( __( "Empty All %s's Messages", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>175 </ul>176 </li>177 178 <?php endif; ?>179 180 <?php if ( bp_is_active( 'friends' ) ) : ?>181 182 <li>183 <a href="<?php echo trailingslashit( $bp->displayed_user->domain . bp_get_friends_slug() ); ?>"><?php _e( 'Friends', 'buddypress' ); ?></a>184 <ul>185 <li><a href="<?php bp_members_component_link( 'friends', 'admin', array( 'clear' => 'friendships' ), true ); ?>" class="confirm"><?php printf( __( "Remove %s's Friendships", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>186 <li><a href="<?php bp_members_component_link( 'friends', 'admin', array( 'clear' => 'requests' ), true ); ?>" class="confirm"><?php printf( __( "Clear %s's Friend Requests", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>187 </ul>188 </li>189 190 <?php endif; ?>191 192 <?php if ( bp_is_active( 'groups' ) ) : ?>193 194 <li>195 <a href="<?php bp_members_component_link( 'groups' ); ?>"><?php _e( 'Groups', 'buddypress' ); ?></a>196 <ul>197 <li><a href="<?php bp_members_component_link( 'groups', 'admin', array( 'clear' => 'memberships' ), true ); ?>" class="confirm"><?php printf( __( "Remove %s From Groups", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>198 <li><a href="<?php bp_members_component_link( 'groups', 'admin', array( 'clear' => 'invites' ), true ); ?>" class="confirm"><?php printf( __( "Clear %s's Group Invites", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>199 </ul>200 </li>201 202 <?php endif; ?>203 204 <?php if ( bp_is_active( 'forums' ) ) : ?>205 206 <li>207 <a href="<?php bp_members_component_link( 'forums' ); ?>"><?php _e( 'Forums', 'buddypress' ); ?></a>208 <ul>209 <li><a href="<?php bp_members_component_link( 'forums', 'admin', array( 'clear' => 'topics' ), true ); ?>" class="confirm"><?php printf( __( "Delete %s's Topics", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>210 <li><a href="<?php bp_members_component_link( 'forums', 'admin', array( 'clear' => 'replies' ), true ); ?>" class="confirm"><?php printf( __( "Delete %s's Replies", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>211 <li><a href="<?php bp_members_component_link( 'forums', 'admin', array( 'clear' => 'all' ), true ); ?>" class="confirm"><?php printf( __( "Delete All %s's Posts", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>212 </ul>213 </li>214 215 <?php endif; ?>216 217 <?php if ( bp_is_active( 'settings' ) ) : ?>218 219 <li>220 <a href="<?php bp_members_component_link( 'settings' ); ?>"><?php _e( 'Settings', 'buddypress' ); ?></a>221 <ul>222 <li><a href="<?php bp_members_component_link( 'settings', 'general' ); ?>"><?php printf( __( "Edit %s's Settings", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>223 <li><a href="<?php bp_members_component_link( 'settings', 'notifications' ); ?>"><?php printf( __( "Edit %s's Notifications", 'buddypress' ), esc_attr( $bp->displayed_user->fullname ) ) ?></a></li>224 </ul>225 </li>226 227 <?php endif; ?>228 229 */ ?>230 123 231 124 <?php do_action( 'bp_members_adminbar_admin_menu' ) ?>
Note: See TracChangeset
for help on using the changeset viewer.