Changeset 7285
- Timestamp:
- 03/14/2008 08:17:59 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 1 added
- 10 edited
-
css/colors-fresh.css (modified) (2 diffs)
-
css/global.css (modified) (1 diff)
-
edit-form-advanced.php (modified) (3 diffs)
-
edit-form-comment.php (modified) (1 diff)
-
edit-page-form.php (modified) (3 diffs)
-
images/date-button.gif (added)
-
includes/template.php (modified) (2 diffs)
-
js/comment.js (modified) (1 diff)
-
js/page.js (modified) (1 diff)
-
js/post.js (modified) (1 diff)
-
wp-admin.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/colors-fresh.css
r7262 r7285 485 485 } 486 486 487 #user_info, .login #backtoblog a {487 #user_info, .login #backtoblog a, .curtime { 488 488 color: #ccc; 489 489 } … … 676 676 border-color: #ccc; 677 677 } 678 679 .curtime { 680 color: #666; 681 } -
trunk/wp-admin/css/global.css
r7181 r7285 121 121 padding-bottom: 7px; 122 122 } 123 124 #timestampdiv { 125 display: none; 126 } -
trunk/wp-admin/edit-form-advanced.php
r7282 r7285 113 113 $stamp = __('Scheduled for:<br />%1$s at %2$s'); 114 114 } else if ( 'publish' == $post->post_status ) { 115 $stamp = __(' Published on:<br />%1$s at %2$s');115 $stamp = __('%1$s at %2$s'); 116 116 } else { 117 117 $stamp = __('Saved on:<br />%1$s at %2$s'); … … 121 121 $time = mysql2date(get_option('time_format'), $post->post_date); 122 122 } else { 123 $stamp = __(' Timestamp:<br />%1$s at %2$s');123 $stamp = __('%1$s at %2$s'); 124 124 $date = mysql2date(get_option('date_format'), current_time('mysql')); 125 125 $time = mysql2date(get_option('time_format'), current_time('mysql')); 126 126 } 127 127 ?> 128 <p ><?php printf($stamp, $date, $time); ?>128 <p class="curtime"><?php printf($stamp, $date, $time); ?> 129 129 <a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 130 130 … … 178 178 <h3><?php _e('Title') ?></h3> 179 179 <div id="titlewrap"> 180 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" />180 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" autocomplete="off" /> 181 181 </div> 182 182 <div class="inside"> -
trunk/wp-admin/edit-form-comment.php
r7114 r7285 40 40 41 41 <?php 42 $stamp = __(' Timestamp:<br />%1$s at %2$s');42 $stamp = __('%1$s at %2$s'); 43 43 $date = mysql2date(get_option('date_format'), $comment->comment_date); 44 44 $time = mysql2date(get_option('time_format'), $comment->comment_date); 45 45 ?> 46 <p ><?php printf($stamp, $date, $time); ?>46 <p class="curtime"><?php printf($stamp, $date, $time); ?> 47 47 <a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 48 48 -
trunk/wp-admin/edit-page-form.php
r7266 r7285 91 91 $stamp = __('Scheduled for:<br />%1$s at %2$s'); 92 92 } else if ( 'publish' == $post->post_status ) { 93 $stamp = __(' Published on:<br />%1$s at %2$s');93 $stamp = __('%1$s at %2$s'); 94 94 } else { 95 95 $stamp = __('Saved on:<br />%1$s at %2$s'); … … 99 99 $time = mysql2date(get_option('time_format'), $post->post_date); 100 100 } else { 101 $stamp = __(' Timestamp:<br />%1$s at %2$s');101 $stamp = __('%1$s at %2$s'); 102 102 $date = mysql2date(get_option('date_format'), current_time('mysql')); 103 103 $time = mysql2date(get_option('time_format'), current_time('mysql')); 104 104 } 105 105 ?> 106 <p ><?php printf($stamp, $date, $time); ?>106 <p class="curtime"><?php printf($stamp, $date, $time); ?> 107 107 <a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 108 108 … … 153 153 <h3><?php _e('Title') ?></h3> 154 154 <div id="titlewrap"> 155 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" />155 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" /> 156 156 </div> 157 157 <div class="inside"> -
trunk/wp-admin/includes/template.php
r7279 r7285 806 806 $tab_index_attribute = " tabindex=\"$tab_index\""; 807 807 808 echo '< input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> <label for="timestamp">'.__( 'Edit timestamp' ).'</label>';808 echo '<label for="timestamp" style="display: block;"><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> '.__( 'Edit timestamp' ).'</label><br />'; 809 809 810 810 $time_adj = time() + (get_option( 'gmt_offset' ) * 3600 ); … … 826 826 $month .= '</select>'; 827 827 828 $day = '<input type="text" id="jj" name="jj" value="' . $jj . '" size="2" maxlength="2" onchange="edit_date.checked=true"' . $tab_index_attribute . ' />';829 $year = '<input type="text" id="aa" name="aa" value="' . $aa . '" size="4" maxlength="5" onchange="edit_date.checked=true"' . $tab_index_attribute . ' />';830 $hour = '<input type="text" id="hh" name="hh" value="' . $hh . '" size="2" maxlength="2" onchange="edit_date.checked=true"' . $tab_index_attribute . ' />';831 $minute = '<input type="text" id="mn" name="mn" value="' . $mn . '" size="2" maxlength="2" onchange="edit_date.checked=true"' . $tab_index_attribute . ' />';828 $day = '<input type="text" id="jj" name="jj" value="' . $jj . '" size="2" maxlength="2" onchange="edit_date.checked=true"' . $tab_index_attribute . ' autocomplete="off" />'; 829 $year = '<input type="text" id="aa" name="aa" value="' . $aa . '" size="4" maxlength="5" onchange="edit_date.checked=true"' . $tab_index_attribute . ' autocomplete="off" />'; 830 $hour = '<input type="text" id="hh" name="hh" value="' . $hh . '" size="2" maxlength="2" onchange="edit_date.checked=true"' . $tab_index_attribute . ' autocomplete="off" />'; 831 $minute = '<input type="text" id="mn" name="mn" value="' . $mn . '" size="2" maxlength="2" onchange="edit_date.checked=true"' . $tab_index_attribute . ' autocomplete="off" />'; 832 832 printf(__('%1$s%2$s%3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute); 833 833 ?> -
trunk/wp-admin/js/comment.js
r6975 r7285 2 2 add_postbox_toggles('comment'); 3 3 4 jQuery('#timestampdiv').css('display', 'none');5 4 jQuery('.edit-timestamp').click(function () { 6 5 if (jQuery('#timestampdiv').is(":hidden")) { -
trunk/wp-admin/js/page.js
r6975 r7285 6 6 jQuery('#pageslugdiv').hide(); 7 7 8 jQuery('#timestampdiv').css('display', 'none');9 8 jQuery('.edit-timestamp').click(function () { 10 9 if (jQuery('#timestampdiv').is(":hidden")) { -
trunk/wp-admin/js/post.js
r7143 r7285 147 147 jQuery('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); 148 148 149 jQuery('#timestampdiv').css('display', 'none');150 149 jQuery('.edit-timestamp').click(function () { 151 150 if (jQuery('#timestampdiv').is(":hidden")) { -
trunk/wp-admin/wp-admin.css
r7273 r7285 1342 1342 text-decoration: none; 1343 1343 } 1344 1345 .curtime { 1346 background-image: url(images/date-button.gif); 1347 background-repeat: no-repeat; 1348 background-position: left 2px; 1349 padding-left: 18px; 1350 }
Note: See TracChangeset
for help on using the changeset viewer.