Making WordPress.org


Ignore:
Timestamp:
12/22/2021 06:22:00 PM (3 years ago)
Author:
iandunn
Message:

Theme: Enable testing new header on w.org sandboxes

See WordPress/wporg-mu-plugins#19

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php

    r11129 r11402  
    66 */
    77
    8 $GLOBALS['pagetitle'] = wp_get_document_title();
    9 global $wporg_global_header_options;
    10 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    11     $wporg_global_header_options['in_wrapper'] = '';
    12 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#themes">' . esc_html__( 'Skip to content', 'wporg-themes' ) . '</a>';
     8if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     9    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     10} else {
     11    $GLOBALS['pagetitle'] = wp_get_document_title();
     12    global $wporg_global_header_options;
     13    if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     14        $wporg_global_header_options['in_wrapper'] = '';
     15    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#themes">' . esc_html__( 'Skip to content', 'wporg-themes' ) . '</a>';
     16    require WPORGPATH . 'header.php';
     17}
    1318
    14 require WPORGPATH . 'header.php';
    1519?>
    1620<header id="masthead" class="site-header <?php echo is_home() ? 'home' : ''; ?>" role="banner">
     
    4246</nav>
    4347<?php endif; ?>
    44 
Note: See TracChangeset for help on using the changeset viewer.