Changeset 11448
- Timestamp:
- 01/17/2022 04:45:59 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/header.php
r11431 r11448 9 9 * @package Gutenbergtheme 10 10 */ 11 12 \WordPressdotorg\skip_to( '#content' ); 13 11 14 require WPORGPATH . 'header.php'; 12 15 ?> 13 16 14 17 <div id="page" class="site"> 15 <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'gutenbergtheme' ); ?></a>16 18 <header id="masthead" class="site-header"> 17 19 <div class="site-branding"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php
r11431 r11448 1 1 <?php 2 3 \WordPressdotorg\skip_to( '#content' ); 2 4 3 5 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 4 6 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 5 7 } else { 6 global $wporg_global_header_options;7 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )8 $wporg_global_header_options['in_wrapper'] = '';9 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';10 8 require WPORGPATH . 'header.php'; 11 9 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/header.php
r11413 r11448 14 14 use function WPOrg_Learn\Locale\{ locale_notice }; 15 15 16 \WordPressdotorg\skip_to( '#main' ); 17 16 18 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 17 19 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 18 20 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 19 21 } else { 20 global $wporg_global_header_options;21 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {22 $wporg_global_header_options['in_wrapper'] = '';23 }24 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-learn' ) . '</a>';25 22 wporg_get_global_header(); 26 23 } … … 37 34 38 35 <div id="page" class="site"> 39 <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wporg-learn' ); ?></a>40 41 36 <div id="content"> 42 37 <header id="masthead" class="site-header <?php echo is_front_page() ? 'home' : ''; ?>" role="banner"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn/header.php
r6293 r11448 10 10 */ 11 11 12 \WordPressdotorg\skip_to( '#main' ); 13 12 14 get_header( 'wporg' ); 13 15 ?> 14 16 <div id="page" class="site"> 15 <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wporg' ); ?></a>16 17 17 <div id="content" class="site-content"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php
r11420 r11448 35 35 $user_class = $showcase ? 'col-12' : 'col-2'; 36 36 37 // Temporarily add a Skip-to-content selector for front pages. 38 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) { 39 $wporg_global_header_options['in_wrapper'] = '<a class="skip-link screen-reader-text" href="#masthead">' . __( 'Skip to content', 'wporg' ) . '</a>'; 40 } 37 \WordPressdotorg\skip_to( '#masthead' ); 41 38 42 39 get_header( 'wporg' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php
r11428 r11448 38 38 */ 39 39 add_theme_support( 'post-thumbnails' ); 40 41 /* 42 * Enable WordPress.org skip-to links. 43 */ 44 add_action( 'wp_head', '\WordPressdotorg\skip_to_main' ); 40 45 } 41 46 add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/header-child-page.php
r7367 r11448 17 17 ?> 18 18 <div id="page" class="site"> 19 <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wporg' ); ?></a>20 21 19 <div id="content" class="site-content row gutters"> 22 20 <header id="masthead" class="site-header col-12" role="banner"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/header-top-level-page.php
r11404 r11448 30 30 31 31 <div id="page" class="site"> 32 <a class="skip-link screen-reader-text" href="#main">33 <?php esc_html_e( 'Skip to content', 'wporg' ); ?>34 </a>35 36 32 <div id="content" class="site-content row gutters"> 37 33 <header id="masthead" class="site-header home col-12" role="banner"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/header.php
r11431 r11448 1 1 <?php 2 3 \WordPressdotorg\skip_to( '#headline' ); 2 4 3 5 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 4 6 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 5 7 } else { 6 global $wporg_global_header_options;7 if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) {8 $wporg_global_header_options['in_wrapper'] = '';9 }10 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#headline">' . esc_html( 'Skip to content', 'make-wporg' ) . '</a>';11 8 require( WPORGPATH . 'header.php' ); 12 9 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-openverse/header.php
r11431 r11448 12 12 namespace WordPressdotorg\Openverse\Theme; 13 13 14 \WordPressdotorg\skip_to( '#content' ); 15 14 16 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 15 17 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 16 18 } else { 17 global $wporg_global_header_options;18 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {19 $wporg_global_header_options['in_wrapper'] = '';20 }21 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';22 23 19 get_template_part( 'header', 'wporg' ); 24 20 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/header.php
r11431 r11448 14 14 use const WordPressdotorg\Pattern_Directory\Pattern_Post_Type\POST_TYPE; 15 15 16 global $wporg_global_header_options; 17 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) { 18 $wporg_global_header_options['in_wrapper'] = ''; 19 } 20 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-patterns' ) . '</a>'; 16 \WordPressdotorg\skip_to( '#content' ); 21 17 22 18 get_template_part( 'header', 'wporg' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php
r11431 r11448 12 12 namespace WordPressdotorg\Plugin_Directory\Theme; 13 13 14 \WordPressdotorg\skip_to( '#main' ); 15 14 16 $menu_items = array( 15 17 '/browse/favorites/' => __( 'My Favorites', 'wporg-plugins' ), … … 21 23 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 22 24 } else { 23 global $wporg_global_header_options;24 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )25 $wporg_global_header_options['in_wrapper'] = '';26 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-plugins' ) . '</a>';27 25 require WPORGPATH . 'header.php'; 28 26 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php
r11431 r11448 1 1 <?php 2 3 \WordPressdotorg\skip_to( '#pagebody' ); 2 4 3 5 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 4 6 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 5 7 } else { 6 global $wporg_global_header_options;7 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )8 $wporg_global_header_options['in_wrapper'] = '';9 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#pagebody">' . esc_html__( 'Skip to content', 'wporg-showcase' ) . '</a>';10 8 require WPORGPATH . 'header.php'; 11 9 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php
r11402 r11448 20 20 ); 21 21 22 \WordPressdotorg\skip_to( '#content' ); 23 22 24 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 23 25 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 24 26 } 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 27 wporg_get_global_header(); 30 28 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php
r11431 r11448 6 6 */ 7 7 8 \WordPressdotorg\skip_to( '#themes' ); 9 8 10 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 9 11 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 10 12 } else { 11 global $wporg_global_header_options;12 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )13 $wporg_global_header_options['in_wrapper'] = '';14 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#themes">' . esc_html__( 'Skip to content', 'wporg-themes' ) . '</a>';15 13 require WPORGPATH . 'header.php'; 16 14 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/header-page.php
r6657 r11448 12 12 namespace WordPressdotorg\Theme; 13 13 14 \WordPressdotorg\skip_to( '#main' ); 15 14 16 get_template_part( 'header', 'wporg' ); 15 17 ?> 16 18 <div id="page" class="site"> 17 <a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'wporg' ); ?></a>18 19 19 <div id="content" class="site-content row gutters"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/header.php
r11388 r11448 12 12 namespace WordPressdotorg\Theme; 13 13 14 if ( ! FEATURE_2021_GLOBAL_HEADER_FOOTER ) { 15 global $wporg_global_header_options; 16 17 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) { 18 $wporg_global_header_options['in_wrapper'] = ''; 19 } 20 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>'; 21 } 14 \WordPressdotorg\skip_to( '#content' ); 22 15 23 16 get_template_part( 'header', 'wporg' );
Note: See TracChangeset
for help on using the changeset viewer.