?>
<fieldset class="metabox-prefs">
<legend><?php
_e( 'Screen elements'
); ?></legend>
<p>
<?php
_e( 'Some screen elements can be shown or hidden by using the checkboxes.'
); ?>
<?php
_e( 'Expand or collapse the elements by clicking on their headings, and arrange them by dragging their headings or by clicking on the up and down arrows.'
); ?>
</p>
<div class="metabox-prefs-container">
<?php
meta_box_prefs( $this );
if ( 'dashboard' ===
$this->id &&
has_action( 'welcome_panel'
) &&
current_user_can( 'edit_theme_options'
) ) { if ( isset( $_GET['welcome'
] ) ) { $welcome_checked =
empty( $_GET['welcome'
] ) ? 0 : 1;
update_user_meta( get_current_user_id(), 'show_welcome_panel',
$welcome_checked );
} else { $welcome_checked =
(int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true
);
if ( 2 ===
$welcome_checked &&
wp_get_current_user()->user_email !==
get_option( 'admin_email'
) ) { $welcome_checked = false;
} }