Put the preview anchors on the h2. Props: markjaquith fixes #1765

git-svn-id: http://svn.automattic.com/wordpress/trunk@2973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-10-29 01:52:56 +00:00
parent 8c07d3bd1d
commit faa8397c00
3 changed files with 4 additions and 5 deletions

View File

@ -10,8 +10,7 @@ $messages[3] = __('Custom field deleted.');
<form name="post" action="post.php" method="post" id="post">
<div class="wrap">
<a id="write-post"></a>
<h2><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
<h2 id="write-post"><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
<small class="quickjump"><a href="#preview-post"><?php _e('preview &darr;'); ?></a></small><?php endif; ?></h2>
<?php

View File

@ -1,6 +1,7 @@
<div class="wrap">
<h2><?php _e('Write Page'); ?></h2>
<h2 id="write-post"><?php _e('Write Page'); ?><?php if ( 0 != $post_ID ) : ?>
<small class="quickjump"><a href="#preview-post"><?php _e('preview &darr;'); ?></a></small><?php endif; ?></h2>
<?php
if (0 == $post_ID) {
$form_action = 'post';

View File

@ -78,8 +78,7 @@ case 'edit':
?>
<div id='preview' class='wrap'>
<a id="preview-post"></a>
<h2><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
<h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
<iframe src="<?php the_permalink(); ?>" width="100%" height="600" />
</div>
<?php