diff --git a/source/wp-content/themes/wporg-gutenberg/functions.php b/source/wp-content/themes/wporg-gutenberg/functions.php index dc232a3..59ca17a 100644 --- a/source/wp-content/themes/wporg-gutenberg/functions.php +++ b/source/wp-content/themes/wporg-gutenberg/functions.php @@ -41,7 +41,7 @@ function gutenberg_editor_scripts_and_styles( $hook ) { /** * Scripts */ - $temporary_content = include __DIR__ . '/gutenberg-content.php'; + $temporary_content = include __DIR__ . '/gutenberg-content-mobile.php'; $script = sprintf( 'wp.domReady( function () { document.querySelector(".wp-site-blocks").innerHTML = %s } );', wp_json_encode( do_blocks( $temporary_content['content'] ) ) diff --git a/source/wp-content/themes/wporg-gutenberg/gutenberg-content-mobile.php b/source/wp-content/themes/wporg-gutenberg/gutenberg-content-mobile.php new file mode 100644 index 0000000..1df9a7e --- /dev/null +++ b/source/wp-content/themes/wporg-gutenberg/gutenberg-content-mobile.php @@ -0,0 +1,549 @@ + +
' . esc_html__( 'Experience the flexibility that blocks allow, whether you’re building your first site or write code for a living.', 'wporg' ) . '
+ + + + +' . wp_kses_post( __( 'This page was built with blocks — pieces of content that you can move around.', 'wporg' ) ) . '
+' . esc_html__( 'Create modern layouts with rich content.', 'wporg' ) . '
+' . esc_html__( 'Trust that your editor looks like your website.', 'wporg' ) . '
+' . esc_html__( 'Work across screen sizes and devices.', 'wporg' ) . '
+' . esc_html__( 'Do more with fewer plugins.', 'wporg' ) . '
+' . esc_html__( 'Blocks allow you to build your own custom posts and pages without any coding knowledge. Here’s a selection of the default blocks included with Gutenberg:', 'wporg' ) . '
+' . esc_html__( 'Beautiful content doesn’t have to be designed from scratch. Patterns are collections of pre-arranged blocks you can assemble to make your content impactful, meaningful and appealing.', 'wporg' ) . '
+ + + +' . esc_html__( 'Created by the community.', 'wporg' ) . '
+' . esc_html__( 'Built by people from all over the world who work daily, meet weekly, and ship biweekly. You can be a part of it.', 'wporg' ) . '
+' . esc_html__( 'Built for a great developer experience.', 'wporg' ) . '
+' . esc_html__( 'Gutenberg lives on GitHub using the WordPress REST API, JavaScript, and React.', 'wporg' ) . '
+' . esc_html__( 'Designed for compatibility.', 'wporg' ) . '
+' . esc_html__( 'Gutenberg recommends migrating features to blocks but supports previous versions.', 'wporg' ) . '
+' . esc_html__( 'Focused on accessibility.', 'wporg' ) . '
+' . esc_html__( 'Designing with and for everyone is at the core of the editor and its future.', 'wporg' ) . '
+' . + sprintf( + /* translators: 1: The URL to learn.wordpress.org. */ + wp_kses_post( __( 'You can learn all the basics on Learn WordPress, a whole section dedicated to helping you get started.', 'wporg' ) ), + esc_url( 'https://learn.wordpress.org' ) + ) . '
+' . esc_html__( 'Some more helpful content and places to dig deeper about Gutenberg.', 'wporg' ) . '
+' . esc_html__( '“Gutenberg meets our challenges and opportunities head on while simultaneously benefitting everyone who makes a living working in the WP ecosystem. It’s about a lot more than just blocks.”', 'wporg' ) . '
+— MATT MULLENWEG, IN MA.TT
+' . + sprintf( + /* translators: 1: The URL to the Gutenberg plugin. */ + wp_kses_post( __( 'Gutenberg is available as part of WordPress 5.0 and later. New developments and experiments will continue in the Gutenberg plugin.', 'wporg' ) ), + esc_url( "https://{$localised_domain}/plugins/gutenberg/" ) + ) . '
+