Changeset 6133
- Timestamp:
- 06/24/2012 08:18:36 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-admin.php
r6129 r6133 139 139 */ 140 140 function bp_activity_admin_edit_hidden_metaboxes( $hidden, $screen ) { 141 if ( empty( $screen->id ) || 'toplevel_page_bp-activity' != $screen->id )141 if ( empty( $screen->id ) || 'toplevel_page_bp-activity' != $screen->id && 'toplevel_page_bp-activity_network' != $screen->id ) 142 142 return $hidden; 143 143 … … 200 200 201 201 // Register metaboxes for the edit screen. 202 add_meta_box( 'submitdiv', _x( 'Status', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_status', 'toplevel_page_bp-activity', 'side', 'core' );203 add_meta_box( 'bp_activity_itemids', _x( 'Primary Item/Secondary Item', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_itemids', 'toplevel_page_bp-activity', 'normal', 'core' );204 add_meta_box( 'bp_activity_link', _x( 'Link', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_link', 'toplevel_page_bp-activity', 'normal', 'core' );205 add_meta_box( 'bp_activity_type', _x( 'Type', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_type', 'toplevel_page_bp-activity', 'normal', 'core' );206 add_meta_box( 'bp_activity_userid', _x( 'Author ID', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_userid', 'toplevel_page_bp-activity', 'normal', 'core' );202 add_meta_box( 'submitdiv', _x( 'Status', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_status', get_current_screen()->id, 'side', 'core' ); 203 add_meta_box( 'bp_activity_itemids', _x( 'Primary Item/Secondary Item', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_itemids', get_current_screen()->id, 'normal', 'core' ); 204 add_meta_box( 'bp_activity_link', _x( 'Link', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_link', get_current_screen()->id, 'normal', 'core' ); 205 add_meta_box( 'bp_activity_type', _x( 'Type', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_type', get_current_screen()->id, 'normal', 'core' ); 206 add_meta_box( 'bp_activity_userid', _x( 'Author ID', 'activity admin edit screen', 'buddypress' ), 'bp_activity_admin_edit_metabox_userid', get_current_screen()->id, 'normal', 'core' ); 207 207 208 208 // Enqueue javascripts … … 589 589 590 590 <div id="postbox-container-1" class="postbox-container"> 591 <?php do_meta_boxes( 'toplevel_page_bp-activity', 'side', $activity ); ?>591 <?php do_meta_boxes( get_current_screen()->id, 'side', $activity ); ?> 592 592 </div> 593 593 594 594 <div id="postbox-container-2" class="postbox-container"> 595 <?php do_meta_boxes( 'toplevel_page_bp-activity', 'normal', $activity ); ?>596 <?php do_meta_boxes( 'toplevel_page_bp-activity', 'advanced', $activity ); ?>595 <?php do_meta_boxes( get_current_screen()->id, 'normal', $activity ); ?> 596 <?php do_meta_boxes( get_current_screen()->id, 'advanced', $activity ); ?> 597 597 </div> 598 598 </div><!-- #post-body --> -
trunk/bp-activity/bp-activity-akismet.php
r6129 r6133 497 497 498 498 // Display meta box with a low priority (low position on screen by default) 499 add_meta_box( 'bp_activity_history', __( 'Activity History', 'buddypress' ), array( $this, 'history_metabox' ), 'toplevel_page_bp-activity', 'normal', 'low' );499 add_meta_box( 'bp_activity_history', __( 'Activity History', 'buddypress' ), array( $this, 'history_metabox' ), get_current_screen()->id, 'normal', 'low' ); 500 500 } 501 501 -
trunk/bp-core/admin/css/common.dev.css
r6093 r6133 52 52 53 53 /* Activity */ 54 ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a img { 54 ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a img, 55 ul#adminmenu li.toplevel_page_bp-activity_network .wp-menu-image a img { 55 56 display: none; 56 57 } 57 ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a { 58 ul#adminmenu li.toplevel_page_bp-activity .wp-menu-image a, 59 ul#adminmenu li.toplevel_page_bp-activity_network .wp-menu-image a { 58 60 background-image: url( ../images/menu.png ) !important; 59 61 background-position: 0 -34px; … … 61 63 ul#adminmenu li.toplevel_page_bp-activity:hover .wp-menu-image a, 62 64 ul#adminmenu li.toplevel_page_bp-activity.current .wp-menu-image a, 63 ul#adminmenu li.toplevel_page_bp-activity.wp-has-current-submenu .wp-menu-image a { 65 ul#adminmenu li.toplevel_page_bp-activity.wp-has-current-submenu .wp-menu-image a, 66 ul#adminmenu li.toplevel_page_bp-activity_network:hover .wp-menu-image a, 67 ul#adminmenu li.toplevel_page_bp-activity_network.current .wp-menu-image a, 68 ul#adminmenu li.toplevel_page_bp-activity_network.wp-has-current-submenu .wp-menu-image a { 64 69 background-position: 0 -2px; 65 70 }
Note: See TracChangeset
for help on using the changeset viewer.