WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/08/2011 02:01:53 AM (10 years ago)
Author:
azaozz
Message:

DFW: import editor-style.css, fine-tune transition times, add width resizing setting, some cleanup, see #17136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r17786 r17837  
    17301730    $width = isset($content_width) && 800 > $content_width ? $content_width : 800;
    17311731    $width = $width + 10; // compensate for the padding
     1732    $dfw_width = get_user_setting( 'dfw_width', $width );
    17321733    $save = $post->post_status == 'publish' ? __('Update') : __('Save');
    17331734?>
    17341735<div id="wp-fullscreen-body">
    1735 <div id="fullscreen-topbar" class="fade-600">
    1736     <div id="wp-fullscreen-info">
    1737         <span id="wp-fullscreen-saved"> </span>
    1738         <span class="autosave-message">&nbsp;</span>
    1739         <span id="wp-fullscreen-last-edit"> </span>
    1740     </div>
    1741 
     1736<div id="fullscreen-topbar">
    17421737    <div id="wp-fullscreen-toolbar">
    17431738
    1744         <div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;"><?php _e('Back'); ?></a></div>
     1739        <div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;"><?php _e('Close'); ?></a></div>
    17451740        <div id="wp-fullscreen-save">
    17461741            <span><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span>
     
    18181813        </div></div>
    18191814
    1820         <div id="wp-fullscreen-count"><?php _e('Word Count:'); ?> <span class="word-count">0</span></div>
     1815        <div id="wp-fullscreen-count">
     1816            <span title="<?php _e('Wider'); ?>" id="wp-fullscreen-plus">+</span>
     1817            <span title="<?php _e('Narrower'); ?>" id="wp-fullscreen-minus">&ndash;</span>
     1818            <span title="<?php _e('Reset width'); ?>" id="wp-fullscreen-reset">&times;</span> &nbsp;
     1819            <?php _e('Word Count:'); ?> <span class="word-count">0</span>
    18211820        </div>
    1822 
     1821        </div>
    18231822    </div>
    18241823</div>
    18251824
    1826 <div id="wp-fullscreen-wrap" style="width:<?php echo $width; ?>px;">
     1825<div id="wp-fullscreen-wrap" style="width:<?php echo $dfw_width; ?>px;">
    18271826    <label id="wp-fullscreen-title-prompt-text" for="wp-fullscreen-title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
    18281827    <input type="text" id="wp-fullscreen-title" value="" autocomplete="off" />
Note: See TracChangeset for help on using the changeset viewer.