diff --git wordpress.org/public_html/wp-content/themes/pub/gutenberg/front-page.php wordpress.org/public_html/wp-content/themes/pub/gutenberg/front-page.php
index 58aa80e6f..4dda8f4ac 100644
|
|
|
|
| 5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | 6 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
| 7 | 7 | <?php wp_head(); ?> |
| | 8 | <script> |
| | 9 | window.noSupportString = "<?php printf( esc_html__( 'You are using an out of date browser.', 'gutenbergtheme' )); ?>" |
| | 10 | </script> |
| 8 | 11 | </head> |
| 9 | 12 | |
| 10 | 13 | <body <?php body_class( 'folded' ); ?>> |
diff --git wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
index 9674c4f01..4fa4eb156 100644
|
|
|
function gutenbergtheme_fonts_url() { |
| 878 | 878 | * Enqueue scripts and styles. |
| 879 | 879 | */ |
| 880 | 880 | function gutenbergtheme_scripts() { |
| | 881 | wp_enqueue_script( 'gutenbergtheme-unsupportedbrowser', get_template_directory_uri() . '/js/unsupported-browser.js', array(), '1', true ); |
| | 882 | |
| 881 | 883 | wp_enqueue_style( 'gutenbergtheme-style', get_stylesheet_uri(), [], 13 ); |
| 882 | 884 | |
| 883 | 885 | wp_enqueue_style( 'gutenbergthemeblocks-style', get_template_directory_uri() . '/blocks.css'); |
diff --git wordpress.org/public_html/wp-content/themes/pub/gutenberg/js/unsupported-browser.js wordpress.org/public_html/wp-content/themes/pub/gutenberg/js/unsupported-browser.js
new file mode 100644
index 000000000..3bc8ec78f
|
-
|
+
|
|
| | 1 | ( function ( $ ) { |
| | 2 | if ( $.browser && $.browser.version < 11 ) { |
| | 3 | var htmlString = '<div class="unsupported-browser-msg"><h2>' + window.noSupportString + '</h2></div>' |
| | 4 | $( '#editor' ).append( htmlString ); |
| | 5 | } |
| | 6 | } )( jQuery ); |
diff --git wordpress.org/public_html/wp-content/themes/pub/gutenberg/style.css wordpress.org/public_html/wp-content/themes/pub/gutenberg/style.css
index cc2a783bd..0dd7c89b3 100644
|
|
|
a.github-edit:hover > * { |
| 1693 | 1693 | a.github-edit img { |
| 1694 | 1694 | height: .8em; |
| 1695 | 1695 | } |
| | 1696 | |
| | 1697 | .unsupported-browser-msg { |
| | 1698 | width: 992px; |
| | 1699 | margin: 24px auto; |
| | 1700 | padding: 24px; |
| | 1701 | background: #fef8e7; |
| | 1702 | border: 1px solid #f7dba4; |
| | 1703 | text-align: center; |
| | 1704 | font-weight: normal; |
| | 1705 | } |
| | 1706 | No newline at end of file |