Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This partial is used for displaying the Site Header when in archive pages
- *
- * @package Layers
- * @since Layers 1.0.0
- */
- global $layers_page_title_shown;
- $layers_page_title_shown = 1;
- /**
- * Fetch the site title array
- */
- $details = layers_get_page_title();
- if(is_front_page() && is_page('shop')){ ?>
- <div class="title-container">
- <div class="title">
- <h3 class="heading"><?php _e('Shop', 'layerswp'); ?></h3>
- </div>
- </div>
- <?php } else {
- if( isset( $details[ 'title' ] ) || isset( $details[ 'excerpt' ] ) ) { ?>
- <div <?php layers_wrapper_class( 'title_container', 'title-container' ); ?>>
- <?php do_action('layers_before_header_page_title'); ?>
- <div class="title">
- <?php /**
- * Display Breadcrumbs
- */
- layers_bread_crumbs();
- if( isset( $details[ 'title' ] ) && '' != $details[ 'title' ] ) { ?>
- <?php do_action('layers_before_title_heading'); ?>
- <h3 class="heading"><?php echo $details[ 'title' ]; ?></h3>
- <?php do_action('layers_after_title_heading'); ?>
- <?php } // if isset $title
- if( isset( $details[ 'excerpt' ] ) && '' != $details[ 'excerpt' ] ) { ?>
- <?php do_action('layers_before_title_excerpt'); ?>
- <p class="excerpt"><?php echo $details[ 'excerpt' ]; ?></p>
- <?php do_action('layers_after_title_excerpt'); ?>
- <?php } // if isset $excerpt ?>
- </div>
- <?php do_action('layers_after_header_page_title'); ?>
- </div>
- <?php }
- } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement