mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 02:34:38 +00:00
Post preview, now with extra spiff, from Mark Jaquith. fixes #1701
git-svn-id: https://develop.svn.wordpress.org/trunk@2906 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -78,15 +78,9 @@ case 'edit':
|
||||
|
||||
?>
|
||||
<div id='preview' class='wrap'>
|
||||
<h2><?php _e('Post Preview (updated when post is saved)'); ?></h2>
|
||||
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__("Permanent Link: %s"), get_the_title()); ?>"><?php the_title(); ?></a></h3>
|
||||
<div class="meta"><?php _e("Filed under:"); ?> <?php the_category(','); ?> — <?php the_author() ?> @ <?php the_time() ?></div>
|
||||
|
||||
<div class="storycontent">
|
||||
<?php
|
||||
echo apply_filters('the_content', html_entity_decode($post->post_content) );
|
||||
?>
|
||||
</div>
|
||||
<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 ↑'); ?></a></small></h2>
|
||||
<iframe src="<?php the_permalink(); ?>" width="100%" height="600" />
|
||||
</div>
|
||||
<?php
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user