Move timestamp to submitbox. Put it in a slidedown. see #5846

git-svn-id: https://develop.svn.wordpress.org/trunk@6904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-18 22:07:57 +00:00
parent fcdcbe69e8
commit af4c2613d4
5 changed files with 58 additions and 39 deletions

View File

@@ -91,22 +91,30 @@ addLoadEvent(focusit);
<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> /> <?php _e('Keep this post private') ?></label></p>
<?php
if ($post_ID):
if ( 'future' == $post->post_status ) {
$time = __('Scheduled for:<br />%1$s at %2$s');
$date = $post->post_date;
} else if ( 'publish' == $post->post_status ) {
$time = __('Published on:<br />%1$s at %2$s');
$date = $post->post_date;
if ($post_ID) {
if ( 'future' == $post->post_status ) {
$stamp = __('Scheduled for:<br />%1$s at %2$s');
} else if ( 'publish' == $post->post_status ) {
$stamp = __('Published on:<br />%1$s at %2$s');
} else {
$stamp = __('Saved on:<br />%1$s at %2$s');
}
$date = mysql2date(get_option('date_format'), $post->post_date);
$time = mysql2date(get_option('time_format'), $post->post_date);
} else {
$time = __('Saved on:<br />%1$s at %2$s');
$date = $post->post_modified;
$stamp = __('Timestamp:<br />%1$s at %2$s');
$date = mysql2date(get_option('date_format'), current_time('mysql'));
$time = mysql2date(get_option('time_format'), current_time('mysql'));
}
?>
<p><?php printf($time, mysql2date(get_option('date_format'), $date), mysql2date(get_option('time_format'), $date)); ?>
<?php endif; ?>
<p><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
<div id='timestamp'><?php touch_time(($action == 'edit')); ?></div>
</div>
<p class="submit">