WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/23/2012 09:41:00 PM (9 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r19593 r20272  
    273273?>
    274274
    275 <div id="poststuff" class="metabox-holder<?php echo 1 != $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
    276 <div id="side-info-column" class="inner-sidebar">
    277 <?php
    278 if ( 1 != $screen_layout_columns ) {
    279     ('page' == $post_type) ? do_action('submitpage_box') : do_action('submitpost_box');
    280     $side_meta_boxes = do_meta_boxes($post_type, 'side', $post);
    281 }
    282 ?>
    283 </div>
    284 
    285 <div id="post-body">
     275<div id="poststuff">
     276
     277<div id="post-body" class="metabox-holder columns-<?php echo 1 == $screen_layout_columns ? '1' : '2'; ?>">
    286278<div id="post-body-content">
    287279<?php if ( post_type_supports($post_type, 'title') ) { ?>
     
    339331
    340332</div>
    341 
    342 <?php
    343 }
    344 
    345 if ( 1 == $screen_layout_columns ) {
    346     ('page' == $post_type) ? do_action('submitpage_box') : do_action('submitpost_box');
    347     $side_meta_boxes = do_meta_boxes($post_type, 'side', $post);
    348 }
     333</div><!-- /post-body-content -->
     334<?php
     335}
     336
     337?>
     338<div id="postbox-container-1" class="postbox-container">
     339<?php
     340
     341if ( 'page' == $post_type )
     342    do_action('submitpage_box');
     343else
     344    do_action('submitpost_box');
     345
     346do_meta_boxes($post_type, 'side', $post);
     347
     348?>
     349</div>
     350<div id="postbox-container-2" class="postbox-container">
     351<?php
    349352
    350353do_meta_boxes(null, 'normal', $post);
    351354
    352 ( 'page' == $post_type ) ? do_action('edit_page_form') : do_action('edit_form_advanced');
     355if ( 'page' == $post_type )
     356    do_action('edit_page_form');
     357else
     358    do_action('edit_form_advanced');
    353359
    354360do_meta_boxes(null, 'advanced', $post);
    355361
    356 do_action('dbx_post_sidebar'); ?>
    357 
    358 </div>
    359 </div>
     362?>
     363</div>
     364<?php
     365
     366do_action('dbx_post_sidebar');
     367
     368?>
     369</div><!-- /post-body -->
    360370<br class="clear" />
    361371</div><!-- /poststuff -->
Note: See TracChangeset for help on using the changeset viewer.