Making WordPress.org


Ignore:
Timestamp:
12/22/2021 06:22:00 PM (5 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-breathe/header.php

    r8258 r11402  
    11<?php
    2 $GLOBALS['pagetitle'] = wp_get_document_title();
    3 global $wporg_global_header_options;
    4 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    5         $wporg_global_header_options['in_wrapper'] = '';
    6 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
    7 require WPORGPATH . 'header.php';
     2
     3if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     4        echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     5} else {
     6        $GLOBALS['pagetitle'] = wp_get_document_title();
     7        global $wporg_global_header_options;
     8        if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     9                $wporg_global_header_options['in_wrapper'] = '';
     10        $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
     11        require WPORGPATH . 'header.php';
     12}
     13
    814?>
    915<header id="masthead" class="site-header" role="banner">
Note: See TracChangeset for help on using the changeset viewer.