Ticket #4288: 4288.1.patch
File 4288.1.patch, 5.5 KB (added by , 12 years ago) |
---|
-
bp-activity/bp-activity-admin.php
function bp_activity_admin_screen_options( $value, $option, $new_value ) { 138 138 * @since 1.0 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 144 144 // Hide the primary link meta box by default … … function bp_activity_admin_load() { 199 199 ); 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 209 209 wp_enqueue_script( 'postbox' ); … … function bp_activity_admin_edit() { 588 588 </div><!-- #post-body-content --> 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 --> 599 599 -
bp-activity/bp-activity-akismet.php
class BP_Akismet { 496 496 return; 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 502 502 /** -
bp-core/admin/css/common.dev.css
ul#adminmenu li.toplevel_page_bp-general-settings.wp-has-current-submenu .wp-men 51 51 } 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; 60 62 } 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 } 66 71