Make WordPress Core


Ignore:
Timestamp:
09/21/2011 06:16:24 AM (14 years ago)
Author:
azaozz
Message:

Responsive admin improvements for the dashboard, new/write screens and links screens, see #18198

File:
1 edited

Legend:

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

    r18247 r18736  
    3838do_action('do_meta_boxes', 'link', 'side', $link);
    3939
    40 add_screen_option('layout_columns', array('max' => 2) );
     40add_screen_option('layout_columns', array('max' => 2, 'default' => 'auto') );
    4141
    4242add_contextual_help($current_screen,
     
    5050
    5151require_once ('admin-header.php');
     52?>
    5253
    53 ?>
    54 <div class="wrap">
     54<div class="wrap columns-<?php echo (int) $screen_layout_columns ? (int) $screen_layout_columns : 'auto'; ?>">
    5555<?php screen_icon(); ?>
    5656<h2><?php echo esc_html( $title ); ?>  <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2>
     
    7070wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
    7171
    72 <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
    73 
     72<div id="poststuff" class="metabox-holder<?php echo 1 != $screen_layout_columns ? ' has-right-sidebar' : ''; ?>">
    7473<div id="side-info-column" class="inner-sidebar">
    7574<?php
    76 
    77 do_action('submitlink_box');
    78 $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
    79 
     75if ( 1 != $screen_layout_columns ) {
     76    do_action('submitlink_box');
     77    $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
     78}
    8079?>
    8180</div>
     
    109108<?php
    110109
     110if ( 1 == $screen_layout_columns ) {
     111    do_action('submitlink_box');
     112    $side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
     113}
     114
    111115do_meta_boxes('link', 'normal', $link);
    112116
Note: See TracChangeset for help on using the changeset viewer.