Index: wp-admin/includes/dashboard.php =================================================================== --- wp-admin/includes/dashboard.php (revision 21626) +++ wp-admin/includes/dashboard.php (working copy) @@ -1249,75 +1249,44 @@ ?>
First Steps with WordPress. If you’d rather dive right in, here are a few things most people do first when they set up a new WordPress site. If you need help, use the Help tabs in the upper right corner to get information on how to use your current screen and where to go for more assistance.' ); ?>
+ +' . __( 'change your theme completely' ) . '', esc_url( admin_url( 'themes.php?tooltip=true' ) ) ); ?>
'; - printf( __( 'Install a theme to get started customizing your site.' ), esc_url( admin_url( 'themes.php' ) ) ); - echo '
'; - else: - $customize_links = array(); - if ( 'twentyeleven' == $theme->get_stylesheet() ) - $customize_links[] = sprintf( __( 'Choose light or dark' ), esc_url( admin_url( 'themes.php?page=theme_options' ) ) ); - - if ( current_theme_supports( 'custom-background' ) ) - $customize_links[] = sprintf( __( 'Set a background color' ), esc_url( admin_url( 'themes.php?page=custom-background' ) ) ); - - if ( current_theme_supports( 'custom-header' ) ) - $customize_links[] = sprintf( __( 'Select a new header image' ), esc_url( admin_url( 'themes.php?page=custom-header' ) ) ); - - if ( current_theme_supports( 'widgets' ) ) - $customize_links[] = sprintf( __( 'Add some widgets' ), esc_url( admin_url( 'widgets.php' ) ) ); - - if ( ! empty( $customize_links ) ) { - echo ''; - printf( __( 'Use the current theme — %1$s — or choose a new one. If you stick with %1$s, here are a few ways to make your site look unique.' ), $theme->display('Name'), esc_url( admin_url( 'themes.php' ) ) ); - echo '
'; - ?> -Dismiss this message.' ), esc_url( admin_url( '?welcome=0' ) ) ); ?>
' . __( 'Select “Post” from the add new menu.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_add_images', '#wp-admin-bar-new-content', array( + 'content' => $content, + 'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left' ), + 'persistent' => true, + 'onclick_element' => '#wp350_add_images', + ) ); + } + + public static function pointer_wp350_add_images_2() { + $content = '' . __( 'You can add images, videos, pdfs, and other documents to your posts and pages by clicking this button.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_add_images_2', '#wp-content-media-buttons a', array( + 'content' => $content, + 'position' => array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => is_rtl() ? 'right' : 'left' ), + 'persistent' => true, + ) ); + } + + public static function pointer_wp350_change_theme() { + $content = '' . __( 'Optionally, select the “Install Themes” tab to select new themes.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_change_theme_2', '.nav-tab:not(.nav-tab-active)', array( + 'content' => $content, + 'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left' ), + 'persistent' => true, + ) ); + } + + public static function pointer_wp350_widgets() { + $content = '' . __( 'Click the “Widgets” link under the appearance menu.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_widgets', '#menu-appearance', array( + 'content' => $content, + 'position' => array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => is_rtl() ? 'right' : 'left' ), + 'persistent' => true, + 'onclick_element' => '#wp350_widgets', + ) ); + } + + public static function pointer_wp350_widgets_2() { + + $content = '' . __( 'To add new widgets, drag them from "Available widgets" to this container. Remove widgets by dragging them from this container.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_widgets_2', 'div.widget-liquid-right', array( + 'content' => $content, + 'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => is_rtl() ? 'left' : 'right', 'offset' => '0 -200' ), + 'persistent' => true, + ) ); + } + + public static function pointer_wp350_edit_menu() { + $content = '' . __( 'Click the “Menus” link under the appearance menu.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_edit_menu', '#menu-appearance', array( + 'content' => $content, + 'position' => array( 'edge' => is_rtl() ? 'right' : 'left', 'align' => is_rtl() ? 'right' : 'left' ), + 'persistent' => true, + 'onclick_element' => '#wp350_edit_menu', + ) ); + } + + public static function pointer_wp350_edit_menu_2() { + if( isset( $_GET['menu'] ) && intval( $_GET['menu'] ) ) + return; + + $content = '' . __( 'Give your new menu a name, and then click the “Create Menu” button.' ) . '
'; + + WP_Internal_Pointers::print_js( 'pointer_wp350_edit_menu_2', '#menu-name', array( + 'content' => $content, + 'position' => array( 'edge' => 'top', 'align' => is_rtl() ? 'right' : 'left' ), + 'persistent' => true, + ) ); + } + /** * Prevents new users from seeing existing 'new feature' pointers. * Index: wp-admin/css/colors-fresh.css =================================================================== --- wp-admin/css/colors-fresh.css (revision 21626) +++ wp-admin/css/colors-fresh.css (working copy) @@ -762,6 +762,12 @@ } .welcome-panel { + background: #f5f5f5; + background-image: -webkit-gradient(linear, left bottom, left top, from(#f5f5f5), to(#fafafa)); + background-image: -webkit-linear-gradient(bottom, #f5f5f5, #fafafa); + background-image: -moz-linear-gradient(bottom, #f5f5f5, #fafafa); + background-image: -o-linear-gradient(bottom, #f5f5f5, #fafafa); + background-image: linear-gradient(to top, #f5f5f5, #fafafa); border-color: #dfdfdf; } .welcome-panel p { @@ -771,9 +777,66 @@ color: #464646; } .welcome-panel h3 { - text-shadow: 1px 1px 1px white; + text-shadow: 1px 1px 1px #fff; } +/* welcome screen button */ + +.welcome-button { + border-color: #026896; + color: #fff; + text-shadow: 0 -1px 0 rgba(0,116,162,0.8); + + background-color: #2ea2cc; + background-image: -webkit-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -moz-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -o-linear-gradient(top, #1e8cbe, #0074a2); + background-image: linear-gradient(to bottom, #1e8cbe, #0074a2); + + -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5); + box-shadow: inset 0 1px 0 rgba(120,200,230,0.5); +} + +.welcome-button:hover { + color: #fff; + text-shadow: 0 -1px 0 rgb(0,116,162); + + background-image: -webkit-linear-gradient(top, #2ea2cc, #0074a2); + background-image: -moz-linear-gradient(top, #2ea2cc, #0074a2); + background-image: -o-linear-gradient(top, #2ea2cc, #0074a2); + background-image: linear-gradient(to bottom, #2ea2cc, #0074a2); + + -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.7), 0 1px 2px rgba(0,0,0,0.3); + box-shadow: inset 0 1px 0 rgba(120,200,230,0.7), 0 1px 2px rgba(0,0,0,0.3); +} + +.welcome-button:active, +.welcome-button:focus { + color:rgba(255,255,255,.9); + + background-image: -webkit-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -moz-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -o-linear-gradient(top, #1e8cbe, #0074a2); + background-image: linear-gradient(to bottom, #1e8cbe, #0074a2); + + -webkit-box-shadow: inset 0 1px 5px #005684, inset 0 -1px 0 #1e8cbe; + box-shadow: inset 0 1px 5px #005684, inset 0 -1px 0 #1e8cbe; +} + +.welcome-button:focus { + border: 1px solid #002E45; + + -webkit-box-shadow: inset 0 1px 3px #005684, inset 0 -1px 0 #1e8cbe; + box-shadow: inset 0 1px 3px #005684, inset 0 -1px 0 #1e8cbe; +} + +@media screen and (max-width: 1000px) { + .welcome-button { + font-size: 14px; + padding: 1em 2.3em; + } +} + .widget, #widget-list .widget-top, .postbox, Index: wp-admin/css/wp-admin-rtl.css =================================================================== --- wp-admin/css/wp-admin-rtl.css (revision 21626) +++ wp-admin/css/wp-admin-rtl.css (working copy) @@ -590,11 +590,6 @@ float: right; } -.welcome-panel-content .about-description, .welcome-panel h3 { - margin-left: 0; - margin-right: 190px; -} - .welcome-panel .welcome-panel-column { margin: 0 -25px 0 5%; padding-left: 0; Index: wp-admin/css/wp-admin.css =================================================================== --- wp-admin/css/wp-admin.css (revision 21626) +++ wp-admin/css/wp-admin.css (working copy) @@ -1352,7 +1352,7 @@ position: absolute; top: -1000em; left: 146px; - z-index: 999; + z-index: 10000; overflow: visible; border-width: 1px; border-style: solid; @@ -2158,26 +2158,33 @@ /* Welcome Panel */ .welcome-panel { - margin: 20px 8px; + position: relative; + overflow: auto; + margin: 20px 0; padding: 30px 10px 20px; - border-width: 1px 0; + border-width: 1px; border-style: solid; - position: relative; + border-radius: 3px; + font-size: 14px; line-height: 1.6em; - overflow: auto; } .welcome-panel h3 { + margin: 0; font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif; font-size: 32px; font-weight: normal; line-height: 1.2; - margin: 0.1em 0 0.8em; } .welcome-panel h4 { + margin: 1.33em 0 0; font-size: 14px; } +.welcome-panel .about-description { + margin: 0; +} + .welcome-panel .welcome-panel-close { position: absolute; top: 0; @@ -2188,52 +2195,53 @@ } .welcome-panel .welcome-panel-close:before { - background: url('../images/xit.gif') 0 17% no-repeat; content: ' '; + position: absolute; + left: -12px; + width: 10px; height: 100%; - width: 10px; - left: -12px; - position: absolute; + background: url('../images/xit.gif') 0 17% no-repeat; } .welcome-panel .welcome-panel-close:hover:before { background-position: 100% 17%; } -.welcome-panel .wp-badge { - float: left; - margin-bottom: 20px; +.welcome-button { + display: inline-block; + margin: -9px 0 3px; + padding: 1em 3em; + height: auto; + border-width: 1px; + border-style: solid; + border-radius: 3px; + font: normal 15px/1 sans-serif; + text-decoration: none; + white-space: nowrap; + cursor: pointer; } .welcome-panel-content { + margin-left: 13px; max-width: 1500px; } -.welcome-panel-content .about-description, -.welcome-panel h3 { - margin-left: 190px; -} - -.welcome-panel p.welcome-panel-dismiss { - clear: both; - padding: 1em 0 0 0; -} - .welcome-panel .welcome-panel-column-container { clear: both; overflow: hidden; position: relative; - padding-left: 26px; } .welcome-panel .welcome-panel-column { - margin: 0 5% 0 -25px; - padding-left: 25px; - width: 30%; + width: 32%; min-width: 200px; float: left; } +.welcome-panel .welcome-panel-column:first-child { + width: 36%; +} + .welcome-panel .welcome-panel-column.welcome-panel-last { margin-right: 0; } @@ -2242,8 +2250,12 @@ margin-left: -32px; } +.welcome-panel-column p { + margin-top: 5px; +} + .welcome-panel .welcome-panel-column ul { - margin: 1.6em 1em 1em 1.3em; + margin: 0.4em 1em 1em 1.3em; } .welcome-panel .welcome-panel-column li { @@ -2251,7 +2263,26 @@ padding-left: 2px; } +@media screen and (max-width: 800px) { + .welcome-button { + font-size: 14px; + padding: 1em 2.3em; + } + .welcome-panel .welcome-panel-column, .welcome-panel .welcome-panel-column:first-child { + display: block; + float: none; + width: 100%; + } + .welcome-panel .welcome-panel-column li { + display: inline-block; + margin-right: 13px; + } + .welcome-panel .welcome-panel-column ul { + margin: 0.4em 0 0; + } +} + /*------------------------------------------------------------------------------ 10.0 - List Posts (/Pages/etc) ------------------------------------------------------------------------------*/ Index: wp-admin/css/colors-classic.css =================================================================== --- wp-admin/css/colors-classic.css (revision 21626) +++ wp-admin/css/colors-classic.css (working copy) @@ -771,6 +771,7 @@ } .welcome-panel { + background: #f7fcfe; border-color: #d1e5ee; } .welcome-panel p { @@ -780,9 +781,60 @@ color: #464646; } .welcome-panel h3 { - text-shadow: 1px 1px 1px white; + text-shadow: 1px 1px 1px #fff; } +/* welcome screen button */ + +.welcome-button { + border-color: #026896; + color: #fff; + text-shadow: 0 -1px 0 rgba(0,116,162,0.8); + + background-color: #2ea2cc; + background-image: -webkit-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -moz-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -o-linear-gradient(top, #1e8cbe, #0074a2); + background-image: linear-gradient(to bottom, #1e8cbe, #0074a2); + + -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5); + box-shadow: inset 0 1px 0 rgba(120,200,230,0.5); +} + +.welcome-button:hover { + color: #fff; + text-shadow: 0 -1px 0 rgb(0,116,162); + + background-image: -webkit-linear-gradient(top, #2ea2cc, #0074a2); + background-image: -moz-linear-gradient(top, #2ea2cc, #0074a2); + background-image: -o-linear-gradient(top, #2ea2cc, #0074a2); + background-image: linear-gradient(to bottom, #2ea2cc, #0074a2); + + -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.7), 0 1px 2px rgba(0,0,0,0.3); + box-shadow: inset 0 1px 0 rgba(120,200,230,0.7), 0 1px 2px rgba(0,0,0,0.3); +} + +.welcome-button:active, +.welcome-button:focus { + color:rgba(255,255,255,.9); + + background-image: -webkit-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -moz-linear-gradient(top, #1e8cbe, #0074a2); + background-image: -o-linear-gradient(top, #1e8cbe, #0074a2); + background-image: linear-gradient(to bottom, #1e8cbe, #0074a2); + + -webkit-box-shadow: inset 0 1px 5px #005684, inset 0 -1px 0 #1e8cbe; + box-shadow: inset 0 1px 5px #005684, inset 0 -1px 0 #1e8cbe; +} + +.welcome-button:focus { + border: 1px solid #002E45; + + -webkit-box-shadow: inset 0 1px 3px #005684, inset 0 -1px 0 #1e8cbe; + box-shadow: inset 0 1px 3px #005684, inset 0 -1px 0 #1e8cbe; +} + + .widget, #widget-list .widget-top, .postbox,