-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
24 lines (21 loc) · 869 Bytes
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* Alternate header.php for twentyseventeen-jer child theme
*
* Purpose: Include parent template, then add an extra widget section below header
* @see sidebar.php which displays sidebar-summary for !is_home and !is_front_page
*/
require_once ( get_template_directory() . '/header.php' );
// Only show extra content on homepage
if (is_home() OR is_front_page()) :
// If summary sidebar is active, display it with full-width wrapping to match content below
if ( is_active_sidebar( 'sidebar-summary' ) ):
echo "<div class='wrap header-widgets-wrap'>";
echo "<aside class='widget-area' role='complementary'>";
echo "<div class='widget-column footer-widget-1'>";
dynamic_sidebar( 'sidebar-summary' );
echo "</div><!-- .widget-column -->";
echo "</aside><!-- .widget-area -->";
echo "</div><!-- .header-widgets-wrap -->";
endif;
endif;