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-showcase/header.php

    r10337 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="#pagebody">' . esc_html__( 'Skip to content', 'wporg-showcase' ) . '</a>';
     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="#pagebody">' . esc_html__( 'Skip to content', 'wporg-showcase' ) . '</a>';
     11        require WPORGPATH . 'header.php';
     12}
    713
    814$prefix = is_ssl() ? 'https://' : 'http://s.';
    915wp_enqueue_style( 'blog-wp4', $prefix.'wordpress.org/style/blog-wp4.css', array(), 4 );
    1016wp_enqueue_style( 'showcase', get_stylesheet_uri(), array(), 20 );
    11 require WPORGPATH . 'header.php';
     17
    1218?>
     19
    1320<div id="headline">
    1421        <div class="wrapper">
Note: See TracChangeset for help on using the changeset viewer.