Submitbox style changes from mt. see #5949

git-svn-id: http://svn.automattic.com/wordpress/trunk@6969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-22 03:45:19 +00:00
parent 75b6998532
commit 5afb77ccdd
4 changed files with 39 additions and 9 deletions

View File

@ -137,7 +137,7 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_I
}
if ( ('edit' == $action) && current_user_can('delete_post', $post_ID) )
echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>";
echo "<a href='" . wp_nonce_url("post.php?action=delete&amp;post=$post_ID", 'delete-post_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;post') . "</a>";
?>
<?php if ($post_ID): ?>
<br />
@ -145,8 +145,8 @@ if ( ('edit' == $action) && current_user_can('delete_post', $post_ID) )
<?php endif; ?>
</p>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<ul>
<?php if ($post_ID): ?>
@ -158,6 +158,7 @@ if ( ('edit' == $action) && current_user_can('delete_post', $post_ID) )
<li><a href="edit-tags.php"><?php _e('Manage All Tags') ?></a></li>
</ul>
</div>
<?php do_action('submitpost_box'); ?>
</div>

View File

@ -55,8 +55,8 @@ function xfn_check($class, $value = '', $deprecated = '') {
<input type="submit" class="button" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
</p>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<ul>
<li><a href="link-manager.php"><?php _e('Manage All Links') ?></a></li>

View File

@ -118,7 +118,7 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_I
}
if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
echo "<a href='" . wp_nonce_url("page.php?action=delete&amp;post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . "</a>";
echo "<a href='" . wp_nonce_url("page.php?action=delete&amp;post=$post_ID", 'delete-page_' . $post_ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;page') . "</a>";
?>
<?php if ($post_ID): ?>
<br />
@ -126,8 +126,8 @@ if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) )
<?php endif; ?>
</p>
<div class="inside">
<p><strong><?php _e('Related') ?></strong></p>
<div class="side-info">
<h5><?php _e('Related') ?></h5>
<ul>
<?php if ($post_ID): ?>

View File

@ -122,7 +122,36 @@ form#upload #post_content {
}
.submit {
margin: 1.5em 0;
margin: 1.5em 0 0 0;
-moz-border-radius-bottomleft: 3px;
-khtml-border-bottom-left-radius: 3px;
-webkit-border-bottom-left-radius: 3px;
border-bottom-left-radius: 3px;
-moz-border-radius-bottomright: 3px;
-khtml-border-bottom-right-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.side-info {
background: #fff;
margin: 0;
padding: 4px;
font-size: 11px;
}
.side-info h5 {
padding-bottom: 8px;
border-bottom: 1px solid #dadada;
font-size: 14px;
margin-bottom: 6px;
}
.side-info ul {
margin: 0;
padding-left: 18px;
color: #666;
list-style: square;
}
.submit input, .button, .button-secondary {