WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r5057 r5289  
    108108<?php if ( current_user_can('edit_posts') ) : ?>
    109109<fieldset id="posttimestampdiv" class="dbx-box">
    110 <h3 class="dbx-handle"><?php _e('Post Timestamp'); ?>:</h3>
     110<h3 class="dbx-handle"><?php _e('Post Timestamp'); ?></h3>
    111111<div class="dbx-content"><?php touch_time(($action == 'edit')); ?></div>
    112112</fieldset>
     
    118118?>
    119119<fieldset id="authordiv" class="dbx-box">
    120 <h3 class="dbx-handle"><?php _e('Post Author'); ?>:</h3>
     120<h3 class="dbx-handle"><?php _e('Post Author'); ?></h3>
    121121<div class="dbx-content">
    122122<select name="post_author_override" id="post_author_override">
     
    145145
    146146<fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>">
    147 <legend><?php _e('Post') ?></legend>
     147<legend><?php _e('Post') ?>
     148
     149<?php if ( 'publish' == $post->post_status ) { ?>
     150<a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View &raquo;'); ?></a>
     151<?php } elseif ( 'edit' == $action ) { ?>
     152<a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview &raquo;'); ?></a>
     153<?php } ?>
     154</legend>
    148155
    149156    <?php the_editor($post->post_content); ?>
     
    245252
    246253<?php if ('edit' == $action) : $delete_nonce = wp_create_nonce( 'delete-post_' . $post_ID ); ?>
    247 <input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this post') ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(sprintf(__("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
     254<input name="deletepost" class="button delete" type="submit" id="deletepost" tabindex="10" value="<?php echo ( 'draft' == $post->post_status ) ? __('Delete this draft') : __('Delete this post'); ?>" <?php echo "onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}return false;\""; ?> />
    248255<?php endif; ?>
    249256
Note: See TracChangeset for help on using the changeset viewer.