From cc524820bea5163b4a1458eb1b086d8b8773ce3b Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 3 Aug 2016 19:53:44 +0000 Subject: [PATCH] About Page: First pass for 4.6 with strings (not yet translatable) and images (not CDN). Props macmanx, jorbin, hugobaeta, DrewAPicture, peterwilsoncc, iamfriendly, rahulsprajapati, vishalkakadiya, petya, celloexpressions, westonruter, mikeschroder, zetaraffix, mapk, boonebgorges, adamsilverstein, jeremyfelt, rosso99, karmatosed, swissspidy, michael-arestad, ramiy, ocean90. See #37246. git-svn-id: https://develop.svn.wordpress.org/trunk@38183 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/about.php | 167 ++++++++++++++++--------------------- src/wp-admin/credits.php | 2 +- src/wp-admin/css/about.css | 23 ++--- src/wp-admin/freedoms.php | 2 +- 4 files changed, 86 insertions(+), 108 deletions(-) diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index 765ded9320..029ea04c3c 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -29,7 +29,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-
+

+ " frameborder="0" allowfullscreen> + */ ?>

-
-

-
- -

-

-
-
- -

-

<code>.' ); ?>

+
+

+

+
+

+
+

+

+ +
+ +
+
-

+

- -

-

- customizer.' ), - esc_url( $customize_url ) - ); - } else { - _e( 'Preview mobile, tablet, and desktop views directly in the customizer.' ); - } - ?>

+ +

+

- -

-

- Site Identity section of the customizer.' ), - esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) ) - ); - } else { - _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the customizer.' ); - } - ?>

+ +

+


-

+

-

-

comprehensive framework for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), - 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' - ); - if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) { - if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) { - printf( - /* translators: %s: URL to Menus section of the customizer */ - ' ' . __( 'See it in action with Menus.' ), - esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ) - ); - } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget. - printf( - /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */ - ' ' . __( 'See it in action with Menus or Widgets.' ), - esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ), - esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) ) - ); - } - } - ?>

+

+

-

+

+

+
+
+

WP_Term_Query', 'WP_Post_Type' ); + ?>

It’s really cool.' ), - 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' + /* translators: 1: WP_Term_Query, 2: WP_Post_Type */ + ( 'A new %1$s class adds flexibility to query term information and a new %2$s object makes interacting with post types more predictable and intuitive in code.' ), + 'WP_Term_Query', + 'WP_Post_Type' ); ?>

+
+ +
-

-

+

+

+
+
+

+

community translations for plugins and themes served from WordPress.org which allows WordPress to load them just-in-time.' ); ?>

+
+
+

+

-

-

wp_add_inline_script()' - ); - ?>

+

+

-

+

directly overridden by themes via the template hierarchy.' ), - 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' + ( 'Cached and comprehensive site queries improve your multisite admin experience. Also, %1$s and %2$s make crafting robust queries simpler.' ), + 'WP_Site_Query', + 'WP_Network_Query' ); - ?>

+ ?>

- -
- - - - | - - -
-
+ +
+ +
+ + + + | + + +
+
-
+

diff --git a/src/wp-admin/css/about.css b/src/wp-admin/css/about.css index 500fd39e43..2c36e3dceb 100644 --- a/src/wp-admin/css/about.css +++ b/src/wp-admin/css/about.css @@ -88,8 +88,17 @@ /* 1.1 - Typography */ .about-wrap p { - line-height: 1.6em; + line-height: 1.5; font-size: 14px; + max-width: 38em; + margin-left: auto; + margin-right: auto; +} + +.about-wrap .changelog p { + max-width: 100%; + margin-left: 0; + margin-right: 0; } .about-wrap h1 { @@ -109,17 +118,10 @@ text-align: center; } -.about-wrap .changelog h2, .about-wrap h3 { margin: 1.25em 0 .6em; font-size: 1.25em; - line-height: 1.5em; -} - -.about-wrap .changelog h2 { - margin-top: 40px; - font-weight: 600; - text-align: left; + line-height: 1.5; } .about-wrap h4 { @@ -194,7 +196,8 @@ overflow: hidden; } -.about-wrap .under-the-hood:nth-of-type(2n) { +.about-wrap .under-the-hood:nth-of-type(2n), +.about-wrap .under-the-hood:nth-of-type(3n) { margin-top: 3em; } diff --git a/src/wp-admin/freedoms.php b/src/wp-admin/freedoms.php index 4c8bf153da..91e7bb8c8a 100644 --- a/src/wp-admin/freedoms.php +++ b/src/wp-admin/freedoms.php @@ -19,7 +19,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-
+