Rudimentary post preview functionality.

git-svn-id: http://svn.automattic.com/wordpress/trunk@854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-02-09 12:33:13 +00:00
parent 0284b7ba09
commit b7466b97f6
1 changed files with 14 additions and 0 deletions

View File

@ -223,6 +223,20 @@ switch($action) {
$pinged = $postdata['pinged'];
include('edit-form-advanced.php');
$p = $_GET['post'];
include(ABSPATH.'wp-blog-header.php');
start_wp();
?>
<div id='preview' class='wrap'>
<h2>Post Preview</h2>
<h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<div class="meta">Filed under: <?php the_category() ?> &#8212; <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
<div class="storycontent">
<?php the_content(); ?>
</div>
</div>
<?php
} else {
?>
<p>Since you&#8217;re a newcomer, you&#8217;ll have to wait for an admin to raise your level to 1,