Changeset 8291
- Timestamp:
- 07/09/2008 12:17:20 AM (17 years ago)
- Location:
- branches/crazyhorse/wp-admin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-admin/css/global.css
r8284 r8291 20 20 position: relative; 21 21 } 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 22 43 23 44 /* styles for use by people extending the WordPress interface */ -
branches/crazyhorse/wp-admin/edit-form-advanced.php
r8288 r8291 189 189 function post_password_meta_box($post) { 190 190 ?> 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> 191 195 <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> 192 196 <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> 193 197 <?php 194 198 } 195 add_meta_box('passworddiv', __('P assword Protect This Post'), 'post_password_meta_box', 'post', 'normal', 'core');199 add_meta_box('passworddiv', __('Privacy Options'), 'post_password_meta_box', 'post', 'normal', 'core'); 196 200 197 201 function post_slug_meta_box($post) { … … 304 308 </div> 305 309 306 <div id="side-info-column" >310 <div id="side-info-column" class="inner-sidebar"> 307 311 308 312 <?php do_action('submitpost_box'); ?> … … 313 317 314 318 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 319 <div id="post-body-content" class="has-sidebar-content"> 315 320 <div id="titlediv"> 316 321 <h3><label for="title"><?php _e('Title') ?></label></h3> … … 438 443 </div> 439 444 </div> 445 </div> 440 446 441 447 </div> -
branches/crazyhorse/wp-admin/edit-link-form.php
r8222 r8291 263 263 <div id="poststuff"> 264 264 265 <div id="side-info-column" >265 <div id="side-info-column" class="inner-sidebar"> 266 266 <?php 267 267 … … 273 273 274 274 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 275 <div id="post-body-content" class="has-sidebar-content"> 275 276 <div id="namediv" class="stuffbox"> 276 277 <h3><label for="link_name"><?php _e('Name') ?></label></h3> … … 325 326 </div> 326 327 </div> 328 </div> 327 329 328 330 </div> -
branches/crazyhorse/wp-admin/edit-page-form.php
r8222 r8291 226 226 <div id="poststuff"> 227 227 228 <div id="side-info-column" >228 <div id="side-info-column" class="inner-sidebar"> 229 229 230 230 <?php … … 237 237 238 238 <div id="post-body" class="<?php echo $side_meta_boxes ? 'has-sidebar' : ''; ?>"> 239 <div id="post-body-content" class="has-sidebar-content"> 240 239 241 <div id="titlediv"> 240 242 <h3><label for="title"><?php _e('Title') ?></label></h3> … … 345 347 </div> 346 348 </div> 349 </div> 347 350 348 351 </div> -
branches/crazyhorse/wp-admin/js/postbox.js
r8222 r8291 2 2 jQuery('.postbox h3').before('<a class="togbox">+</a> '); 3 3 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' ); 4 7 5 8 var expandSidebar = function( doIt ) { … … 14 17 jQuery('.meta-box-sortables').sortable( { 15 18 connectWith: [ '.meta-box-sortables' ], 19 items: '> .postbox', 16 20 handle: 'h3', 17 21 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 } 18 29 if ( postingMetaBox ) { 19 30 return; -
branches/crazyhorse/wp-admin/wp-admin.css
r8288 r8291 284 284 } 285 285 286 # titlediv, #namediv, #poststuff #namediv {286 #namediv, #poststuff #namediv { 287 287 margin-top: 10px; 288 288 } … … 408 408 #postcustomstuff table #addmetasub { 409 409 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;418 410 } 419 411 … … 965 957 .postbox { 966 958 position: relative; 959 min-width: 195px; 967 960 } 968 961 … … 1227 1220 } 1228 1221 1229 #side-info-column {1230 width: 220px;1231 position: absolute;1232 right: 0;1233 }1234 1235 #side-info-column {1236 height: 100%;1237 }1238 1239 1222 #side-info-column #side-sortables { 1240 1223 height: 100%;
Note: See TracChangeset
for help on using the changeset viewer.