Make WordPress Core

Changeset 2906


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

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

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r2900 r2906  
    1111
    1212<div class="wrap">
    13 <h2><?php _e('Write Post'); ?></h2>
     13<a id="write-post"></a>
     14<h2><?php _e('Write Post'); ?><?php if ( 0 != $post_ID ) : ?>
     15 <small class="quickjump"><a href="#preview-post"><?php _e('preview &darr;'); ?></a></small><?php endif; ?></h2>
    1416<?php
    1517
  • 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
  • trunk/wp-admin/wp-admin.css

    r2844 r2906  
    113113    font: normal 30px/5px serif;
    114114    margin: 5px 10px;
     115}
     116
     117h2 small.quickjump {
     118    display: block;
     119    text-align: right;
     120}
     121
     122h2 small.quickjump a {
     123    text-decoration: none;
     124    border-bottom: 0;
     125    font-size: 15px;
     126    background: #f0f8ff;
     127    padding: 5px 10px;
    115128}
    116129
Note: See TracChangeset for help on using the changeset viewer.