Swap Save Draft and Preview button locations
git-svn-id: http://svn.automattic.com/wordpress/trunk@9723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
022c232b98
commit
54f3e3561d
|
@ -78,13 +78,6 @@ function post_submit_meta_box($post) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="minor-publishing-actions">
|
<div id="minor-publishing-actions">
|
||||||
<div id="preview-action">
|
|
||||||
<?php $preview_link = 'publish' == $post->post_status ? clean_url(get_permalink($post->ID)) : clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>
|
|
||||||
|
|
||||||
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php _e('Preview'); ?></a>
|
|
||||||
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="save-action">
|
<div id="save-action">
|
||||||
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
||||||
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save Draft') ); ?>" tabindex="4" class="button button-highlighted" />
|
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save Draft') ); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
|
@ -92,6 +85,14 @@ function post_submit_meta_box($post) {
|
||||||
<input type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save as Pending') ); ?>" tabindex="4" class="button button-highlighted" />
|
<input type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save as Pending') ); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="preview-action">
|
||||||
|
<?php $preview_link = 'publish' == $post->post_status ? clean_url(get_permalink($post->ID)) : clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>
|
||||||
|
|
||||||
|
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php _e('Preview'); ?></a>
|
||||||
|
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><?php // /minor-publishing-actions ?>
|
</div><?php // /minor-publishing-actions ?>
|
||||||
|
|
||||||
|
|
|
@ -71,13 +71,6 @@ function page_submit_meta_box($post) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="minor-publishing-actions">
|
<div id="minor-publishing-actions">
|
||||||
<div id="preview-action">
|
|
||||||
<?php $preview_link = 'publish' == $post->post_status ? clean_url(get_permalink($post->ID)) : clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>
|
|
||||||
|
|
||||||
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php _e('Preview'); ?></a>
|
|
||||||
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="save-action">
|
<div id="save-action">
|
||||||
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
<?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?>
|
||||||
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save Draft') ); ?>" tabindex="4" class="button button-highlighted" />
|
<input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save Draft') ); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
|
@ -85,6 +78,14 @@ function page_submit_meta_box($post) {
|
||||||
<input type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save as Pending') ); ?>" tabindex="4" class="button button-highlighted" />
|
<input type="submit" name="save" id="save-post" value="<?php echo attribute_escape( __('Save as Pending') ); ?>" tabindex="4" class="button button-highlighted" />
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="preview-action">
|
||||||
|
<?php $preview_link = 'publish' == $post->post_status ? clean_url(get_permalink($post->ID)) : clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>
|
||||||
|
|
||||||
|
<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php _e('Preview'); ?></a>
|
||||||
|
<input type="hidden" name="wp-preview" id="wp-preview" value="" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div><?php // /minor-publishing-actions ?>
|
</div><?php // /minor-publishing-actions ?>
|
||||||
|
|
||||||
|
|
|
@ -261,11 +261,11 @@ form p.submit .cancel:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
#save-post {
|
#save-post {
|
||||||
float: right;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preview {
|
.preview {
|
||||||
float: left;
|
float: right;
|
||||||
padding: 2px 8px !important;
|
padding: 2px 8px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue