diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 1d76df7e53..4ac27439fe 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -182,7 +182,7 @@ case 'dim-comment' : if ( $_POST['new'] == $current ) die('1'); - if ( 'unapproved' == $current ) { + if ( in_array( $current, array( 'unapproved', 'spam' ) ) ) { check_ajax_referer( "approve-comment_$id" ); if ( wp_set_comment_status( $comment->comment_ID, 'approve' ) ) die('1'); @@ -648,6 +648,11 @@ case 'sample-permalink': $slug = isset($_POST['new_slug'])? $_POST['new_slug'] : ''; die(get_sample_permalink_html($post_id, $title, $slug)); break; +case 'meta-box-order': + check_ajax_referer( 'meta-box-order' ); + update_user_option( $GLOBALS['current_user']->ID, "meta-box-order_$_POST[page]", $_POST['order'] ); + die('1'); + break; default : do_action( 'wp_ajax_' . $_POST['action'] ); die('0'); diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index ea7e69a8e2..da2d74add2 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -5,7 +5,11 @@ * @package WordPress * @subpackage Administration */ -?> + +if ( ! $fixed_bar ) { ?> +
+ + diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index aa36b2a7f6..86e78e3082 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -8,10 +8,6 @@ @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); if (!isset($_GET["page"])) require_once('admin.php'); -if ( $editing ) { - if ( user_can_richedit() ) - wp_enqueue_script( 'wp_tiny_mce' ); -} wp_enqueue_script( 'wp-gears' ); $min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php', 'link.php' ); @@ -33,6 +29,9 @@ if ( in_array( $the_current_page, $min_width_pages ) ) { add_filter( 'admin_body_class', 'add_minwidth' ); } +$fixed_bar_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php' ); +if ( ! isset($fixed_bar) ) $fixed_bar = in_array( $the_current_page, $fixed_bar_pages ) ? true : false; + get_admin_page_title(); ?> @@ -143,3 +142,7 @@ if ( $parent_file == 'options-general.php' ) { } ?>
+ + +
+ diff --git a/wp-admin/admin.php b/wp-admin/admin.php index c9b5a0f3ee..5b1ab37b69 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -105,7 +105,7 @@ if (isset($plugin_page)) { include(ABSPATH . "wp-admin/import/$importer.php"); } - $parent_file = 'edit.php'; + $parent_file = 'users.php'; $submenu_file = 'import.php'; $title = __('Import'); diff --git a/wp-admin/comment.php b/wp-admin/comment.php index 73cfe4c80b..5b5923544a 100644 --- a/wp-admin/comment.php +++ b/wp-admin/comment.php @@ -34,6 +34,7 @@ case 'editcomment' : $title = __('Edit Comment'); wp_enqueue_script('comment'); + $fixed_bar = true; require_once('admin-header.php'); diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 7216d9c55e..31b92e2548 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -1,3 +1,9 @@ +#wpcontent, #wpbody { + background-color: #14568A; +} +#wpbody-content { + background-color: #fff; +} a.page-numbers:hover { border-color: #999; } @@ -11,7 +17,9 @@ body > #upload-menu { border-bottom-color: #fff; } -div#current-widgets, #postcustomstuff table, #your-profile fieldset, a.page-numbers, #rightnow, div.dashboard-widget, .widefat { +div#current-widgets, #postcustomstuff table, #your-profile fieldset, +a.page-numbers, #rightnow, div.dashboard-widget, +#dashboard-widgets p.dashboard-widget-links, .widefat { border-color: #ccc; } @@ -27,25 +35,30 @@ div.dashboard-widget-submit, ul.widget-control-list div.widget-control-actions { border-top-color: #ccc; } +div.ui-tabs-panel { + border-color: #F0F6FB; +} + input.disabled, textarea.disabled { background-color: #ccc; } -#user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, li.widget-list-control-item h4.widget-title a, +#user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, +#dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, +li.widget-list-control-item h4.widget-title a, #dragHelper li.widget-list-control-item h4.widget-title a, -#draghelper li.widget-list-control-item h4.widget-title a:visited, .login #backtoblog a:hover, -#plugin-information .action-button a, #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { +#draghelper li.widget-list-control-item h4.widget-title a:visited, +.login #backtoblog a:hover, #plugin-information .action-button a, +#plugin-information .action-button a:hover, #plugin-information .action-button a:visited { color: #fff; } -ul#category-tabs li.ui-tabs-selected, li.widget-list-control-item, div.nav, .tablenav, .submitbox, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, ul.view-switch li.current, .form-table tr, #poststuff h3, .login form, h3.info-box-title { +li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, +ul.view-switch li.current, .form-table tr, #poststuff h3, +.login form, h3.info-box-title, #post-status-info { background-color: #cfebf7; } -div.ui-tabs-panel { - border-color: #cfebf7; -} - select { background-color: #fff; border-color: #ddd; @@ -55,7 +68,9 @@ strong .post-com-count span { background-color: #2583ad; } -.button-secondary, #login form .submit input { +#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, +#quicktags, #login form .submit input, #post-search .button, +#post-search-prep .button { background-color: #8ebddc !important; } @@ -133,14 +148,10 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #d54e21; } -.howto, .nonessential, #sidemenu, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite { +.howto, .nonessential, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite { color: #999; } -#dashmenu a, #user_info a { - color: #88b4d7; -} - .media-item { border-bottom-color: #d0d0d0; } @@ -197,22 +208,19 @@ ul#widget-list li.widget-list-item h4.widget-title { background-color: #999; } -.tablenav .button-secondary { - border-color: #5396c5; -} - .submit input:hover, .button:hover, #edit-slug-buttons a.save:hover { border-color: #535353; } -.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, #submenu a.current, #submenu a:hover, .submitbox #previewview a:hover, #the-comment-list .comment a:hover, #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, #login form .submit input:hover, div.dashboard-widget-submit input:hover, #edit-slug-buttons a.save:hover, #media-upload a.del-link:hover { +.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, +#adminmenu a:hover, #adminmenu ul.wp-submenu a:hover, #the-comment-list .comment a:hover, +#rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, +#login form .submit input:hover, div.dashboard-widget-submit input:hover, +#edit-slug-buttons a.save:hover, #media-upload a.delete:hover, +#media-upload a.del-link:hover, .ui-tabs-nav a:hover { color: #d54e21; } -#adminmenu a:hover, #sidemenu a:hover, .ui-tabs-nav a:hover { - color: #97c4d8; -} - .button-secondary:hover, #login form .submit input:hover { border-color: #328ab2; background-color: #a6d2e5 !important; @@ -283,6 +291,14 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #d7d7d7; } +h3.dashboard-widget-title small a { + color: #d7d7d7; +} + +h3.dashboard-widget-title small a:hover { + color: #fff; +} + .widget-control-save, .widget-control-remove { background-color: #83b4d5; color: #246; @@ -301,11 +317,8 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #cfebf6; } -#submenu a { - color: #2782af -} /* Because we don't want visited on these links */ -#adminmenu a.current, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover { +#adminmenu li.current a, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover { background-color: #fff; border-color: #07273e; border-bottom-color: #fff; @@ -313,7 +326,12 @@ ul#widget-list li.widget-list-item h4.widget-title { font-weight: bold; } -#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins { +#adminmenu li.current { + background-color: #fff; + border-right-color: #fff; +} + +#adminmenu li a #awaiting-mod { background-image: url(../images/comment-stalk-classic.gif); } @@ -332,7 +350,7 @@ ul#widget-list li.widget-list-item h4.widget-title { background-color: #07273E; } -#adminmenu, div#media-upload-header, div#plugin-information-header { +div#media-upload-header, div#plugin-information-header { background-color: #14568a; border-bottom-color: #07273e; } @@ -353,11 +371,6 @@ input.readonly { background-color: #ddd; } -#dashmenu a.current { - background-color: #14568a; - color: #cfebf6; -} - #dragHelper h4.widget-title, li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 { background-color: #2683ae; color: #fff; @@ -432,8 +445,12 @@ input.readonly { background-color: #fff; } -#poststuff #editor-toolbar .active { +#poststuff #editor-toolbar { background-color: #83b4d5; +} + +#poststuff #editor-toolbar .active { + background-color: #CFEBF7; color: #333; } @@ -465,13 +482,6 @@ input.readonly { color: #448abd; } -#sidemenu a { - background-color: #14568a; - border-bottom-color: #07273e; - border-top-color: #14568a; - color: #cfebf6; -} - #tagchecklist span a { background: url(../images/xit.gif) no-repeat; } @@ -544,10 +554,18 @@ input.readonly { color: #07273e; } -#wphead h1, #dashmenu a.current:hover { +#wphead h1, #wphead h1 a, #login form input { + color: #555; +} + +#wphead h1 { color: #cfebf6; } +#media-upload a.delete { + color: #888; +} + div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover, .delete:hover { color: #f00; } @@ -715,6 +733,10 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover color: #333; } +#att-info { + background-color: #E4F2FD; +} + /* Diff */ table.diff .diff-deletedline { @@ -729,3 +751,15 @@ table.diff .diff-addedline { table.diff .diff-addedline ins { background-color: #99ff99; } + +/* media popup 0819 */ +#sidemenu a { + background-color: #14568a; + border-bottom-color: #07273e; + border-top-color: #14568a; + color: #CFEBF6; +} + +.submitbox .submitdelete { + color: #fff; +} diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index d7059bcdbf..15d9d01561 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -1,3 +1,9 @@ +#wpcontent, #wpbody { + background-color: #e4f2fd; +} +#wpbody-content { + background-color: #fff; +} a.page-numbers:hover { border-color: #999; } @@ -11,7 +17,9 @@ body > #upload-menu { border-bottom-color: #fff; } -div#current-widgets, #postcustomstuff table, #your-profile fieldset, a.page-numbers, #rightnow, div.dashboard-widget, .widefat { +div#current-widgets, #postcustomstuff table, #your-profile fieldset, +a.page-numbers, #rightnow, div.dashboard-widget, +#dashboard-widgets p.dashboard-widget-links, .widefat { border-color: #ccc; } @@ -35,14 +43,19 @@ input.disabled, textarea.disabled { background-color: #ccc; } -#user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, .submit a, #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, li.widget-list-control-item h4.widget-title a, +#user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, +#dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, +li.widget-list-control-item h4.widget-title a, #dragHelper li.widget-list-control-item h4.widget-title a, -#draghelper li.widget-list-control-item h4.widget-title a:visited, .login #backtoblog a:hover, -#plugin-information .action-button a, #plugin-information .action-button a:hover, #plugin-information .action-button a:visited { +#draghelper li.widget-list-control-item h4.widget-title a:visited, +.login #backtoblog a:hover, #plugin-information .action-button a, +#plugin-information .action-button a:hover, #plugin-information .action-button a:visited { color: #fff; } -li.widget-list-control-item, div.nav, .tablenav, .submitbox, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small, ul.view-switch li.current, .form-table tr, #poststuff h3, .login form, h3.info-box-title { +li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, +ul.view-switch li.current, .form-table tr, #poststuff h3, +.login form, h3.info-box-title, #post-status-info { background-color: #eaf3fa; } @@ -55,7 +68,9 @@ strong .post-com-count span { background-color: #2583ad; } -ul#category-tabs li.ui-tabs-selected, .button-secondary, #quicktags, #login form .submit input { +#post-body ul#category-tabs li.ui-tabs-selected, .button-secondary, +#quicktags, #login form .submit input, #post-search .button, +#post-search-prep .button { background-color: #cee1ef !important; } @@ -120,7 +135,7 @@ ul#widget-list li.widget-list-item h4.widget-title { border-color: #c00 !important; } -.form-table input, .form-table textarea { +.form-table input, .form-table textarea, #post-search-input { border-color: #c6d9e9; } @@ -133,7 +148,7 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #d54e21; } -#user_info, .howto, .nonessential, #dashmenu a, #sidemenu, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite { +#user_info, .howto, .nonessential, #dashmenu a, #edit-slug-box, .form-input-tip, #dashboard_primary span.rss-date, .subsubsub, #dashboard_secondary div.dashboard-widget-content ul li a cite { color: #999; } @@ -197,7 +212,12 @@ ul#widget-list li.widget-list-item h4.widget-title { border-color: #535353; } -.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, #adminmenu a:hover, #sidemenu a:hover, #submenu a.current, #submenu a:hover, .submitbox #previewview a:hover, #the-comment-list .comment a:hover, #rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, #login form .submit input:hover, div.dashboard-widget-submit input:hover, #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, #media-upload a.del-link:hover, .ui-tabs-nav a:hover { +.submit input:hover, .button:hover, .button-secondary:hover, #wphead #viewsite a:hover, +#adminmenu a:hover, #adminmenu ul.wp-submenu a:hover, #the-comment-list .comment a:hover, +#rightnow a:hover, a:hover, .subsubsub a:hover, .subsubsub a.current:hover, +#login form .submit input:hover, div.dashboard-widget-submit input:hover, +#edit-slug-buttons a.save:hover, #media-upload a.delete:hover, +#media-upload a.del-link:hover, .ui-tabs-nav a:hover { color: #d54e21; } @@ -205,15 +225,11 @@ ul#widget-list li.widget-list-item h4.widget-title { border-color: #328ab2; } -.submitbox #autosave .error, ul.view-switch li.current a { +ul.view-switch li.current a { color: #333; } -.submitbox #previewview { - background-color: #2683ae; -} - -.submitbox #previewview a, #rightnow .rbutton { +#rightnow .rbutton { background-color: #ebebeb; color: #264761; } @@ -265,11 +281,19 @@ ul#widget-list li.widget-list-item h4.widget-title { border-bottom-color: #ccc; } -.widefat thead, .thead { +.widefat thead, .thead, h3.dashboard-widget-title, h3.dashboard-widget-title span, h3.dashboard-widget-title small { background-color: #464646; color: #d7d7d7; } +h3.dashboard-widget-title small a { + color: #d7d7d7; +} + +h3.dashboard-widget-title small a:hover { + color: #fff; +} + .widget-control-save, .widget-control-remove { background-color: #cee1ef; color: #246; @@ -280,19 +304,29 @@ ul#widget-list li.widget-list-item h4.widget-title { color: #666; } -#adminmenu a, #submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a { +#adminmenu li.wp-has-submenu a { + color: #333; +} + +#adminmenu a, #adminmenu ul.wp-submenu a, #poststuff #edButtonPreview, #poststuff #edButtonHTML, #the-comment-list p.comment-author strong a, #media-upload a.del-link, #media-upload a.delete, .ui-tabs-nav a, a { color: #2583ad; } /* Because we don't want visited on these links */ -#adminmenu a.current, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover { +#adminmenu li.current a, #sidemenu a.current, body.press-this .ui-tabs-selected a, body.press-this .ui-tabs-selected a:hover { background-color: #fff; border-color: #c6d9e9; border-bottom-color: #fff; color: #d54e21; } -#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins { +#adminmenu li.current { + background-color: #fff; + border-color: #c6d9e9; + border-right-color: #fff; +} + +#adminmenu li a #awaiting-mod { background-image: url(../images/comment-stalk-fresh.gif); } @@ -305,7 +339,7 @@ ul#widget-list li.widget-list-item h4.widget-title { background-color: #264761; } -#adminmenu, div#media-upload-header, div#plugin-information-header { +div#media-upload-header, div#plugin-information-header { background-color: #e4f2fd; border-bottom-color: #c6d9e9; } @@ -326,11 +360,6 @@ input.readonly { background-color: #ddd; } -#dashmenu a.current { - background-color: #e4f2fd; - color: #555; -} - #dragHelper h4.widget-title, li.widget-list-control-item h4, #dragHelper li.widget-list-control-item h4 { background-color: #2683ae; color: #fff; @@ -401,8 +430,12 @@ input.readonly { background-color: #fff; } -#poststuff #editor-toolbar .active { +#poststuff #editor-toolbar { background-color: #cee1ef; +} + +#poststuff #editor-toolbar .active { + background-color: #EAF3FA; color: #333; } @@ -434,12 +467,6 @@ input.readonly { color: #448abd; } -#sidemenu a { - background-color: #e4f2fd; - border-bottom-color: #c6d9e9; - border-top-color: #e4f2fd; -} - #tagchecklist span a { background: url(../images/xit.gif) no-repeat; } @@ -490,7 +517,7 @@ input.readonly { border-top-color: #247fab; } -.login #backtoblog a, .curtime, #user_info a { +.login #backtoblog a, #curtime, #user_info a, #dashmenu a { color: #ccc; } @@ -512,10 +539,14 @@ input.readonly { border-color: #328ab2; } -#wphead h1, #dashmenu a.current:hover, #login form input { +#wphead h1, #wphead h1 a, #login form input { color: #555; } +#wphead h1 a:hover { + text-decoration: underline; +} + div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover, .delete:hover { color: #f00; } @@ -674,7 +705,7 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover border-color: #464646; } -#editorcontainer { +#editorcontainer, #post-status-info { border-color: #ccc; } @@ -682,7 +713,7 @@ div#media-upload-error, .file-error, abbr.required, .widget-control-remove:hover border-color: #ccc; } -.curtime { +#curtime { color: #666; } @@ -705,3 +736,55 @@ table.diff .diff-addedline { table.diff .diff-addedline ins { background-color: #99ff99; } + +#adminmenu, +#att-info { + background-color: #E4F2FD; +} + + +/* fixed tool bar */ +#fixedbar { + background-color:#464646; + color: #ccc; +} + +#html-upload-help { + color: #328AB2; +} + +#fixedbar #last-edit { + +} + +#fixedbar a, +#fixedbar #curtime { + color: #ccc; +} + +#fixedbar a:hover { + color: #fff; +} + +#fixedbar a.button { + color: #246; +} + +#fixedbar a.button:hover { + color: #d54e21; +} + +#timestampdiv { + color: #ccc; +} + +/* media popup 0819 */ +#sidemenu a { + background-color: #e4f2fd; + border-bottom-color: #c6d9e9; + border-top-color: #e4f2fd; +} + +.submitbox .submitdelete { + color: #fff; +} diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css index ccbfefd8f2..0ee605df90 100644 --- a/wp-admin/css/dashboard.css +++ b/wp-admin/css/dashboard.css @@ -1,64 +1,38 @@ -/* Right Now */ - -#rightnow { - border-width: 1px; +form .input-text-wrap { border-style: solid; + border-width: 1px; + padding: 2px 3px; + border-color: #CCCCCC; +} + +form .input-text-wrap input { + border: 0pt none; + outline-color: -moz-use-text-color; + outline-style: none; + outline-width: medium; + padding: 0pt; + width: 99%; + border-style: solid; + color: #333333; +} + +form .textarea-wrap { + border-style: solid; + border-width: 1px; padding: 2px; - margin-top: 10px; - margin-right: 7px; + border-color: #CCCCCC; } -#rightnow .reallynow { - padding: 6px; - font-size: 15px; - line-height: 2; - margin: 0; +form .textarea-wrap textarea { + border: 0pt none; + padding: 0; + width: 99%; } -#rightnow .rbutton { - font-weight: normal; - padding: 6px; - border-bottom: none; - -moz-border-radius: 2px; - -khtml-border-radius: 2px; - -webkit-border-radius: 2px; - border-radius: 2px; - text-decoration: none; -} - -#rightnow .reallynow span { - display: block; - text-align: left; - float: left; - padding: 0 6px; -} - -#rightnow .reallynow a { - display: block; - text-align: right; - float: right; - padding: 0 6px; - font-size: 14px; - margin: 1px 6px 0 0; -} - -#rightnow .youhave { - font-size: 14px; - padding: 10px; -} - -#rightnow h3, #rightnow p { - padding: 0 10px; -} - -#rightnow a { - font-weight: bold; -} /* Widgets */ div#dashboard-widgets-wrap { - margin-top: -20px; margin-right: -13px; /* 20 (div.dashboard-widget margin-right) - 7 (#rightnow margin-right) */ } @@ -86,7 +60,7 @@ div.dashboard-widget-holder.full { div.dashboard-widget-holder.double div.dashboard-widget { height: 54em; - padding-bottom: 28px /* lame */ + padding-bottom: 28px /* lame */ } div.dashboard-widget { @@ -94,14 +68,24 @@ div.dashboard-widget { margin-right: 20px; border-width: 1px; border-style: solid; - padding: 2px; height: 27em; overflow: auto; font-size: 11px; } +#dashboard-widgets p.dashboard-widget-links { + padding: 2px; + font-size: 11px; + line-height: 2; + border-width: 1px; + margin: 0 20px 0 0; + padding: 0 7px; + border: 1px solid; + border-top: none; +} + h3.dashboard-widget-title { - margin: 0; + margin: 2px; padding: 0 7px; font-size: 14px; line-height: 2; @@ -121,9 +105,8 @@ h3.dashboard-widget-title small { line-height: 2.67; /* math: it works, bitches */ } -h3.dashboard-widget-title img.rss-icon { +p.dashboard-widget-links img.rss-icon { vertical-align: middle; - margin: .5em 0; } div.dashboard-widget-notice { @@ -278,5 +261,40 @@ div.dashboard-widget-content p.comment-meta { line-height: 1.5em; } -.widget-loading { +#dashboard_inbox div.dashboard-widget, #dashboard_quick_press div.dashboard-widget { + height: 35em; + padding-bottom: 0; +} + +#dashboard_quick_press div.dashboard-widget-content { + padding-bottom: 0; +} + +#dashboard_inbox p.actions { + margin-bottom:0pt; + margin-top: 0; + float:left; +} + +#dashboard_quick_press h3 { + margin-bottom: 3px; +} + +#dashboard_quick_press h3#quick-post-title { + margin-top: 0; +} + +#dashboard_quick_press p.field-tip { + margin-top: 0; + font-style: italic; +} + +#dashboard_quick_press .submit { + padding: 0 0 1em 0; + border-top: none; + border-bottom: 1px solid #ccc; +} + +#dashboard_quick_press p#recent-drafts { + margin: 0; } diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css index 295adea872..fa4e95746d 100644 --- a/wp-admin/css/global.css +++ b/wp-admin/css/global.css @@ -1,5 +1,48 @@ -/* styles for use by people extending the WordPress interface */ +/* 2 column liquid layout */ +div#wpbody { + float: right; + clear: right; + width: 100%; + margin-left: -185px; +} +div#wpbody-content { + margin-left: 175px; + border-width: 1px 0 0 1px; + border-style: solid; + border-color: #c6d9e9; + padding-top: 10px; +} + +ul#adminmenu { + float: left; + clear: left; + width: 165px; /* + 10 padding */ + position: relative; +} + +/* inner 2 column liquid layout */ + +.inner-sidebar { + float: right; + clear: right; + width: 220px; + position: relative; +} + +.has-sidebar { + float: left; + clear: left; + width: 100%; + margin-right: -240px; +} + +.has-sidebar .has-sidebar-content { + margin-right: 245px; +} + + +/* styles for use by people extending the WordPress interface */ body { margin: 0; @@ -91,6 +134,11 @@ h6 { .subsubsub li { display: inline; margin: 0; padding: 0; } +/* make it small? */ +.subsubsub li.spam { + font-size: .9em; +} + .widefat { border-width: 1px; border-style: solid; @@ -151,19 +199,19 @@ th.check-column + th, th.check-column + td { text-align: center; } +#wpbody .wrap { + position: relative; +} + .wrap, .updated, .error { - margin: 0; - margin-left: 15px; - margin-right: 15px; + margin: 0 15px; padding: 0; - max-width: 980px; } .updated, .error { border-width: 1px; border-style: solid; padding: 0 0.6em; - max-width: 950px; margin-bottom: 1em; } @@ -189,7 +237,7 @@ th.check-column + th, th.check-column + td { border-bottom-style: solid; clear: both; font: 24px Georgia, "Times New Roman", Times, serif; - margin: 5px 0 0 -4px; + margin: 5px 0 10px -4px; padding: 0; padding-bottom: 7px; padding-right: 280px; diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index b9316774c5..7d272e55a0 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -21,6 +21,8 @@ $messages[1] = sprintf( __( 'Post updated. Continue editing below or

- - -

-
- - - +
+ -
-

'; - -$form_prevstatus = ''; - -$saveasdraft = ''; +// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). +function post_submit_meta_box($post) { + global $action; ?> - - - - - - - - -post_status ) wp_original_referer_field(true, 'previous'); ?> - - - -
-
- -
+ +

@@ -130,7 +96,7 @@ if ( current_user_can('publish_posts') OR ( $post->post_status == 'publish' AND ID ) { if ( 'future' == $post->post_status ) { // scheduled for publishing at a future date $stamp = __('Scheduled for:
%1$s at %2$s'); } else if ( 'publish' == $post->post_status ) { // already published @@ -161,7 +127,7 @@ if ( 0 != $post_ID ) { post_status, array('publish', 'future') ) || 0 == $post_ID ) { +if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post->ID ) { ?> @@ -171,12 +137,14 @@ if ( !in_array( $post->post_status, array('publish', 'future') ) || 0 == $post_I 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') . ""; +if ( ( 'edit' == $action) && current_user_can('delete_post', $post->ID) ) + echo "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') . ""; ?>
- -ID ): ?> +ID, '_edit_last', true) ) { $last_user = get_userdata($last_id); 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)); } else { @@ -185,82 +153,61 @@ if ( ( 'edit' == $action) && current_user_can('delete_post', $post_ID) ) ?>
- - +--> +

- -
-
- -
    - -
  • - -
  • -
  • -
  • -
  • -
  • - -
- -
-

- - -
- -
-
-

-
- -
-
-ID); ?> -
-ID) && ! empty($sample_permalink_html) ) : - echo $sample_permalink_html; -endif; ?> -
-
-
- -
-

-post_content); ?> - - - - -
- - - -

+

This feature isn't fully functional in this prototype.

"; + + if ( empty( $post->ID ) ) + return; + + $atts = get_children( array( + 'post_parent' => $post->ID, + 'post_type' => 'attachment' + ) ); + + if ( !$atts ) { + _e( 'No media.' ); + return; + } + + foreach ( $atts as $att ) { + if ( $thumb = wp_get_attachment_image( $att->ID, array(60, 45), true ) ) { +?> + post_title)); ?>"> + + + +$att->post_title"; + + echo "Remove | "; + echo "Edit"; + + echo "
"; + } + +} +add_meta_box( 'mediadiv', __('Media added to this Post' ), 'post_media_meta_box', 'post', 'side', 'core' ); function post_categories_meta_box($post) { ?> -
-

-

- - 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> - - - -

-
-
  • @@ -277,25 +224,29 @@ function post_categories_meta_box($post) { ID, false, false, $popular_ids) ?>
+ +
+

+

+ + 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> + + + +

+
+ +add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core'); - - - - -

- -

use them in your template'); ?>

to_ping) ) .'" />'; @@ -309,13 +260,16 @@ function post_trackback_meta_box($post) { } ?> +

+ +


()

pingbacks, no other action necessary.'); ?>

