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:
parent
8c07d3bd1d
commit
faa8397c00
|
@ -10,8 +10,7 @@ $messages[3] = __('Custom field deleted.');
|
||||||
<form name="post" action="post.php" method="post" id="post">
|
<form name="post" action="post.php" method="post" id="post">
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<a id="write-post"></a>
|
<h2 id="write-post"><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
|
||||||
<h2><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
|
|
||||||
<small class="quickjump"><a href="#preview-post"><?php _e('preview ↓'); ?></a></small><?php endif; ?></h2>
|
<small class="quickjump"><a href="#preview-post"><?php _e('preview ↓'); ?></a></small><?php endif; ?></h2>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
<div class="wrap">
|
<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 ↓'); ?></a></small><?php endif; ?></h2>
|
||||||
<?php
|
<?php
|
||||||
if (0 == $post_ID) {
|
if (0 == $post_ID) {
|
||||||
$form_action = 'post';
|
$form_action = 'post';
|
||||||
|
|
|
@ -78,8 +78,7 @@ case 'edit':
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div id='preview' class='wrap'>
|
<div id='preview' class='wrap'>
|
||||||
<a id="preview-post"></a>
|
<h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2>
|
||||||
<h2><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit ↑'); ?></a></small></h2>
|
|
||||||
<iframe src="<?php the_permalink(); ?>" width="100%" height="600" />
|
<iframe src="<?php the_permalink(); ?>" width="100%" height="600" />
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue