Skip to content

Commit

Permalink
Theme: Enable testing new header on w.org sandboxes
Browse files Browse the repository at this point in the history
See WordPress/wporg-mu-plugins#19


git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11402 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
iandunn committed Dec 22, 2021
1 parent f4f66ca commit ce4a040
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@
</div><!-- #page -->

<?php
require WPORGPATH . 'footer.php';

if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
} else {
require WPORGPATH . 'footer.php';
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<?php
$GLOBALS['pagetitle'] = wp_get_document_title();
global $wporg_global_header_options;
if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
$wporg_global_header_options['in_wrapper'] = '';
$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
require WPORGPATH . 'header.php';

if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
echo do_blocks( '<!-- wp:wporg/global-header /-->' );
} else {
$GLOBALS['pagetitle'] = wp_get_document_title();
global $wporg_global_header_options;
if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
$wporg_global_header_options['in_wrapper'] = '';
$wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
require WPORGPATH . 'header.php';
}

?>
<header id="masthead" class="site-header" role="banner">
<a href="#" id="secondary-toggle" onclick="return false;"><strong><?php _e( 'Menu' ); ?></strong></a>
Expand Down

0 comments on commit ce4a040

Please sign in to comment.