From 0339d7d1450cec70e77b1835619d72628f2ee974 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 8 Dec 2015 23:22:25 +0000 Subject: [PATCH] About Page: Add release video and update post embed. Props camikaos, siobhan, rosso99, wonderboymusic. See #34663. git-svn-id: https://develop.svn.wordpress.org/trunk@35839 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/about.php | 15 ++++++++++++++- src/wp-admin/css/about.css | 7 ++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index 6149ac7819..04a8556691 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -21,6 +21,12 @@ if ( current_user_can( 'install_plugins' ) ) { wp_enqueue_script( 'plugin-install' ); } +$video_url = 'https://videopress.com/embed/J44FHXvg?hd=true'; +$locale = str_replace( '_', '-', get_locale() ); +list( $locale ) = explode( '-', $locale ); +if ( 'en' !== $locale ) { + $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url ); +} wp_oembed_add_host_js(); @@ -42,6 +48,13 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); +
+ + +
+ +
+

@@ -83,7 +96,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
diff --git a/src/wp-admin/css/about.css b/src/wp-admin/css/about.css index 75a583b637..f466fd2240 100644 --- a/src/wp-admin/css/about.css +++ b/src/wp-admin/css/about.css @@ -181,7 +181,7 @@ /* 2.1 - Typography */ .about-wrap .headline-feature h2 { - margin: 50px 0 30px; + margin: 30px 0 30px; font-size: 2.2em; font-weight: 300; line-height: 1.3; @@ -226,11 +226,12 @@ /* 2.2 - Structure */ -.about-wrap .feature-video { +.about-wrap .headline-feature.feature-video { position: relative; margin: 40px 0; - padding-bottom: 56.25%; /* video is 1280 x 720 */ + padding-bottom: 56.25%; width: 100%; + max-width: 100%; height: 0; text-align: center; }