Changeset 8379
- Timestamp:
- 07/20/2008 03:00:17 AM (18 years ago)
- Location:
- branches/crazyhorse/wp-admin
- Files:
-
- 19 edited
-
admin-footer.php (modified) (1 diff)
-
admin-header.php (modified) (1 diff)
-
comment.php (modified) (1 diff)
-
css/colors-fresh.css (modified) (3 diffs)
-
css/dashboard.css (modified) (2 diffs)
-
css/global.css (modified) (1 diff)
-
edit-form-advanced.php (modified) (7 diffs)
-
edit-form-comment.php (modified) (5 diffs)
-
edit-link-form.php (modified) (5 diffs)
-
edit-page-form.php (modified) (6 diffs)
-
includes/dashboard.php (modified) (2 diffs)
-
js/comment.js (modified) (3 diffs)
-
js/common.js (modified) (2 diffs)
-
js/page.js (modified) (3 diffs)
-
js/post.js (modified) (4 diffs)
-
link-add.php (modified) (1 diff)
-
link.php (modified) (1 diff)
-
rtl.css (modified) (1 diff)
-
wp-admin.css (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-admin/admin-footer.php
r8371 r8379 1 </div><!-- wpbody-content -->2 1 <?php if ( ! $fixed_bar ) { ?> 2 <br class="clear" /></div><!-- wpbody-content --> 3 <?php } ?> 3 4 </div><!-- wpbody --> 4 <?php } ?>5 5 </div><!-- wpcontent --> 6 6 </div><!-- wpwrap --> -
branches/crazyhorse/wp-admin/admin-header.php
r8371 r8379 17 17 } 18 18 19 $fixed_bar_pages = array( 'post.php', 'post-new.php' );20 $fixed_bar = in_array( $the_current_page, $fixed_bar_pages ) ? true : false;19 $fixed_bar_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php' ); 20 if ( ! isset($fixed_bar) ) $fixed_bar = in_array( $the_current_page, $fixed_bar_pages ) ? true : false; 21 21 22 22 get_admin_page_title(); -
branches/crazyhorse/wp-admin/comment.php
r8004 r8379 22 22 23 23 wp_enqueue_script('comment'); 24 $fixed_bar = true; 24 25 25 26 require_once('admin-header.php'); -
branches/crazyhorse/wp-admin/css/colors-fresh.css
r8371 r8379 489 489 } 490 490 491 .login #backtoblog a, .curtime, #user_info a, #dashmenu a {491 .login #backtoblog a, #curtime, #user_info a, #dashmenu a { 492 492 color: #ccc; 493 493 } … … 685 685 } 686 686 687 .curtime {687 #curtime { 688 688 color: #666; 689 689 } … … 728 728 729 729 #fixedbar a, 730 #fixedbar .curtime {730 #fixedbar #curtime { 731 731 color: #ccc; 732 732 } -
branches/crazyhorse/wp-admin/css/dashboard.css
r8371 r8379 268 268 269 269 #dashboard_inbox p.actions { 270 margin-bottom:0pt; 270 271 margin-top: 0; 272 float:left; 271 273 } 272 274 … … 293 295 margin: 0; 294 296 } 297 298 #inbox-message { 299 margin:0 0 0 75px; 300 padding:5px; 301 } -
branches/crazyhorse/wp-admin/css/global.css
r8291 r8379 212 212 border-style: solid; 213 213 padding: 0 0.6em; 214 max-width: 950px;215 214 margin-bottom: 1em; 216 215 } -
branches/crazyhorse/wp-admin/edit-form-advanced.php
r8371 r8379 39 39 ?> 40 40 41 <form name="post" action="post.php" method="post" id="post"> 42 <div id="wpbody-content"> 43 41 44 42 45 <?php … … 226 229 227 230 ?> 228 229 <form name="post" action="post.php" method="post" id="post">230 <div id="wpbody-content">231 231 232 232 <?php if ( $notice ) : ?> … … 339 339 340 340 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 341 <h3> 342 <label for="content"><?php _e('Post') ?></label> 343 <a id="add-media-button" href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Add Media' ); ?></a> 344 <br class="clear" /> 345 </h3> 341 342 <div id="add-media-button"><a href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Add Media' ); ?></a></div> 343 344 <h3><?php _e('Post') ?></h3> 346 345 347 346 <?php the_editor($post->post_content); ?> … … 395 394 396 395 </div> 397 < /div>396 <br class="clear" /></div><!-- wpbody-content (fixedbar) --> 398 397 399 398 <div id="fixedbar"> 400 399 <table id="fixedbar-wrap"><tbody><tr> 401 400 <td id="preview-link"> 401 <span> 402 402 <?php if ( 'publish' == $post->post_status ) { ?> 403 403 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a> … … 405 405 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Post'); ?></a> 406 406 <?php } ?> 407 </span> 407 408 </td> 409 408 410 <td id="submitpost" class="submitbox"> 409 411 <div id="post-time-info" class="alignleft"> … … 427 429 } 428 430 ?> 429 430 <p class="curtime"><?php printf($stamp, $date, $time, $edit); ?></p> 431 <p id="curtime"><?php printf($stamp, $date, $time, $edit); ?></p> 431 432 <div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div> 432 433 … … 438 439 <?php 439 440 440 if ( ( 'edit' == $action ) && current_user_can('delete_post', $post_ID) )441 if ( ( 'edit' == $action ) && current_user_can('delete_post', $post_ID) ) 441 442 echo "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post_ID", 'delete-post_' . $post_ID) . "' 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 )) . "') ) { return true;}return false;\">" . __('Delete post') . "</a>"; 442 443 elseif ( 'edit' != $action ) 444 echo "<a class='submitdelete' href='index.php' onclick=\"if ( confirm('" . js_escape( __("You are about to delete this post\n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Cancel post') . "</a>"; 443 445 ?> 444 446 -
branches/crazyhorse/wp-admin/edit-form-comment.php
r8300 r8379 7 7 8 8 <form name="post" action="comment.php" method="post" id="post"> 9 <div id="wpbody-content"> 10 9 11 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 10 12 <div class="wrap"> … … 15 17 <div id="poststuff"> 16 18 19 <!-- 17 20 <p id="big-add-button"> 18 21 <span id="previewview"> … … 20 23 </span> 21 24 </p> 25 --> 22 26 23 27 <!-- crazyhorse … … 76 80 77 81 <div id="postdiv" class="postarea"> 78 <h3>< label for="content"><?php _e('Comment') ?></label></h3>82 <h3><?php _e('Comment') ?></h3> 79 83 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?> 80 84 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 81 </div>82 83 <div id="submitpost" class="submitbox">84 <div id="comment-time-info" class="alignleft">85 <?php86 $stamp = __('Timestamp: <span class="timestamp">%1$s at %2$s %3$s</span>');87 $date = mysql2date(get_option('date_format'), $comment->comment_date);88 $time = mysql2date(get_option('time_format'), $comment->comment_date);89 $edit = '<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js">' . __('(Change)') . '</a>';90 91 ?>92 <p class="curtime"><?php printf($stamp, $date, $time, $edit); ?></p>93 94 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>95 </div>96 97 <p class="submit alignright">98 <?php99 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a>";100 ?>101 <input type="submit" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" />102 </p>103 104 <br class="clear" />105 106 85 </div> 107 86 … … 119 98 </div> 120 99 100 </div><!-- wpbody-content (fixedbar) --> 101 102 <div id="fixedbar"> 103 <table id="fixedbar-wrap"><tbody><tr> 104 105 <td id="preview-link"> 106 <span> 107 <a href="<?php echo get_comment_link(); ?>" target="_blank"><?php _e('View this Comment'); ?></a> 108 </span> 109 </td> 110 111 <td id="submitpost" class="submitbox"> 112 <div id="comment-time-info" class="alignleft"> 113 <?php 114 $stamp = __('Timestamp: <span class="timestamp">%1$s at %2$s %3$s</span>'); 115 $date = mysql2date(get_option('date_format'), $comment->comment_date); 116 $time = mysql2date(get_option('time_format'), $comment->comment_date); 117 $edit = '(<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js">' . __('Change') . '</a>)'; 118 119 ?> 120 <p id="curtime"><?php printf($stamp, $date, $time, $edit); ?></p> 121 122 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div> 123 </div> 124 125 <p class="submit alignright"> 126 <?php 127 echo "<a class='submitdelete' href='" . wp_nonce_url("comment.php?action=deletecomment&c=$comment->comment_ID&_wp_original_http_referer=" . wp_get_referer(), 'delete-comment_' . $comment->comment_ID) . "' onclick=\"if ( confirm('" . js_escape(__("You are about to delete this comment. \n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Delete comment') . "</a> "; 128 ?> 129 <input type="submit" name="save" value="<?php _e('Save'); ?>" tabindex="4" class="button button-highlighted" /> 130 </p> 131 </td></tr></tbody></table> 132 </div><!-- /fixedbar --> 133 134 135 136 137 121 138 </form> 122 139 -
branches/crazyhorse/wp-admin/edit-link-form.php
r8291 r8379 229 229 230 230 <?php echo $form ?> 231 <div id="wpbody-content"> 232 233 <?php echo $link_added; ?> 234 231 235 <?php wp_nonce_field($nonce_action); ?> 232 236 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> … … 236 240 <h2><?php echo $heading; ?></h2> 237 241 242 <!-- 238 243 <p id="big-add-button"> 239 244 <span id="previewview"> … … 243 248 </span> 244 249 </p> 250 --> 245 251 246 252 <!-- TODO … … 296 302 <?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?> 297 303 </div> 298 </div>299 300 <div class="submitbox" id="submitlink">301 <p class="submit alignright">302 <?php303 if ( ( 'edit' == $action) && current_user_can('manage_links') )304 echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link_id", 'delete-bookmark_' . $link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "</a>";305 ?>306 <input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" />307 </p>308 <br class="clear" />309 304 </div> 310 305 … … 330 325 </div> 331 326 327 <br class="clear" /></div><!-- wpbody-content (fixedbar) --> 328 329 <div id="fixedbar"> 330 <table id="fixedbar-wrap"><tbody><tr> 331 332 <td id="preview-link"> 333 <span> 334 <?php if ( !empty($link_id) ) { ?> 335 <a href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a> 336 <?php } ?> 337 </span> 338 </td> 339 340 <td id="submitlink" class="submitbox"> 341 <p class="submit alignright"> 342 <?php 343 if ( ( 'edit' == $action) && current_user_can('manage_links') ) 344 echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&link_id=$link_id", 'delete-bookmark_' . $link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete link') . "</a> "; 345 ?> 346 <input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" /> 347 </p> 348 </td> 349 </tr></tbody></table> 350 </div><!-- /fixedbar --> 351 332 352 </form> -
branches/crazyhorse/wp-admin/edit-page-form.php
r8291 r8379 34 34 ?> 35 35 36 <form name="post" action="page.php" method="post" id="post"> 37 <div id="wpbody-content"> 38 36 39 <?php if ( $notice ) : ?> 37 40 <div id="notice" class="error"><p><?php echo $notice ?></p></div> … … 147 150 add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'page', 'normal', 'core'); 148 151 endif; 149 150 ?> 151 152 <form name="post" action="page.php" method="post" id="post"> 152 ?> 153 153 154 <div class="wrap"> 154 155 <h2><?php … … 159 160 ?></h2> 160 161 162 <!-- 161 163 <p id="big-add-button"> 162 164 <span id="previewview"> … … 168 170 </span> 169 171 </p> 172 --> 170 173 171 174 <?php … … 255 258 256 259 <div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea"> 257 <h3><label for="content"><?php _e('Page') ?></label></h3> 260 261 <div id="add-media-button"><a href="<?php echo clean_url( admin_url( 'media-upload.php?post_id=' . ( $post_ID ? $post_ID : $temp_ID ) . '&TB_iframe=true' ) ); ?>" class="thickbox button"><?php _e( 'Add Media' ); ?></a></div> 262 263 <h3><?php _e('Page') ?></h3> 258 264 <?php the_editor($post->post_content); ?> 259 265 <div id="post-status-info"> 260 266 <span id="wp-word-count" class="alignleft"></span> 261 <span id="autosave" class="alignright"></span> 267 <span class="alignright"> 268 <span id="autosave"> </span> 269 270 <?php 271 if ($post_ID) { 272 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { 273 $last_user = get_userdata($last_id); 274 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 275 } else { 276 printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified)); 277 } 278 } 279 ?> 280 </span> 262 281 <br class="clear" /> 263 282 </div> 264 283 265 <div class="submitbox" id="submitpage"> 284 285 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?> 286 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 287 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> 288 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?> 289 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 290 </div> 291 292 <?php 293 294 do_meta_boxes('page', 'normal', $post); 295 do_action('edit_page_form'); 296 do_meta_boxes('page', 'advanced', $post); 297 298 ?> 299 300 </div> 301 </div> 302 </div> 303 304 </div> 305 306 <br class="clear" /></div><!-- wpbody-content (fixedbar) --> 307 308 <div id="fixedbar"> 309 <table id="fixedbar-wrap"><tbody><tr> 310 311 <td id="preview-link"> 312 <span> 313 <?php if ( 'publish' == $post->post_status ) { ?> 314 <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Page'); ?></a> 315 <?php } elseif ( 'edit' == $action ) { ?> 316 <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Page'); ?></a> 317 <?php } ?> 318 </span> 319 </td> 320 321 <td id="submitpage" class="submitbox"> 266 322 <div id="post-time-info" class="alignleft"> 267 323 <?php 268 324 if ($post_ID) { 269 325 if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date 270 $stamp = __('Scheduled for: <br />%1$s at %2$s');326 $stamp = __('Scheduled for: <span class="timestamp">%1$s at %2$s</span>'); 271 327 } else if ( 'publish' == $post->post_status ) { // already published 272 $stamp = __('Published on: <br />%1$s at %2$s');328 $stamp = __('Published on: <span class="timestamp">%1$s at %2$s</span>'); 273 329 } else if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified 274 330 $stamp = __('Publish immediately'); 275 331 } else { // draft, 1 or more saves, date specified 276 $stamp = __('Publish on: <br />%1$s at %2$s');332 $stamp = __('Publish on: <span class="timestamp">%1$s at %2$s</span>'); 277 333 } 278 334 $date = mysql2date(get_option('date_format'), $post->post_date); … … 284 340 } 285 341 ?> 286 <p class="curtime"><?php printf($stamp, $date, $time); ?> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p>342 <p id="curtime"><?php printf($stamp, $date, $time); ?> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p> 287 343 <div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div> 288 289 <?php290 291 if ($post_ID) {292 if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) {293 $last_user = get_userdata($last_id);294 printf(__('Last edited by %1$s on %2$s at %3$s'), wp_specialchars( $last_user->display_name ), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));295 } else {296 printf(__('Last edited on %1$s at %2$s'), mysql2date(get_option('date_format'), $post->post_modified), mysql2date(get_option('time_format'), $post->post_modified));297 }298 }299 ?>300 344 </div> 301 345 302 346 <p class="submit alignright"> 303 304 <?php 305 306 if ( ('edit' == $action) && current_user_can('delete_page', $post_ID) ) 347 <?php 348 if ( ('edit' == $action ) && current_user_can('delete_page', $post_ID) ) 307 349 echo "<a class='submitdelete' href='" . wp_nonce_url("page.php?action=delete&post=$post_ID", 'delete-page_' . $post_ID) . "' 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 page '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete page') . "</a>"; 308 309 ?> 310 311 <input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" />350 elseif ( 'edit' != $action ) 351 echo "<a class='submitdelete' href='index.php' onclick=\"if ( confirm('" . js_escape( __("You are about to delete this page\n 'Cancel' to stop, 'OK' to delete.")) . "') ) { return true;}return false;\">" . __('Cancel page') . "</a>"; 352 ?> 353 <input type="submit" name="save" class="button button-highlighted" value="<?php _e('Save'); ?>" tabindex="4" /> 312 354 313 355 <?php 314 356 if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_ID ) : 315 357 if ( current_user_can('publish_pages') ) : ?> 316 317 358 <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Publish') ?>" /> 318 319 359 <?php else : ?> 320 321 360 <input name="publish" type="submit" class="button" id="publish" tabindex="5" accesskey="p" value="<?php _e('Submit for Review') ?>" /> 322 323 361 <?php 324 325 362 endif; 326 363 endif; 327 328 364 ?> 329 365 </p> 330 <br class="clear" /> 331 </div> 332 <?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?> 333 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> 334 <?php wp_nonce_field( 'getpermalink', 'getpermalinknonce', false ); ?> 335 <?php wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false ); ?> 336 <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 337 </div> 338 339 <?php 340 341 do_meta_boxes('page', 'normal', $post); 342 do_action('edit_page_form'); 343 do_meta_boxes('page', 'advanced', $post); 344 345 ?> 346 347 </div> 348 </div> 349 </div> 350 351 </div> 366 </td></tr></tbody></table> 367 </div><!-- /fixedbar --> 352 368 353 369 </form> -
branches/crazyhorse/wp-admin/includes/dashboard.php
r8283 r8379 434 434 $('#inbox-filter').submit( function() { return false; } ) 435 435 .find( ':button' ).click( function() { 436 var done = $(':checked').size().toString(), txt = (done == '1') ? '<?php _e(' item archived'); ?>' : '<?php _e(' items archived'); ?>'; 436 437 $(':checked').parent().slideUp( 'normal', function() { 437 438 $('.inbox-count').text( $('#inbox-filter li:visible').size().toString() ); 439 $('#inbox-message').addClass('updated'); 440 $('#inbox-message').text(done+txt); 438 441 } ); 439 442 } ); … … 443 446 <form id="inbox-filter" action="" method="get"> 444 447 <p class="actions"><input type="button" value="Archive" name="archive" class="button"></p> 448 <div id="inbox-message"></div> 449 <br class="clear" /> 450 445 451 <ul> 446 452 -
branches/crazyhorse/wp-admin/js/comment.js
r8371 r8379 11 11 jQuery('.edit-timestamp').click(function () { 12 12 if (jQuery('#timestampdiv').is(":hidden")) { 13 jQuery('#curtime').slideUp("normal"); 13 14 jQuery('#timestampdiv').slideDown("normal"); 14 jQuery('.timestamp').hide();15 15 } else { 16 jQuery('#timestampdiv'). hide();16 jQuery('#timestampdiv').slideUp("normal"); 17 17 jQuery('#mm').val(jQuery('#hidden_mm').val()); 18 18 jQuery('#jj').val(jQuery('#hidden_jj').val()); … … 20 20 jQuery('#hh').val(jQuery('#hidden_hh').val()); 21 21 jQuery('#mn').val(jQuery('#hidden_mn').val()); 22 jQuery(' .timestamp').show();22 jQuery('#curtime').slideDown("normal"); 23 23 } 24 24 return false; 25 }); 25 26 26 });27 27 jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels 28 28 jQuery('#timestampdiv').hide(); … … 30 30 jQuery('.timestamp').show().html( 31 31 jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' + 32 jQuery('#jj').val() + ', ' +33 jQuery('#aa').val() + ' @' +32 jQuery('#jj').val() + ',' + 33 jQuery('#aa').val() + '@' + 34 34 jQuery('#hh').val() + ':' + 35 35 jQuery('#mn').val() + ' ' 36 36 ).append( link ); 37 jQuery('#curtime').slideDown("normal"); 37 38 return false; 38 39 }); -
branches/crazyhorse/wp-admin/js/common.js
r8371 r8379 5 5 // Reveal 6 6 jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' ); 7 8 // show things that should be visible, hide what should be hidden 9 jQuery('.hide-if-no-js').show(); 10 jQuery('.hide-if-js').hide(); 7 11 8 12 // Basic form validation … … 58 62 $('#wpbody-content').css("min-height", minH); 59 63 60 61 64 } ); 62 65 -
branches/crazyhorse/wp-admin/js/page.js
r8371 r8379 5 5 // close postboxes that should be closed 6 6 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 7 8 // show things that should be visible, hide what should be hidden9 jQuery('.hide-if-no-js').show();10 jQuery('.hide-if-js').hide();11 7 12 8 jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val().length == 0) ) return; autosave(); } ); … … 17 13 jQuery('.edit-timestamp').click(function () { 18 14 if (jQuery('#timestampdiv').is(":hidden")) { 15 jQuery('#curtime').slideUp("normal"); 19 16 jQuery('#timestampdiv').slideDown("normal"); 20 jQuery('.edit-timestamp').text(postL10n.cancel);21 17 } else { 22 jQuery('#timestampdiv'). hide();18 jQuery('#timestampdiv').slideUp("normal"); 23 19 jQuery('#mm').val(jQuery('#hidden_mm').val()); 24 20 jQuery('#jj').val(jQuery('#hidden_jj').val()); … … 26 22 jQuery('#hh').val(jQuery('#hidden_hh').val()); 27 23 jQuery('#mn').val(jQuery('#hidden_mn').val()); 28 jQuery(' .edit-timestamp').text(postL10n.edit);24 jQuery('#curtime').slideDown("normal"); 29 25 } 30 26 return false; 31 }); 27 }); 28 29 jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels 30 jQuery('#timestampdiv').hide(); 31 var link = jQuery('.timestamp a').clone( true ); 32 jQuery('.timestamp').show().html( 33 jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' + 34 jQuery('#jj').val() + ',' + 35 jQuery('#aa').val() + '@' + 36 jQuery('#hh').val() + ':' + 37 jQuery('#mn').val() + ' ' 38 ).append( link ); 39 jQuery('#curtime').slideDown("normal"); 40 return false; 41 }); 32 42 }); -
branches/crazyhorse/wp-admin/js/post.js
r8371 r8379 64 64 // close postboxes that should be closed 65 65 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 66 67 // show things that should be visible, hide what should be hidden68 jQuery('.hide-if-no-js').show();69 jQuery('.hide-if-js').hide();70 66 71 67 // postboxes … … 162 158 jQuery('.edit-timestamp').click(function () { 163 159 if (jQuery('#timestampdiv').is(":hidden")) { 164 jQuery(' .curtime').slideUp("normal");160 jQuery('#curtime').slideUp("normal"); 165 161 jQuery('#timestampdiv').slideDown("normal"); 166 // jQuery('.timestamp').hide();167 162 } else { 168 163 jQuery('#timestampdiv').slideUp("normal"); … … 172 167 jQuery('#hh').val(jQuery('#hidden_hh').val()); 173 168 jQuery('#mn').val(jQuery('#hidden_mn').val()); 174 jQuery('.curtime').slideDown("normal"); 175 // jQuery('.timestamp').show(); 169 jQuery('#curtime').slideDown("normal"); 176 170 } 177 171 return false; 172 }); 178 173 179 });180 174 jQuery('.save-timestamp').click(function () { // crazyhorse - multiple ok cancels 181 175 jQuery('#timestampdiv').hide(); … … 183 177 jQuery('.timestamp').show().html( 184 178 jQuery( '#mm option[value=' + jQuery('#mm').val() + ']' ).text() + ' ' + 185 jQuery('#jj').val() + ', ' +186 jQuery('#aa').val() + ' @' +179 jQuery('#jj').val() + ',' + 180 jQuery('#aa').val() + '@' + 187 181 jQuery('#hh').val() + ':' + 188 182 jQuery('#mn').val() + ' ' 189 183 ).append( link ); 190 jQuery(' .curtime').slideDown("normal");184 jQuery('#curtime').slideDown("normal"); 191 185 return false; 192 186 }); -
branches/crazyhorse/wp-admin/link-add.php
r8124 r8379 16 16 wp_enqueue_script('xfn'); 17 17 18 $link_added = ( isset($_GET['added']) && '' != $_POST['link_name'] ) ? 19 '<div id="message" class="updated fade"><p>' . __('Link added.') . '</p></div>' : ''; 20 21 $fixed_bar = true; 18 22 require('admin-header.php'); 19 ?>20 23 21 <?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>22 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>23 <?php endif; ?>24 25 <?php26 24 $link = get_default_link_to_edit(); 27 25 include('edit-link-form.php'); -
branches/crazyhorse/wp-admin/link.php
r7961 r8379 96 96 wp_die(__('Link not found.')); 97 97 98 $fixed_bar = true; 98 99 include_once ('admin-header.php'); 99 100 include ('edit-link-form.php'); -
branches/crazyhorse/wp-admin/rtl.css
r8335 r8379 150 150 } 151 151 152 .curtime152 #curtime 153 153 { 154 154 background-position:right 2px; -
branches/crazyhorse/wp-admin/wp-admin.css
r8371 r8379 1146 1146 } 1147 1147 1148 .postarea h3 #add-media-button { 1149 float: right; 1148 .postarea #add-media-button { 1149 float:right; 1150 margin:7px 0pt 0pt; 1151 position:relative; 1152 right:10px; 1150 1153 } 1151 1154 … … 1505 1508 } 1506 1509 1507 #submitpost p .curtime {1510 #submitpost p#curtime { 1508 1511 background-image: url(images/date-button.gif); 1509 1512 background-repeat: no-repeat; 1510 background-position: left 2px;1513 background-position: left 4px; 1511 1514 padding-left: 18px; 1515 padding-top: 2px; 1512 1516 } 1513 1517 … … 1665 1669 /* fixed bottom bar */ 1666 1670 .postarea h3 label { 1667 float:none; 1671 1672 } 1673 1674 #footer { 1675 z-index: -1; 1668 1676 } 1669 1677 … … 1677 1685 1678 1686 #fixedbar #submitpost { 1679 width: 690px;1687 1680 1688 } 1681 1689 … … 1705 1713 padding: 14px 18px; 1706 1714 border-left: 1px solid #aaa; 1707 } 1708 1709 #fixedbar #post-time-info { 1710 margin-top: 17px; 1715 width: 690px; 1716 } 1717 1718 #fixedbar #post-time-info, 1719 #fixedbar #comment-time-info { 1720 margin-top: 16px; 1711 1721 } 1712 1722
Note: See TracChangeset
for help on using the changeset viewer.