Making WordPress.org

Changeset 11552


Ignore:
Timestamp:
02/15/2022 12:31:21 AM (3 years ago)
Author:
coffee2code
Message:

Photo Directory: Don't show full header on subsequent paginations of the front page.

See #6034.

File:
1 edited

Legend:

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

    r11459 r11552  
    2727}
    2828
     29$show_full_header = is_home() && ! is_paged();
    2930?>
     31
    3032<div id="page" class="site">
    3133    <div id="content" class="site-content">
    32         <header id="masthead" class="site-header <?php echo is_home() ? 'home' : ''; ?>" role="banner">
     34        <header id="masthead" class="site-header <?php echo $show_full_header ? 'home' : ''; ?>" role="banner">
    3335            <div class="site-branding">
    34                 <?php if ( is_home() ) : ?>
     36                <?php if ( $show_full_header ) : ?>
    3537                    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Photos', 'Site title', 'wporg-photos' ); ?></a></h1>
    3638
Note: See TracChangeset for help on using the changeset viewer.