mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-18 00:25:37 +01:00
9cd64e1341
The About page describes all the great changes in WordPress 5.0. Highlights: - Warn users of Gutenberg plugin of its deactivation upon 5.0 upgrade. - Added illustrations to the Four Freedoms page. - Include a link to wporg user’s plugin favorites as a way to display only the classic plugin as a suggestion for install. - Detail the Classic Editor plugin and the support timeline. Props pixelverbieger, ocean90, karmatosed, pento, boemedia, lonelyvegan, sami.keijonen, TimothyBlynJacobs, xkon, afercia, laurelfulford, joostdevalk, ipstenu, matveb, joen, tinkerbelly, chanthaboune, kjellr, alexislloyd, melchoyce, mcsf, courtney0burton, Otto42, cathibosco, tobifjellner, helen, audrasjb, antpb, jjj, elrae, desrosj, azaozz, joemcgill, skithund, gziolo. Merges [43913], [43921-43922], [43937-43938], [43946-43947], [43952-43953], [43967-43969] into trunk. Fixes #45178. Built from https://develop.svn.wordpress.org/trunk@44264 git-svn-id: http://core.svn.wordpress.org/trunk@44094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
584 lines
31 KiB
PHP
584 lines
31 KiB
PHP
<?php
|
||
/**
|
||
* About This Version administration panel.
|
||
*
|
||
* @package WordPress
|
||
* @subpackage Administration
|
||
*/
|
||
|
||
/** WordPress Administration Bootstrap */
|
||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||
|
||
wp_enqueue_script( 'underscore' );
|
||
|
||
/* translators: Page title of the About WordPress page in the admin. */
|
||
$title = _x( 'About', 'page title' );
|
||
|
||
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
|
||
|
||
wp_enqueue_style( 'wp-block-library' );
|
||
|
||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||
?>
|
||
<div class="wrap about-wrap full-width-layout">
|
||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||
|
||
<p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s introduces a robust new content creation experience.' ), $display_version ); ?></p>
|
||
|
||
<?php
|
||
if (
|
||
// Was the Gutenberg plugin installed before upgrading to 5.0.x?
|
||
get_option( 'upgrade_500_was_gutenberg_active' ) == '1' &&
|
||
current_user_can( 'activate_plugins' ) &&
|
||
// Has it not been reactivated since?
|
||
is_plugin_inactive( 'gutenberg/gutenberg.php' ) &&
|
||
// Is it still installed?
|
||
file_exists( WP_PLUGIN_DIR . '/gutenberg/gutenberg.php' )
|
||
) :
|
||
?>
|
||
<div class="about-text" style="font-style:italic;">
|
||
<?php
|
||
printf(
|
||
/* translators: 1: WordPress version, 2: HTML start tag of link, 3: HTML end tag of link */
|
||
__( 'The Gutenberg plugin has been deactivated, as the features are now included in WordPress %1$s by default. If you’d like to continue to test the upcoming changes in the WordPress editing experience, please %2$sreactivate the Gutenberg plugin%3$s.' ),
|
||
$display_version,
|
||
'<a href="' . esc_url( self_admin_url( 'plugins.php?s=gutenberg&plugin_status=all' ) ) . '">',
|
||
'</a>'
|
||
);
|
||
?>
|
||
</div>
|
||
<?php elseif ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>
|
||
<p class="about-text">
|
||
ℹ <a href="#classic-editor"><?php _e( 'Learn how to keep using the old editor.' ); ?></a>
|
||
</p>
|
||
<?php endif; ?>
|
||
|
||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||
|
||
<h2 class="nav-tab-wrapper wp-clearfix">
|
||
<a href="about.php" class="nav-tab nav-tab-active"><?php _e( 'What’s New' ); ?></a>
|
||
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
|
||
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
|
||
<a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
|
||
</h2>
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<h2><?php _e( 'Say Hello to the New Editor' ); ?></h2>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="full-width">
|
||
<picture>
|
||
<source type="image/webp" media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile1x.webp 1x, https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile.webp 2x" />
|
||
<source media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile1x.jpg 1x, https://s.w.org/images/core/5.0/header/Gutenberg%20Mobile.jpg 2x" />
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/header/Gutenberg1x.webp 1x, https://s.w.org/images/core/5.0/header/Gutenberg.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/header/Gutenberg1x.jpg" srcset="https://s.w.org/images/core/5.0/header/Gutenberg1x.jpg 1x, https://s.w.org/images/core/5.0/header/Gutenberg.jpg 2x" alt="">
|
||
</picture>
|
||
</div>
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<p><?php _e( 'You’ve successfully upgraded to WordPress 5.0! We’ve made some big changes to the editor. Our new block-based editor is the first step toward an exciting new future with a streamlined editing experience across your site. You’ll have more flexibility with how content is displayed, whether you are building your first site, revamping your blog, or write code for a living.' ); ?></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="feature-section four-col">
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Plugins1x.webp 1x, https://s.w.org/images/core/5.0/features/Plugins.webp 2x">
|
||
<img src="https://s.w.org/images/core/5.0/features/Plugins1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Plugins1x.jpg 1x, https://s.w.org/images/core/5.0/features/Plugins.jpg 2x" alt="" width="250" height="250" />
|
||
</picture>
|
||
<figcaption><?php _e( 'Do more with fewer plugins.' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Layout1x.webp 1x, https://s.w.org/images/core/5.0/features/Layout.webp 2x">
|
||
<img src="https://s.w.org/images/core/5.0/features/Layout1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Layout1x.jpg 1x, https://s.w.org/images/core/5.0/features/Layout.jpg 2x" alt="" width="250" height="250" />
|
||
</picture>
|
||
<figcaption><?php _e( 'Create modern, multimedia-heavy layouts.' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Responsive1x.webp 1x, https://s.w.org/images/core/5.0/features/Responsive.webp 2x">
|
||
<img src="https://s.w.org/images/core/5.0/features/Responsive1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Responsive1x.jpg 1x, https://s.w.org/images/core/5.0/features/Responsive.jpg 2x" alt="" width="250" height="250" />
|
||
</picture>
|
||
<figcaption><?php _e( 'Work across all screen sizes and devices.' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/features/Editor%20Styles1x.webp 1x, https://s.w.org/images/core/5.0/features/Editor%20Styles.webp 2x">
|
||
<img src="https://s.w.org/images/core/5.0/features/Editor%20Styles1x.jpg" srcset="https://s.w.org/images/core/5.0/features/Editor%20Styles1x.jpg 1x, https://s.w.org/images/core/5.0/features/Editor%20Styles.jpg 2x" alt="" width="250" height="250" />
|
||
</picture>
|
||
<figcaption><?php _e( 'Trust that your editor looks like your website.' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<h2><?php _e( 'Building with Blocks' ); ?></h2>
|
||
<p><?php _e( 'The new block-based editor won’t change the way any of your content looks to your visitors. What it will do is let you insert any type of multimedia in a snap and rearrange to your heart’s content. Each piece of content will be in its own block; a distinct wrapper for easy maneuvering. If you’re more of an HTML and CSS sort of person, then the blocks won’t stand in your way. WordPress is here to simplify the process, not the outcome.' ); ?></p>
|
||
<video controls>
|
||
<source src="https://s.w.org/images/core/5.0/videos/add-block.mp4" type="video/mp4">
|
||
<source src="https://s.w.org/images/core/5.0/videos/add-block.webm" type="video/webm">
|
||
<p><?php printf( __( 'Your browser doesn’t support HTML5 video. Here is a %1$slink to the video%2$s instead.' ), '<a href="https://wordpress.org/gutenberg/files/2018/11/add-block.mp4">', '</a>' ); ?></p>
|
||
</video>
|
||
<p><?php _e( 'We have tons of blocks available by default, and more get added by the community every day. Here are a few of the blocks to help you get started:' ); ?></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="feature-section eight-col">
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Paragraph.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Paragraph' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Heading.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Heading' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Preformatted.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Preformatted' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Quote.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Quote' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Image.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Image' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Gallery.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Gallery' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Cover%20Image.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Cover' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Video.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Video' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Audio.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Audio' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Column.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Columns' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20File.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'File' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Code.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Code' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20List.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'List' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Button.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Button' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20Embeds.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'Embeds' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
<div class="col">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More@1x.webp 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More@1x.jpg" srcset="https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More@1x.jpg 1x, https://s.w.org/images/core/5.0/blocks/Block%20Icon%20More.jpg 2x" alt=""/>
|
||
</picture>
|
||
<figcaption><?php _e( 'More' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<h2><?php _e( 'Freedom to Build, Freedom to Write' ); ?></h2>
|
||
<p><?php _e( 'This new editing experience provides a more consistent treatment of design as well as content. If you’re building client sites, you can create reusable blocks. This lets your clients add new content anytime, while still maintaining a consistent look and feel.' ); ?></p>
|
||
<video controls>
|
||
<source src="https://s.w.org/images/core/5.0/videos/build.mp4" type="video/mp4">
|
||
<source src="https://s.w.org/images/core/5.0/videos/build.webm" type="video/webm">
|
||
<p><?php printf( __( 'Your browser doesn’t support HTML5 video. Here is a %1$slink to the video%2$s instead.' ), '<a href="https://wordpress.org/gutenberg/files/2018/11/build.mp4">', '</a>' ); ?></p>
|
||
</video>
|
||
</div>
|
||
</div>
|
||
|
||
<?php if ( current_user_can( 'edit_posts' ) ) { ?>
|
||
<div class="feature-section one-col cta">
|
||
<div class="col">
|
||
<a class="button button-primary button-hero" href="<?php echo esc_url( admin_url( 'post-new.php' ) ); ?>"><?php _e( 'Build your first post' ); ?></a>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
|
||
|
||
<hr />
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<h2><?php _e( 'A Stunning New Default Theme' ); ?></h2>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="full-width">
|
||
<figure>
|
||
<picture>
|
||
<source type="image/webp" media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile.webp 2x" />
|
||
<source media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile@1x.jpg 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-mobile.jpg 2x" />
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen@1x.jpg" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen@1x.jpg 1x, https://s.w.org/images/core/5.0/header/twenty-nineteen.jpg 2x" alt="">
|
||
</picture>
|
||
|
||
<figcaption><?php _e( 'The front-end of Twenty Nineteen on the left, and how it looks in the editor on the right.' ); ?></figcaption>
|
||
</figure>
|
||
</div>
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<p><?php _e( 'Introducing Twenty Nineteen, a new default theme that shows off the power of the new editor.' ); ?></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="feature-section three-col">
|
||
<div class="col">
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor@1x.jpg" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor@1x.jpg 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/block%20editor.jpg 2x" alt="">
|
||
</picture>
|
||
<h3><?php _e( 'Designed for the block editor' ); ?></h3>
|
||
<p><?php _e( 'Twenty Nineteen features custom styles for the blocks available by default in 5.0. It makes extensive use of editor styles throughout the theme. That way, what you create in your content editor is what you see on the front of your site.' ); ?></p>
|
||
</div>
|
||
<div class="col">
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/typography@1x.webp 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/typography.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/twenty%20nineteen/typography@1x.jpg" srcset="https://s.w.org/images/core/5.0/twenty%20nineteen/typography@1x.jpg 1x, https://s.w.org/images/core/5.0/twenty%20nineteen/typography.jpg 2x" alt="">
|
||
</picture>
|
||
<h3><?php _e( 'Simple, type-driven layout' ); ?></h3>
|
||
<p><?php _e( 'Featuring ample whitespace, and modern sans-serif headlines paired with classic serif body text, Twenty Nineteen is built to be beautiful on the go. It uses system fonts to increase loading speed. No more long waits on slow networks!' ); ?></p>
|
||
</div>
|
||
<div class="col">
|
||
<img src="https://s.w.org/images/core/5.0/twenty%20nineteen/twenty-nineteen-versatile.gif" alt="">
|
||
<h3><?php _e( 'Versatile design for all sites' ); ?></h3>
|
||
<p><?php _e( 'Twenty Nineteen is designed to work for a wide variety of use cases. Whether you’re running a photo blog, launching a new business, or supporting a non-profit, Twenty Nineteen is flexible enough to fit your needs.' ); ?></p>
|
||
</div>
|
||
</div>
|
||
|
||
<?php if ( current_user_can( 'customize' ) ) { ?>
|
||
<div class="feature-section one-col cta">
|
||
<div class="col">
|
||
<a class="button button-primary button-hero load-customize hide-if-no-customize" href="<?php echo esc_url( admin_url( 'customize.php?theme=twentynineteen' ) ); ?>"><?php _e( 'Give Twenty Nineteen a try' ); ?></a>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
|
||
<hr />
|
||
|
||
<div class="under-the-hood feature-section">
|
||
<div class="col">
|
||
<h2><?php _e( 'Developer Happiness' ); ?></h2>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="under-the-hood feature-section three-col">
|
||
<div class="col">
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/devs/Protect1x.webp 1x, https://s.w.org/images/core/5.0/devs/Protect.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/devs/Protect1x.jpg" srcset="https://s.w.org/images/core/5.0/devs/Protect1x.jpg 1x, https://s.w.org/images/core/5.0/devs/Protect.jpg 2x" alt="">
|
||
</picture>
|
||
<h3><?php _e( 'Protect' ); ?></h3>
|
||
<p><?php _e( 'Blocks provide a comfortable way for users to change content directly, while also ensuring the content structure cannot be easily disturbed by accidental code edits. This allows the developer to control the output, building polished and semantic markup that is preserved through edits and not easily broken.' ); ?></p>
|
||
</div>
|
||
<div class="col">
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/devs/Compose1x.webp 1x, https://s.w.org/images/core/5.0/devs/Compose.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/devs/Compose1x.jpg" srcset="https://s.w.org/images/core/5.0/devs/Compose1x.jpg 1x, https://s.w.org/images/core/5.0/devs/Compose.jpg 2x" alt="">
|
||
</picture>
|
||
<h3><?php _e( 'Compose' ); ?></h3>
|
||
<p><?php _e( 'Take advantage of a wide collection of APIs and interface components to easily create blocks with intuitive controls for your clients. Utilizing these components not only speeds up development work but also provide a more consistent, usable, and accessible interface to all users.' ); ?></p>
|
||
</div>
|
||
<div class="col">
|
||
<picture>
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/devs/Create1x.webp 1x, https://s.w.org/images/core/5.0/devs/Create.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/devs/Create1x.jpg" srcset="https://s.w.org/images/core/5.0/devs/Create1x.jpg 1x, https://s.w.org/images/core/5.0/devs/Create.jpg 2x" alt="">
|
||
</picture>
|
||
<h3><?php _e( 'Create' ); ?></h3>
|
||
<p><?php _e( 'The new block paradigm opens up a path of exploration and imagination when it comes to solving user needs. With the unified block insertion flow, it’s easier for your clients and customers to find and use blocks for all types of content. Developers can focus on executing their vision and providing rich editing experiences, rather than fussing with difficult APIs.' ); ?></p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="under-the-hood feature-section one-col cta">
|
||
<div class="col">
|
||
<a class="button button-primary button-hero" href="<?php echo esc_url( 'https://wordpress.org/gutenberg/handbook/' ); ?>"><?php _e( 'Learn how to get started' ); ?></a>
|
||
</div>
|
||
</div>
|
||
|
||
<hr />
|
||
|
||
<?php if ( ! file_exists( WP_PLUGIN_DIR . '/classic-editor/classic-editor.php' ) ) : ?>
|
||
<div class="feature-section one-col" id="classic-editor">
|
||
<div class="col">
|
||
<h2><?php _e( 'Keep it Classic' ); ?></h2>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="full-width">
|
||
<picture>
|
||
<source type="image/webp" media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/classic/Classic%20Mobile1x.webp 1x, https://s.w.org/images/core/5.0/classic/Classic%20Mobile.webp 2x" />
|
||
<source media="(max-width: 782px)" srcset="https://s.w.org/images/core/5.0/classic/Classic%20Mobile1x.jpg 1x, https://s.w.org/images/core/5.0/classic/Classic%20Mobile.jpg 2x" />
|
||
<source type="image/webp" srcset="https://s.w.org/images/core/5.0/classic/Classic@1x.webp 1x, https://s.w.org/images/core/5.0/classic/Classic.webp 2x" />
|
||
<img src="https://s.w.org/images/core/5.0/classic/Classic@1x.jpg" srcset="https://s.w.org/images/core/5.0/classic/Classic@1x.jpg 1x, https://s.w.org/images/core/5.0/header/Classic.jpg 2x" alt="">
|
||
</picture>
|
||
</div>
|
||
|
||
<div class="feature-section one-col">
|
||
<div class="col">
|
||
<p><?php _e( 'Prefer to stick with the familiar Classic Editor? No problem! Support for the Classic Editor plugin will remain in WordPress through 2021.' ); ?></p>
|
||
<p><?php _e( 'The Classic Editor plugin restores the previous WordPress editor and the Edit Post screen. It lets you keep using plugins that extend it, add old-style meta boxes, or otherwise depend on the previous editor. To install, visit your plugins page and click the “Install Now” button next to “Classic Editor”. After the plugin finishes installing, click “Activate”. That’s it!' ); ?></p>
|
||
<p><?php _e( 'Note to users of assistive technology: if you experience usability issues with the block editor, we recommend you continue to use the Classic Editor.' ); ?></p>
|
||
<?php if ( current_user_can( 'install_plugins' ) ) { ?>
|
||
<div class="col cta">
|
||
<a class="button button-primary button-hero" href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) ); ?>"><?php _e( 'Install the Classic Editor' ); ?></a>
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
</div>
|
||
|
||
<hr />
|
||
<?php endif; ?>
|
||
|
||
<div class="return-to-dashboard">
|
||
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
|
||
<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>">
|
||
<?php is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard → Updates' ); ?>
|
||
</a> |
|
||
<?php endif; ?>
|
||
<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?></a>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
(function( $ ) {
|
||
$( function() {
|
||
var $window = $( window );
|
||
var $adminbar = $( '#wpadminbar' );
|
||
var $sections = $( '.floating-header-section' );
|
||
var offset = 0;
|
||
|
||
// Account for Admin bar.
|
||
if ( $adminbar.length ) {
|
||
offset += $adminbar.height();
|
||
}
|
||
|
||
function setup() {
|
||
$sections.each( function( i, section ) {
|
||
var $section = $( section );
|
||
// If the title is long, switch the layout
|
||
var $title = $section.find( 'h2' );
|
||
if ( $title.innerWidth() > 300 ) {
|
||
$section.addClass( 'has-long-title' );
|
||
}
|
||
} );
|
||
}
|
||
|
||
var adjustScrollPosition = _.throttle( function adjustScrollPosition() {
|
||
$sections.each( function( i, section ) {
|
||
var $section = $( section );
|
||
var $header = $section.find( 'h2' );
|
||
var width = $header.innerWidth();
|
||
var height = $header.innerHeight();
|
||
|
||
if ( $section.hasClass( 'has-long-title' ) ) {
|
||
return;
|
||
}
|
||
|
||
var sectionStart = $section.offset().top - offset;
|
||
var sectionEnd = sectionStart + $section.innerHeight();
|
||
var scrollPos = $window.scrollTop();
|
||
|
||
// If we're scrolled into a section, stick the header
|
||
if ( scrollPos >= sectionStart && scrollPos < sectionEnd - height ) {
|
||
$header.css( {
|
||
position: 'fixed',
|
||
top: offset + 'px',
|
||
bottom: 'auto',
|
||
width: width + 'px'
|
||
} );
|
||
// If we're at the end of the section, stick the header to the bottom
|
||
} else if ( scrollPos >= sectionEnd - height && scrollPos < sectionEnd ) {
|
||
$header.css( {
|
||
position: 'absolute',
|
||
top: 'auto',
|
||
bottom: 0,
|
||
width: width + 'px'
|
||
} );
|
||
// Unstick the header
|
||
} else {
|
||
$header.css( {
|
||
position: 'static',
|
||
top: 'auto',
|
||
bottom: 'auto',
|
||
width: 'auto'
|
||
} );
|
||
}
|
||
} );
|
||
}, 100 );
|
||
|
||
function enableFixedHeaders() {
|
||
if ( $window.width() > 782 ) {
|
||
setup();
|
||
adjustScrollPosition();
|
||
$window.on( 'scroll', adjustScrollPosition );
|
||
} else {
|
||
$window.off( 'scroll', adjustScrollPosition );
|
||
$sections.find( '.section-header' )
|
||
.css( {
|
||
width: 'auto'
|
||
} );
|
||
$sections.find( 'h2' )
|
||
.css( {
|
||
position: 'static',
|
||
top: 'auto',
|
||
bottom: 'auto',
|
||
width: 'auto'
|
||
} );
|
||
}
|
||
}
|
||
$( window ).resize( enableFixedHeaders );
|
||
enableFixedHeaders();
|
||
} );
|
||
})( jQuery );
|
||
</script>
|
||
|
||
<?php
|
||
|
||
include( ABSPATH . 'wp-admin/admin-footer.php' );
|
||
|
||
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
|
||
return;
|
||
|
||
__( 'Maintenance Release' );
|
||
__( 'Maintenance Releases' );
|
||
|
||
__( 'Security Release' );
|
||
__( 'Security Releases' );
|
||
|
||
__( 'Maintenance and Security Release' );
|
||
__( 'Maintenance and Security Releases' );
|
||
|
||
/* translators: %s: WordPress version number */
|
||
__( '<strong>Version %s</strong> addressed one security issue.' );
|
||
/* translators: %s: WordPress version number */
|
||
__( '<strong>Version %s</strong> addressed some security issues.' );
|
||
|
||
/* translators: 1: WordPress version number, 2: plural number of bugs. */
|
||
_n_noop(
|
||
'<strong>Version %1$s</strong> addressed %2$s bug.',
|
||
'<strong>Version %1$s</strong> addressed %2$s bugs.'
|
||
);
|
||
|
||
/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
|
||
_n_noop(
|
||
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
|
||
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
|
||
);
|
||
|
||
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
|
||
_n_noop(
|
||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
|
||
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.'
|
||
);
|
||
|
||
/* translators: %s: Codex URL */
|
||
__( 'For more information, see <a href="%s">the release notes</a>.' );
|