Making WordPress.org

Changeset 3715


Ignore:
Timestamp:
07/22/2016 06:57:25 PM (10 years ago)
Author:
coffee2code
Message:

Breathe: Don't show sidebar or handbook name header for handbook landing pages.

See #1825.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/single-handbook.php

    r3709 r3715  
    88get_header(); ?>
    99
    10 <?php if ( 'handbook' !== wporg_get_current_handbook() ) { ?>
     10<?php $is_landing_page = wporg_is_handbook_landing_page(); ?>
     11
     12<?php if ( ! $is_landing_page && 'handbook' !== wporg_get_current_handbook() ) { ?>
    1113<div class="handbook-name"><span><a href="<?php echo esc_url( get_post_type_archive_link( wporg_get_current_handbook() ) ); ?>"><?php echo esc_html( wporg_get_current_handbook_name() ); ?></a></span></div>
    1214<?php } ?>
    1315
    14 <?php get_sidebar( 'handbook' ); ?>
     16<?php if ( ! $is_landing_page ) { ?>
     17<?php get_sidebar( 'handbook' ); ?>
     18<?php } ?>
    1519
    1620<div id="primary" class="content-area">
Note: See TracChangeset for help on using the changeset viewer.