@@ -335,36 +289,71 @@ list_meta($metadata);

use in your theme.'); ?>

-

-

-

trackbacks and pingbacks.'); ?>

+

+ +

get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $post_ID) ) ) + return; + + // Make sure comments, post, and post_author are cached +// update_comment_cache($comments); +?> + + + + + + + + + + + +
+ + + -

+

+ post_status, 'private'); ?> tabindex="4" /> +

+

+

id ); // TODO: ROLE SYSTEM if ( $post->post_author && !in_array($post->post_author, $authors) ) @@ -379,23 +368,174 @@ function post_author_meta_box($post) { $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> + + +

+ + +

+ + + + + + +
+

Posts / Write New Post' ), 'edit.php' ); + else + printf( __( 'Posts / Edit Post' ), 'edit.php' ); +?>

+ +
+post_status ) { ?> + + + + +
+ +'; + +$form_prevstatus = ''; + +$saveasdraft = ''; + +?> + + + + + + + + +post_status ) wp_original_referer_field(true, 'previous'); ?> + + + +
+ + + +
+ + + + + +
+ +
+
+
+

+
+ +
+
+ID); ?> +
+ID) && ! empty($sample_permalink_html) ) : + echo $sample_permalink_html; +endif; ?> +
+
+
+ +
+ +
+ +

+ +post_content); ?> + +
+ + +   +'; + if ( $last_id = get_post_meta($post_ID, '_edit_last', true) ) { + $last_user = get_userdata($last_id); + 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)); + } else { + 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)); + } + echo ''; + } +?> + +
+
+ + + + + + + +
+ + -
-
+?> + +
+
+
+ +
+
diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 21f5ac42b7..9d9dfb3c28 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -16,21 +16,25 @@ $form_extra = "' />\ncomment_ID) ?>

- - - -
- -
- +
-
+ + + +
+

@@ -59,20 +63,21 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date); echo "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') . ""; ?>

- -
-
- -
    -
  • -
  • - -
- + + +
+ + +
-
+
+
+
diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index e86459846e..c189219c74 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -7,15 +7,12 @@ */ if ( ! empty($link_id) ) { - /** - * @var string - */ - $heading = __('Edit Link'); + $heading = sprintf( __( 'Links / Edit Link' ), 'link-manager.php' ); $submit_text = __('Save Changes'); $form = '