Responsive columns on the dashboard and write screens, first run, see #20015

git-svn-id: https://develop.svn.wordpress.org/trunk@20272 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2012-03-23 21:41:00 +00:00
parent a42caf87b4
commit 74cfcd36e3
14 changed files with 368 additions and 396 deletions
+29 -19
View File
@@ -272,17 +272,9 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false );
?>
<div id="poststuff" class="metabox-holder<?php echo 1 != $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
<div id="side-info-column" class="inner-sidebar">
<?php
if ( 1 != $screen_layout_columns ) {
('page' == $post_type) ? do_action('submitpage_box') : do_action('submitpost_box');
$side_meta_boxes = do_meta_boxes($post_type, 'side', $post);
}
?>
</div>
<div id="poststuff">
<div id="post-body">
<div id="post-body" class="metabox-holder columns-<?php echo 1 == $screen_layout_columns ? '1' : '2'; ?>">
<div id="post-body-content">
<?php if ( post_type_supports($post_type, 'title') ) { ?>
<div id="titlediv">
@@ -338,25 +330,43 @@ wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
</tr></tbody></table>
</div>
</div><!-- /post-body-content -->
<?php
}
if ( 1 == $screen_layout_columns ) {
('page' == $post_type) ? do_action('submitpage_box') : do_action('submitpost_box');
$side_meta_boxes = do_meta_boxes($post_type, 'side', $post);
}
?>
<div id="postbox-container-1" class="postbox-container">
<?php
if ( 'page' == $post_type )
do_action('submitpage_box');
else
do_action('submitpost_box');
do_meta_boxes($post_type, 'side', $post);
?>
</div>
<div id="postbox-container-2" class="postbox-container">
<?php
do_meta_boxes(null, 'normal', $post);
( 'page' == $post_type ) ? do_action('edit_page_form') : do_action('edit_form_advanced');
if ( 'page' == $post_type )
do_action('edit_page_form');
else
do_action('edit_form_advanced');
do_meta_boxes(null, 'advanced', $post);
do_action('dbx_post_sidebar'); ?>
?>
</div>
<?php
</div>
</div>
do_action('dbx_post_sidebar');
?>
</div><!-- /post-body -->
<br class="clear" />
</div><!-- /poststuff -->
</form>