Making WordPress.org

Changeset 11402


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

Location:
sites/trunk
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/footer.php

    r1608 r11402  
    44__('Code is Poetry.', 'rosetta');
    55
    6 require WPORGPATH . 'footer.php';
     6if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     7    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     8} else {
     9    require WPORGPATH . 'footer.php';
     10}
  • sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/header.php

    r4939 r11402  
    1616}
    1717
    18 require WPORGPATH . 'header.php';
     18if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     19    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     20} else {
     21    require WPORGPATH . 'header.php';
     22}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/footer.php

    r8751 r11402  
    11    </div><!-- gp-content -->
    22
    3 <?php require WPORGPATH . 'footer.php';
     3<?php
    44
     5if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     6    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     7} else {
     8    require WPORGPATH . 'footer.php';
     9}
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/header.php

    r4924 r11402  
    11<?php
    2 global $pagetitle;
    3 $pagetitle = gp_title();
    4 require WPORGPATH . 'header.php';
     2
     3if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     4    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     5} else {
     6    global $pagetitle;
     7    $pagetitle = gp_title();
     8    require WPORGPATH . 'header.php';
     9}
     10
    511?>
    612<script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
     
    5460
    5561    do_action( 'gp_after_notices' );
    56 
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/footer.php

    r3533 r11402  
    1313
    1414<?php
    15 require WPORGPATH . 'footer.php';
     15
     16if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     17    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     18} else {
     19    require WPORGPATH . 'footer.php';
     20}
  • 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">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/footer.php

    r591 r11402  
    1414<?php
    1515
    16 require WPORGPATH . 'footer.php';
     16if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     17    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     18} else {
     19    require WPORGPATH . 'footer.php';
     20}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/header.php

    r10263 r11402  
    88 */
    99
    10 $GLOBALS['pagetitle'] = wp_get_document_title();
     10if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     11    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     12} else {
     13    $GLOBALS['pagetitle'] = wp_get_document_title();
     14    require WPORGPATH . 'header.php';
     15}
    1116
    12 require WPORGPATH . 'header.php';
    1317?>
    1418
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/footer.php

    r80 r11402  
    11<?php
    22
    3 require( WPORGPATH . 'footer.php' );
     3if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     4    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     5} else {
     6    require WPORGPATH . 'footer.php';
     7}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/header.php

    r9927 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'] = '';
     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    }
     11    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#headline">' . esc_html( 'Skip to content', 'make-wporg' ) . '</a>';
     12    require( WPORGPATH . 'header.php' );
    613}
    7 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#headline">' . esc_html( 'Skip to content', 'make-wporg' ) . '</a>';
    8 require( WPORGPATH . 'header.php' );
     14
    915?>
    1016
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-openverse/header.php

    r11060 r11402  
    1212namespace WordPressdotorg\Openverse\Theme;
    1313
    14 $GLOBALS['pagetitle'] = wp_get_document_title();
    15 global $wporg_global_header_options;
    16 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {
    17     $wporg_global_header_options['in_wrapper'] = '';
     14if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     15    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     16} else {
     17    $GLOBALS['pagetitle'] = wp_get_document_title();
     18    global $wporg_global_header_options;
     19    if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {
     20        $wporg_global_header_options['in_wrapper'] = '';
     21    }
     22    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
     23
     24    get_template_part( 'header', 'wporg' );
    1825}
    19 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
    2026
    21 get_template_part( 'header', 'wporg' );
    2227?>
    2328<div id="page" class="site">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/footer.php

    r9231 r11402  
    1818<?php
    1919
    20 require WPORGPATH . 'footer.php';
     20if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     21    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     22} else {
     23    require WPORGPATH . 'footer.php';
     24}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r11126 r11402  
    1818);
    1919
    20 $GLOBALS['pagetitle'] = wp_get_document_title();
    21 global $wporg_global_header_options;
    22 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    23     $wporg_global_header_options['in_wrapper'] = '';
    24 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-plugins' ) . '</a>';
    25 require WPORGPATH . 'header.php';
     20if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     21    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     22} else {
     23    $GLOBALS['pagetitle'] = wp_get_document_title();
     24    global $wporg_global_header_options;
     25    if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     26        $wporg_global_header_options['in_wrapper'] = '';
     27    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-plugins' ) . '</a>';
     28    require WPORGPATH . 'header.php';
     29}
     30
    2631?>
    2732<div id="page" class="site">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/footer.php

    r1474 r11402  
    11<?php
    2 require WPORGPATH . 'footer.php';
     2
     3if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     4    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     5} else {
     6    require WPORGPATH . 'footer.php';
     7}
  • 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">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/footer.php

    r7134 r11402  
    1010</div><!-- #page -->
    1111
    12 <?php require WPORGPATH . 'footer.php';
     12<?php
     13
     14if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     15    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     16} else {
     17    require WPORGPATH . 'footer.php';
     18}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php

    r10285 r11402  
    2020);
    2121
    22 global $wporg_global_header_options;
    23 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    24     $wporg_global_header_options['in_wrapper'] = '';
    25 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-forums' ) . '</a>';
    26 wporg_get_global_header();
     22if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     23    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     24} else {
     25    global $wporg_global_header_options;
     26    if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     27        $wporg_global_header_options['in_wrapper'] = '';
     28    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-forums' ) . '</a>';
     29    wporg_get_global_header();
     30}
     31
    2732?>
    2833
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/footer.php

    r1084 r11402  
    66 */
    77
    8 require WPORGPATH . 'footer.php';
     8if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     9    echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
     10} else {
     11    require WPORGPATH . 'footer.php';
     12}
  • 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.