WordPress.org

Make WordPress Core

Ticket #21368: 21368.20-refresh.diff​

File 21368.20-refresh.diff​, 8.1 KB (added by lessbloat, 8 years ago)
Line 
1Index: wp-admin/includes/dashboard.php
2===================================================================
3--- wp-admin/includes/dashboard.php     (revision 22368)
4+++ wp-admin/includes/dashboard.php     (working copy)
5@@ -1242,7 +1242,6 @@
6        <div class="welcome-panel-column-container">
7        <div class="welcome-panel-column">
8                <h4><?php _e( 'Get Started' ); ?></h4>
9-               <p><?php _e( 'First, tweak the look of your site:' ); ?></p>
10                <a class="button-primary welcome-button load-customize hide-if-no-customize" href="<?php echo wp_customize_url(); ?>"><?php _e( 'Customize Your Site' ); ?></a>
11                <a class="button-primary welcome-button hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a>
12                <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?>
13@@ -1253,25 +1252,25 @@
14                <h4><?php _e( 'Next Steps' ); ?></h4>
15                <ul>
16                <?php if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_for_posts' ) ) : ?>
17-                       <li><?php printf( '<a href="%s">' . __( 'Edit your front page' ) . '</a>', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?></li>
18-                       <li><?php printf( '<a href="%s">' . __( 'Add additional pages' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
19+                       <li><?php printf( '<a href="%s" class="welcome-edit-page">' . __( 'Edit your front page' ) . '</a>', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?></li>
20+                       <li><?php printf( '<a href="%s" class="welcome-add-page">' . __( 'Add additional pages' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
21                <?php elseif ( 'page' == get_option( 'show_on_front' ) ) : ?>
22-                       <li><?php printf( '<a href="%s">' . __( 'Edit your front page' ) . '</a>', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?></li>
23-                       <li><?php printf( '<a href="%s">' . __( 'Add additional pages' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
24-                       <li><?php printf( '<a href="%s">' . __( 'Add a blog post' ) . '</a>', admin_url( 'post-new.php' ) ); ?></li>
25+                       <li><?php printf( '<a href="%s" class="welcome-edit-page">' . __( 'Edit your front page' ) . '</a>', get_edit_post_link( get_option( 'page_on_front' ) ) ); ?></li>
26+                       <li><?php printf( '<a href="%s" class="welcome-add-page">' . __( 'Add additional pages' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
27+                       <li><?php printf( '<a href="%s" class="welcome-write-blog">' . __( 'Add a blog post' ) . '</a>', admin_url( 'post-new.php' ) ); ?></li>
28                <?php else : ?>
29-                       <li><?php printf( '<a href="%s">' . __( 'Write your first blog post' ) . '</a>', admin_url( 'post-new.php' ) ); ?></li>
30-                       <li><?php printf( '<a href="%s">' . __( 'Add an About page' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
31+                       <li><?php printf( '<a href="%s" class="welcome-write-blog">' . __( 'Write your first blog post' ) . '</a>', admin_url( 'post-new.php' ) ); ?></li>
32+                       <li><?php printf( '<a href="%s" class="welcome-add-page">' . __( 'Add an About page' ) . '</a>', admin_url( 'post-new.php?post_type=page' ) ); ?></li>
33                <?php endif; ?>
34-                       <li><?php printf( '<a href="%s">' . __( 'View your site' ) . '</a>', home_url( '/' ) ); ?></li>
35+                       <li><?php printf( '<a href="%s" class="welcome-view-site">' . __( 'View your site' ) . '</a>', home_url( '/' ) ); ?></li>
36                </ul>
37        </div>
38        <div class="welcome-panel-column welcome-panel-last">
39-               <h4><?php _e( 'Learn How To' ); ?></h4>
40+               <h4><?php _e( 'More Actions' ); ?></h4>
41                <ul>
42-                       <li><?php printf( '<a id="wp350_add_images" href="%s">' . __( 'Add image/media' ) . '</a>', admin_url( 'media-new.php' ) ); ?></li>
43-                       <li><?php printf( '<a id="wp350_widgets" href="%s">' . __( 'Add/remove widgets' ) . '</a>', admin_url( 'widgets.php' ) ); ?></li>
44-                       <li><?php printf( '<a id="wp350_edit_menu" href="%s">' . __( 'Edit your navigation menu' ) . '</a>', admin_url( 'nav-menus.php' ) ); ?></li>
45+                       <li><?php printf( '<div class="welcome-widgets-menus">Manage <a href="%s">' . __( 'widgets' ) . '</a> or <a href="%s">' . __( 'menus' ) . '</a></div>', admin_url( 'widgets.php' ), admin_url( 'nav-menus.php' ) ); ?></li>
46+                       <li><?php printf( '<a href="%s" class="welcome-comments">' . __( 'Turn comments on or off' ) . '</a>', admin_url( 'options-discussion.php' ) ); ?></li>
47+                       <li><?php printf( '<a href="%s" class="welcome-learn-more">' . __( 'Learn more about getting started' ) . '</a>', 'http://codex.wordpress.org/First_Steps_With_WordPress' ); ?></li>
48                </ul>
49        </div>
50        </div>
51Index: wp-admin/css/wp-admin.css
52===================================================================
53--- wp-admin/css/wp-admin.css   (revision 22368)
54+++ wp-admin/css/wp-admin.css   (working copy)
55@@ -2219,13 +2219,13 @@
56        border-style: solid;
57        border-radius: 3px;
58        font-size: 13px;
59-       line-height: 1.6em;
60+       line-height: 2.1em;
61 }
62 
63 .welcome-panel h3 {
64        margin: 0;
65        font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
66-       font-size: 32px;
67+       font-size: 21px;
68        font-weight: normal;
69        line-height: 1.2;
70 }
71@@ -2235,7 +2235,7 @@
72 }
73 
74 .welcome-panel .about-description {
75-       font-size: 18px;
76+       font-size: 16px;
77        margin: 0;
78 }
79 
80@@ -2265,7 +2265,7 @@
81        font: normal 15px sans-serif;
82        height: 46px;
83        line-height: 44px;
84-    margin: -9px 0 3px;
85+    margin: 15px 0 3px;
86     padding: 0 36px;
87 }
88 
89@@ -2299,16 +2299,87 @@
90 }
91 
92 .welcome-panel-column p {
93-       margin-top: 5px;
94+       margin-top: 7px;
95 }
96 
97+.welcome-panel .welcome-add-page {
98+       background: url('../images/welcome-icons.png') no-repeat 0 -1px;
99+}
100+
101+.welcome-panel .welcome-edit-page {
102+       background: url('../images/welcome-icons.png') no-repeat 0px -92px;
103+}
104+
105+.welcome-panel .welcome-learn-more {
106+       background: url('../images/welcome-icons.png') no-repeat 0px -138px;
107+}
108+
109+.welcome-panel .welcome-comments {
110+       background: url('../images/welcome-icons.png') no-repeat 0px -184px;
111+}
112+
113+.welcome-panel .welcome-view-site {
114+       background: url('../images/welcome-icons.png') no-repeat 0px -276px;
115+}
116+
117+.welcome-panel .welcome-widgets-menus {
118+       background: url('../images/welcome-icons.png') no-repeat 1px -230px;
119+       line-height: 14px;
120+}
121+
122+.welcome-panel .welcome-write-blog {
123+       background: url('../images/welcome-icons.png') no-repeat 0px -46px;
124+}
125+
126+.welcome-panel .welcome-add-page,
127+.welcome-panel .welcome-edit-page,
128+.welcome-panel .welcome-learn-more,
129+.welcome-panel .welcome-comments,
130+.welcome-panel .welcome-view-site,
131+.welcome-panel .welcome-widgets-menus,
132+.welcome-panel .welcome-write-blog {
133+       background-size: 16px;
134+       display: block;
135+       padding: 2px 0 8px 32px;
136+}
137+
138+@media only screen and (-webkit-min-device-pixel-ratio: 1.5) {
139+       .welcome-panel .welcome-add-page {
140+               background: url('../images/welcome-icons-2x.png') no-repeat 0 -1px;
141+       }
142+       
143+       .welcome-panel .welcome-edit-page {
144+               background: url('../images/welcome-icons-2x.png') no-repeat 0px -92px;
145+       }
146+       
147+       .welcome-panel .welcome-learn-more {
148+               background: url('../images/welcome-icons-2x.png') no-repeat 0px -138px;
149+       }
150+       
151+       .welcome-panel .welcome-comments {
152+               background: url('../images/welcome-icons-2x.png') no-repeat 0px -184px;
153+       }
154+       
155+       .welcome-panel .welcome-view-site {
156+               background: url('../images/welcome-icons-2x.png') no-repeat 0px -276px;
157+       }
158+       
159+       .welcome-panel .welcome-widgets-menus {
160+               background: url('../images/welcome-icons-2x.png') no-repeat 1px -230px;
161+       }
162+       
163+       .welcome-panel .welcome-write-blog {
164+               background: url('../images/welcome-icons-2x.png') no-repeat 0px -46px;
165+       }
166+}
167+
168 .welcome-panel .welcome-panel-column ul {
169-       margin: 0.4em 1em 1em 1.3em;
170+       margin: 0.8em 1em 1em 0;
171 }
172 
173 .welcome-panel .welcome-panel-column li {
174-       list-style-type: disc;
175-       padding-left: 2px;
176+    line-height: 16px;
177+    list-style-type: none;
178 }
179 
180 @media screen and (max-width: 870px) {
181@@ -2331,6 +2402,16 @@
182        .welcome-panel .welcome-panel-column ul {
183                margin: 0.4em 0 0;
184        }
185+       
186+       .welcome-panel .welcome-add-page,
187+       .welcome-panel .welcome-edit-page,
188+       .welcome-panel .welcome-learn-more,
189+       .welcome-panel .welcome-comments,
190+       .welcome-panel .welcome-view-site,
191+       .welcome-panel .welcome-widgets-menus,
192+       .welcome-panel .welcome-write-blog {
193+               padding-left: 25px;
194+       }
195 }
196 
197 /**