Make WordPress Core


Ignore:
Timestamp:
09/23/2005 12:44:26 AM (21 years ago)
Author:
ryan
Message:

Post preview, now with extra spiff, from Mark Jaquith. fixes #1701

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2850 r2906  
    7979        ?>
    8080        <div id='preview' class='wrap'>
    81         <h2><?php _e('Post Preview (updated when post is saved)'); ?></h2>
    82         <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>
    83         <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(','); ?> &#8212; <?php the_author() ?> @ <?php the_time() ?></div>
    84 
    85         <div class="storycontent">
    86         <?php
    87         echo apply_filters('the_content', html_entity_decode($post->post_content) );
    88         ?>
    89         </div>
     81        <a id="preview-post"></a>
     82        <h2><?php _e('Post Preview (updated when post is saved)'); ?> <small class="quickjump"><a href="#write-post"><?php _e('edit &uarr;'); ?></a></small></h2>
     83                <iframe src="<?php the_permalink(); ?>" width="100%" height="600" />
    9084        </div>
    9185        <?php
Note: See TracChangeset for help on using the changeset viewer.