Make WordPress Core

Changeset 8291


Ignore:
Timestamp:
07/09/2008 12:17:20 AM (17 years ago)
Author:
mdawaffe
Message:

crazyhorse: write screen layout and draggable improvements

Location:
branches/crazyhorse/wp-admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/css/global.css

    r8284 r8291  
    2020    position: relative;
    2121}
     22
     23/* inner 2 column liquid layout */
     24
     25.inner-sidebar {
     26    float: right;
     27    clear: right;
     28    width: 220px;
     29    position: relative;
     30}
     31
     32.has-sidebar {
     33    float: left;
     34    clear: left;
     35    width: 100%;
     36    margin-right: -240px;
     37}
     38
     39.has-sidebar .has-sidebar-content {
     40    margin-right: 245px;
     41}
     42
    2243
    2344/* styles for use by people extending the WordPress interface */
  • branches/crazyhorse/wp-admin/edit-form-advanced.php

    r8288 r8291  
    189189function post_password_meta_box($post) {
    190190?>
     191<p>
     192    <input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label>
     193</p>
     194<h4><?php _e( 'Post Password' ); ?></h4>
    191195<p><label class="hidden" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
    192196<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p>
    193197<?php
    194198}
    195 add_meta_box('passworddiv', __('Password Protect This Post'), 'post_password_meta_box', 'post', 'normal', 'core');
     199add_meta_box('passworddiv', __('Privacy Options'), 'post_password_meta_box', 'post', 'normal', 'core');
    196200
    197201function post_slug_meta_box($post) {
     
    304308</div>
    305309
    306 <div id="side-info-column">
     310<div id="side-info-column" class="inner-sidebar">
    307311
    308312<?php do_action('submitpost_box'); ?>
     
    313317
    314318<div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
     319<div id="post-body-content" class="has-sidebar-content">
    315320<div id="titlediv">
    316321<h3><label for="title"><?php _e('Title') ?></label></h3>
     
    438443</div>
    439444</div>
     445</div>
    440446
    441447</div>
  • branches/crazyhorse/wp-admin/edit-link-form.php

    r8222 r8291  
    263263<div id="poststuff">
    264264
    265 <div id="side-info-column">
     265<div id="side-info-column" class="inner-sidebar">
    266266<?php
    267267
     
    273273
    274274<div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
     275<div id="post-body-content" class="has-sidebar-content">
    275276<div id="namediv" class="stuffbox">
    276277<h3><label for="link_name"><?php _e('Name') ?></label></h3>
     
    325326</div>
    326327</div>
     328</div>
    327329
    328330</div>
  • branches/crazyhorse/wp-admin/edit-page-form.php

    r8222 r8291  
    226226<div id="poststuff">
    227227
    228 <div id="side-info-column">
     228<div id="side-info-column" class="inner-sidebar">
    229229
    230230<?php
     
    237237
    238238<div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>">
     239<div id="post-body-content" class="has-sidebar-content">
     240
    239241<div id="titlediv">
    240242<h3><label for="title"><?php _e('Title') ?></label></h3>
     
    345347</div>
    346348</div>
     349</div>
    347350
    348351</div>
  • branches/crazyhorse/wp-admin/js/postbox.js

    r8222 r8291  
    22    jQuery('.postbox h3').before('<a class="togbox">+</a> ');
    33    jQuery('.postbox a.togbox').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } );
     4
     5    jQuery('#side-sortables').append( '<div id="make-it-tall" style="margin-bottom: -2000px; padding-bottom: 2001px"></div>' );
     6    jQuery('#wpbody-content').css( 'overflow', 'hidden' );
    47
    58    var expandSidebar = function( doIt ) {
     
    1417    jQuery('.meta-box-sortables').sortable( {
    1518        connectWith: [ '.meta-box-sortables' ],
     19        items: '> .postbox',
    1620        handle: 'h3',
    1721        update: function() {
     22            if ( 'side-sortables' == this.id ) { // doing this with jQuery doesn't work for some reason: make-it-tall gets duplicated
     23                var makeItTall = document.getElementById( 'make-it-tall' );
     24                var sideSort = makeItTall.parentNode;
     25                sideSort.removeChild( makeItTall );
     26                sideSort.appendChild( makeItTall );
     27               
     28            }
    1829            if ( postingMetaBox ) {
    1930                return;
  • branches/crazyhorse/wp-admin/wp-admin.css

    r8288 r8291  
    284284}
    285285
    286 #titlediv, #namediv, #poststuff #namediv {
     286#namediv, #poststuff #namediv {
    287287    margin-top: 10px;
    288288}
     
    408408#postcustomstuff table #addmetasub {
    409409    width: auto;
    410 }
    411 
    412 #poststuff #post-body {
    413     margin: 0 0 0 20px;
    414 }
    415 
    416 #poststuff #post-body.has-sidebar {
    417     margin-right: 250px;
    418410}
    419411
     
    965957.postbox {
    966958    position: relative;
     959    min-width: 195px;
    967960}
    968961
     
    12271220}
    12281221
    1229 #side-info-column {
    1230     width: 220px;
    1231     position: absolute;
    1232     right: 0;
    1233 }
    1234 
    1235 #side-info-column {
    1236     height: 100%;
    1237 }
    1238 
    12391222#side-info-column #side-sortables {
    12401223    height: 100%;
Note: See TracChangeset for help on using the changeset viewer.