mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
About: Introduce design and add link to Media Widgets API dev note.
Props: ryelle rclations melchoyce westonruter. See #40721. Built from https://develop.svn.wordpress.org/trunk@40849 git-svn-id: http://core.svn.wordpress.org/trunk@40700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5136fe6ca6
commit
530577a670
@ -44,36 +44,45 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="feature-section one-col">
|
<div class="feature-section one-col">
|
||||||
<h2><?php _e( 'An Update with You in Mind' ); ?></h2>
|
<div class="col">
|
||||||
<p class="lead-description"><?php _e( 'WordPress 4.8 adds some great new features — gear up for a more intuitive WordPress!' ); ?></p>
|
<h2><?php _e( 'An Update with You in Mind' ); ?></h2>
|
||||||
<p><?php _e( 'Though some updates are tiny (TinyMCE, that is — see what we did there?) they’ve been developed by hundreds of Core Contributors and Committers with <em>you</em> in mind.' ); ?></p>
|
<p class="lead-description"><?php _e( 'WordPress 4.8 adds some great new features — gear up for a more intuitive WordPress!' ); ?></p>
|
||||||
<p><?php _e( 'Get ready for new features you’ll welcome like an old friend: link improvements, <em>three</em> new media widgets covering images, audio, and video, an updated text widget that supports visual editing, and an upgraded news section in your dashboard which brings in nearby and upcoming WordPress events.' ); ?></p>
|
<p><?php _e( 'Though some updates are tiny (TinyMCE, that is — see what we did there?) they’ve been developed by hundreds of Core Contributors and Committers with <em>you</em> in mind.' ); ?></p>
|
||||||
|
<p><?php _e( 'Get ready for new features you’ll welcome like an old friend: link improvements, <em>three</em> new media widgets covering images, audio, and video, an updated text widget that supports visual editing, and an upgraded news section in your dashboard which brings in nearby and upcoming WordPress events.' ); ?></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<h2><?php _e( 'Exciting Widget Updates' ); ?></h2>
|
<h2><?php _e( 'Exciting Widget Updates' ); ?></h2>
|
||||||
<div class="feature-section two-col">
|
|
||||||
|
<div class="headline-feature one-col">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div style="height:254px;width:480px;background:black;"></div>
|
<picture>
|
||||||
<h3><?php _e( 'Image Widget' ); ?></h3>
|
<!-- Large image -->
|
||||||
<p><?php _e( 'Adding an image to a widget is now a simple task that is achievable for any WordPress user without hiring a developer. (Don’t tell them we told you that.) Simply insert your image right within the widget settings — try adding a headshot and brief bio — and see it appear, automatically.' );?></p>
|
<source media="(min-width: 1050px)" srcset="https://cldup.com/-951havc3C.png" />
|
||||||
</div>
|
<!-- Medium image -->
|
||||||
<div class="col">
|
<source media="(min-width: 601px)" srcset="https://cldup.com/60ktdYzv0l.png" />
|
||||||
<div style="height:254px;width:480px;background:black;"></div>
|
<!-- Small image -->
|
||||||
<h3><?php _e( 'Video Widget' ); ?></h3>
|
<img src="https://cldup.com/mwvU0Zi5wW.png" alt="" />
|
||||||
<p><?php _e( 'A welcome video is a great way to humanize the branding of your website. It creates trust and empathy in your visitors. You can now add any video from your Media Library to a sidebar on your site with the new Video Widget. So, you, too, can be liked and trusted instantly.' ); ?></p>
|
</picture>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="feature-section two-col">
|
<div class="feature-section two-col">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div style="height:254px;width:480px;background:black;"></div>
|
<h3><?php _e( 'Image Widget' ); ?></h3>
|
||||||
|
<p><?php _e( 'Adding an image to a widget is now a simple task that is achievable for any WordPress user without hiring a developer. (Don’t tell them we told you that.) Simply insert your image right within the widget settings — try adding a headshot and brief bio — and see it appear, automatically.' );?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<h3><?php _e( 'Video Widget' ); ?></h3>
|
||||||
|
<p><?php _e( 'A welcome video is a great way to humanize the branding of your website. It creates trust and empathy in your visitors. You can now add any video from your Media Library to a sidebar on your site with the new Video Widget. So, you, too, can be liked and trusted instantly.' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
<h3><?php _e( 'Audio Widget' ); ?></h3>
|
<h3><?php _e( 'Audio Widget' ); ?></h3>
|
||||||
<p><?php _e( 'Are you a podcaster or musician? Adding a widget with your audio file has never been easier. Upload your audio file to the media library, go to the widget settings, select your file, and you’re done. This would be a great way to add a more intimate welcome message, too!' );?></p>
|
<p><?php _e( 'Are you a podcaster or musician? Adding a widget with your audio file has never been easier. Upload your audio file to the media library, go to the widget settings, select your file, and you’re done. This would be a great way to add a more intimate welcome message, too!' );?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div style="height:254px;width:480px;background:black;"></div>
|
|
||||||
<h3><?php _e( 'Rich Text Widget' ); ?></h3>
|
<h3><?php _e( 'Rich Text Widget' ); ?></h3>
|
||||||
<p><?php _e( 'This feature deserves a ticker-tape parade down Main Street. Rich-text editing capabilities are now native for text widgets. Simply, add a widget anywhere and format away. Create lists, add emphasis with bold or italics, and easily insert links. Have fun with your new-found formatting powers, but try to use them for good!' ); ?></p>
|
<p><?php _e( 'This feature deserves a ticker-tape parade down Main Street. Rich-text editing capabilities are now native for text widgets. Simply, add a widget anywhere and format away. Create lists, add emphasis with bold or italics, and easily insert links. Have fun with your new-found formatting powers, but try to use them for good!' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
@ -90,7 +99,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
<?php
|
<?php
|
||||||
echo wp_video_shortcode( array(
|
echo wp_video_shortcode( array(
|
||||||
'mp4' => 'https://s.w.org/images/core/4.7/starter-content-v1.mp4',
|
'mp4' => 'https://s.w.org/images/core/4.7/starter-content-v1.mp4',
|
||||||
'poster' => 'https://s.w.org/images/core/4.7/starter-content.jpg?v2',
|
'poster' => 'https://cldup.com/ZS8FEi0AE9.png',
|
||||||
'width' => 1140,
|
'width' => 1140,
|
||||||
'height' => 624,
|
'height' => 624,
|
||||||
// 'class' => 'wp-video-shortcode feature-video',
|
// 'class' => 'wp-video-shortcode feature-video',
|
||||||
@ -102,7 +111,6 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="feature-section two-col">
|
<div class="feature-section two-col">
|
||||||
<div class="col" style="height:254px;width:480px;background:black;"></div>
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3><?php _e( 'Nearby WordPress Events' ); ?></h3>
|
<h3><?php _e( 'Nearby WordPress Events' ); ?></h3>
|
||||||
|
|
||||||
@ -110,6 +118,9 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
|
|
||||||
<p><?php _e( 'Being part of the community can help you improve your WordPress skills and network with people you wouldn’t otherwise meet. Now you can easily find your local events just by logging in to your dashboard.' ); ?>
|
<p><?php _e( 'Being part of the community can help you improve your WordPress skills and network with people you wouldn’t otherwise meet. Now you can easily find your local events just by logging in to your dashboard.' ); ?>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<img src="https://cldup.com/GuISab3_X1.png" alt="" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
@ -136,15 +147,12 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
|||||||
<h3><a href="https://make.wordpress.org/core/2017/05/22/multisite-focused-changes-in-4-8/"><?php _e( 'Multisite Updates' ); ?></a></h3>
|
<h3><a href="https://make.wordpress.org/core/2017/05/22/multisite-focused-changes-in-4-8/"><?php _e( 'Multisite Updates' ); ?></a></h3>
|
||||||
<p><?php _e( 'New capabilities checks have been added to 4.8 with an eye towards removing calls to <code>is_super_admin()</code>. Additionally, new hooks, network-specific site functions, and user count controls have been added.' ); ?></p>
|
<p><?php _e( 'New capabilities checks have been added to 4.8 with an eye towards removing calls to <code>is_super_admin()</code>. Additionally, new hooks, network-specific site functions, and user count controls have been added.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="under-the-hood three-col">
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3><a href="https://make.wordpress.org/core/2017/05/23/addition-of-tinymce-to-the-text-widget/"><?php _e( 'Text-Editor JavaScript API' ); ?></a></h3>
|
<h3><a href="https://make.wordpress.org/core/2017/05/23/addition-of-tinymce-to-the-text-widget/"><?php _e( 'Text-Editor JavaScript API' ); ?></a></h3>
|
||||||
<p><?php _e( 'With the addition of TinyMCE to the text widget in 4.8 comes a new JavaScript API for instantiating the editor after page load. This can be used to add an editor instance to any textarea and customize it with buttons and functions.' ); ?></p>
|
<p><?php _e( 'With the addition of TinyMCE to the text widget in 4.8 comes a new JavaScript API for instantiating the editor after page load. This can be used to add an editor instance to any textarea and customize it with buttons and functions.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h3><?php _e( 'Media Widgets API' ); ?></h3>
|
<h3><a href="https://make.wordpress.org/core/2017/05/26/media-widgets-for-images-video-and-audio/"><?php _e( 'Media Widgets API' ); ?></a></h3>
|
||||||
<p><?php _e( 'The introduction of a new base media widget REST API schema to 4.8 opens up possibilities for more media widgets (such as galleries or playlists) in the future. The three new media widgets are powered by a shared base class that covers most of the interactions with the media modal. That class also makes it easier to create new media widgets and paves the way for more to come.' ); ?></p>
|
<p><?php _e( 'The introduction of a new base media widget REST API schema to 4.8 opens up possibilities for more media widgets (such as galleries or playlists) in the future. The three new media widgets are powered by a shared base class that covers most of the interactions with the media modal. That class also makes it easier to create new media widgets and paves the way for more to come.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
@ -161,45 +161,41 @@
|
|||||||
|
|
||||||
/* 1.2 - Structure */
|
/* 1.2 - Structure */
|
||||||
|
|
||||||
.about-wrap [class$=col] .col {
|
.about-wrap [class$="-col"] {
|
||||||
float: right;
|
display: -ms-flexbox;
|
||||||
position: relative;
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.one-col {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap [class$="-col"] .col {
|
||||||
|
-webkit-flex: 1;
|
||||||
|
-ms-flex: 1;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .two-col .col {
|
.about-wrap .two-col .col {
|
||||||
margin-left: 4.799999999%;
|
min-width: 47%;
|
||||||
width: 47.6%;
|
max-width: 47%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .three-col .col {
|
||||||
|
align-self: flex-start;
|
||||||
|
min-width: 31%;
|
||||||
|
max-width: 31%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .two-col img {
|
.about-wrap .two-col img {
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.two-col .col {
|
|
||||||
display: inline-block;
|
|
||||||
float: none;
|
|
||||||
margin-top: 1em;
|
|
||||||
margin-left: 4.799999999%;
|
|
||||||
width: -webkit-calc( 47.6% - 4px );
|
|
||||||
width: calc( 47.6% - 4px );
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .three-col .col {
|
|
||||||
margin-left: 4.999999999%;
|
|
||||||
width: 29.95%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .two-col .col:nth-of-type(2n),
|
|
||||||
.about-wrap .three-col .col:nth-of-type(3n) {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .under-the-hood {
|
|
||||||
clear: both;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .feature-video .mejs-controls {
|
.about-wrap .feature-video .mejs-controls {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@ -298,9 +294,8 @@
|
|||||||
padding-top: 35px;
|
padding-top: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .headline-feature {
|
.about-wrap .headline-feature img {
|
||||||
margin: 0 auto;
|
border: none;
|
||||||
max-width: 80%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section .media-container {
|
.about-wrap .feature-section .media-container {
|
||||||
@ -446,6 +441,11 @@
|
|||||||
column-count: 1;
|
column-count: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-wrap .two-col .col,
|
||||||
|
.about-wrap .three-col .col {
|
||||||
|
min-width: 48% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.about-wrap .three-col img {
|
.about-wrap .three-col img {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -475,8 +475,7 @@
|
|||||||
|
|
||||||
.about-wrap .two-col .col,
|
.about-wrap .two-col .col,
|
||||||
.about-wrap .three-col .col {
|
.about-wrap .three-col .col {
|
||||||
width: 100% !important;
|
min-width: 100% !important;
|
||||||
float: none !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .under-the-hood.three-col .col,
|
.about-wrap .under-the-hood.three-col .col,
|
||||||
|
2
wp-admin/css/about-rtl.min.css
vendored
2
wp-admin/css/about-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -161,45 +161,41 @@
|
|||||||
|
|
||||||
/* 1.2 - Structure */
|
/* 1.2 - Structure */
|
||||||
|
|
||||||
.about-wrap [class$=col] .col {
|
.about-wrap [class$="-col"] {
|
||||||
float: left;
|
display: -ms-flexbox;
|
||||||
position: relative;
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.one-col {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap [class$="-col"] .col {
|
||||||
|
-webkit-flex: 1;
|
||||||
|
-ms-flex: 1;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .two-col .col {
|
.about-wrap .two-col .col {
|
||||||
margin-right: 4.799999999%;
|
min-width: 47%;
|
||||||
width: 47.6%;
|
max-width: 47%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .three-col .col {
|
||||||
|
align-self: flex-start;
|
||||||
|
min-width: 31%;
|
||||||
|
max-width: 31%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .two-col img {
|
.about-wrap .two-col img {
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.two-col .col {
|
|
||||||
display: inline-block;
|
|
||||||
float: none;
|
|
||||||
margin-top: 1em;
|
|
||||||
margin-right: 4.799999999%;
|
|
||||||
width: -webkit-calc( 47.6% - 4px );
|
|
||||||
width: calc( 47.6% - 4px );
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .three-col .col {
|
|
||||||
margin-right: 4.999999999%;
|
|
||||||
width: 29.95%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .two-col .col:nth-of-type(2n),
|
|
||||||
.about-wrap .three-col .col:nth-of-type(3n) {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .under-the-hood {
|
|
||||||
clear: both;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .feature-video .mejs-controls {
|
.about-wrap .feature-video .mejs-controls {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@ -298,9 +294,8 @@
|
|||||||
padding-top: 35px;
|
padding-top: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .headline-feature {
|
.about-wrap .headline-feature img {
|
||||||
margin: 0 auto;
|
border: none;
|
||||||
max-width: 80%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section .media-container {
|
.about-wrap .feature-section .media-container {
|
||||||
@ -446,6 +441,11 @@
|
|||||||
column-count: 1;
|
column-count: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-wrap .two-col .col,
|
||||||
|
.about-wrap .three-col .col {
|
||||||
|
min-width: 48% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.about-wrap .three-col img {
|
.about-wrap .three-col img {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
@ -475,8 +475,7 @@
|
|||||||
|
|
||||||
.about-wrap .two-col .col,
|
.about-wrap .two-col .col,
|
||||||
.about-wrap .three-col .col {
|
.about-wrap .three-col .col {
|
||||||
width: 100% !important;
|
min-width: 100% !important;
|
||||||
float: none !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .under-the-hood.three-col .col,
|
.about-wrap .under-the-hood.three-col .col,
|
||||||
|
2
wp-admin/css/about.min.css
vendored
2
wp-admin/css/about.min.css
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-RC1-40848';
|
$wp_version = '4.8-RC1-40849';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user