Rough pass at submit box.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
23770cb94e
commit
d01592f0ae
|
@ -81,14 +81,31 @@ addLoadEvent(focusit);
|
||||||
<?php echo $form_pingback ?>
|
<?php echo $form_pingback ?>
|
||||||
<?php echo $form_prevstatus ?>
|
<?php echo $form_prevstatus ?>
|
||||||
|
|
||||||
<p class="submit">
|
<div id="submitpost">
|
||||||
|
|
||||||
|
<div id="previewview">
|
||||||
<?php if ( 'publish' == $post->post_status ) { ?>
|
<?php if ( 'publish' == $post->post_status ) { ?>
|
||||||
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View »'); ?></a>
|
<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View »'); ?></a>
|
||||||
<?php } elseif ( 'edit' == $action ) { ?>
|
<?php } elseif ( 'edit' == $action ) { ?>
|
||||||
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview »'); ?></a>
|
<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview »'); ?></a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<span id="autosave"></span>
|
</div>
|
||||||
<?php echo $saveasdraft; ?>
|
|
||||||
|
<div class="inside">
|
||||||
|
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||||
|
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
|
||||||
|
<?php endif; ?>
|
||||||
|
<label for="post_status_pending" class="selectit"><input id="post_status_pending" name="post_status" type="radio" value="pending" <?php checked($post->post_status, 'pending'); ?> /> <?php _e('Pending Review') ?></label>
|
||||||
|
<label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Keep this post private') ?></label></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="submit">
|
||||||
<input type="submit" name="submit" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
|
<input type="submit" name="submit" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
|
||||||
<?php
|
<?php
|
||||||
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
|
if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) {
|
||||||
|
@ -101,6 +118,15 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_I
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="submit">
|
||||||
|
|
||||||
|
<span id="autosave"></span>
|
||||||
|
|
||||||
|
|
||||||
<input name="referredby" type="hidden" id="referredby" value="<?php
|
<input name="referredby" type="hidden" id="referredby" value="<?php
|
||||||
if ( !empty($_REQUEST['popupurl']) )
|
if ( !empty($_REQUEST['popupurl']) )
|
||||||
echo clean_url(stripslashes($_REQUEST['popupurl']));
|
echo clean_url(stripslashes($_REQUEST['popupurl']));
|
||||||
|
@ -229,18 +255,6 @@ list_meta($metadata);
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="poststatusdiv" class="postbox <?php echo postbox_classes('poststatusdiv'); ?>">
|
|
||||||
<h3><?php _e('Post Status') ?></h3>
|
|
||||||
<div class="inside">
|
|
||||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
|
||||||
<label for="post_status_publish" class="selectit"><input id="post_status_publish" name="post_status" type="radio" value="publish" <?php checked($post->post_status, 'publish'); checked($post->post_status, 'future'); ?> /> <?php _e('Published') ?></label>
|
|
||||||
<?php endif; ?>
|
|
||||||
<label for="post_status_pending" class="selectit"><input id="post_status_pending" name="post_status" type="radio" value="pending" <?php checked($post->post_status, 'pending'); ?> /> <?php _e('Pending Review') ?></label>
|
|
||||||
<label for="post_status_draft" class="selectit"><input id="post_status_draft" name="post_status" type="radio" value="draft" <?php checked($post->post_status, 'draft'); ?> /> <?php _e('Draft') ?></label>
|
|
||||||
<label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="radio" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Private') ?></label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php if ( current_user_can('edit_posts') ) : ?>
|
<?php if ( current_user_can('edit_posts') ) : ?>
|
||||||
<div id="posttimestampdiv" class="postbox <?php echo postbox_classes('posttimestampdiv'); ?>">
|
<div id="posttimestampdiv" class="postbox <?php echo postbox_classes('posttimestampdiv'); ?>">
|
||||||
<h3><?php _e('Post Timestamp'); ?></h3>
|
<h3><?php _e('Post Timestamp'); ?></h3>
|
||||||
|
|
|
@ -1226,6 +1226,25 @@ a.view-comment-post-link {
|
||||||
background-position: 4px 18px;
|
background-position: 4px 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#submitpost {
|
||||||
|
position: fixed;
|
||||||
|
background-color: #eaf3fa;
|
||||||
|
width: 250px;
|
||||||
|
top: 225px;
|
||||||
|
right: 25%;
|
||||||
|
margin-right: -125px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#submitpost #previewview {
|
||||||
|
background-color: #2683ae;
|
||||||
|
}
|
||||||
|
|
||||||
|
#submitpost .submit {
|
||||||
|
text-align: left;
|
||||||
|
background-color: #464646;
|
||||||
|
padding: 15px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Categories */
|
/* Categories */
|
||||||
|
|
||||||
#categorydiv #category-adder {
|
#categorydiv #category-adder {
|
||||||
|
|
Loading…
Reference in New Issue