-
Notifications
You must be signed in to change notification settings - Fork 2
/
template-homepage.php
100 lines (93 loc) · 2.8 KB
/
template-homepage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?php
/*
Template Name: Homepage custom
*/
get_header();
// Description (slogan)
$description = get_bloginfo( 'description', 'display' );
while ( have_posts() ) : the_post();
?>
<?php
// Show breadcrumb if checked in customizer
if ( (get_theme_mod( 'theme_aeris_breadcrumb' ) == "true") && !(is_front_page()) ) {
?>
<div id="breadcrumbs">
<?php
if (function_exists('the_breadcrumb')) the_breadcrumb();
?>
</div>
<?php
}
?>
<div class="site-branding" style="background-image:url(<?php header_image()?>);">
<div>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php
if ( $description || is_customize_preview() ) { ?>
<p class="site-description"><?php echo $description; ?></p>
<?php
}
?>
</div>
</div><!-- .site-branding -->
<div id="content-area" class="wrapper default">
<main id="main" class="site-main" role="main">
<?php
if ( is_active_sidebar( 'homepage-top-widget-area' ) ) {
?>
<section role="homepage-top-widget-area">
<?php
dynamic_sidebar( 'homepage-top-widget-area' );
?>
</section>
<?php
}
?>
<?php
if ( ( is_active_sidebar( 'homepage-mdleft-widget-area' ) )||( is_active_sidebar( 'homepage-mdright-widget-area' ) ) )
{
?>
<div role="homepage-md">
<?php
if ( is_active_sidebar( 'homepage-mdleft-widget-area' ) ) {
?>
<section role="homepage-mdleft-widget-area">
<?php
dynamic_sidebar( 'homepage-mdleft-widget-area' );
?>
</section>
<?php
}
?>
<?php
if ( is_active_sidebar( 'homepage-mdright-widget-area' ) ) {
?>
<section role="homepage-mdright-widget-area">
<?php
dynamic_sidebar( 'homepage-mdright-widget-area' );
?>
</section>
<?php
}
?>
</div>
<?php
}
?>
<?php
if ( is_active_sidebar( 'homepage-footer-widget-area' ) ) {
?>
<section role="homepage-footer-widget-area">
<?php
dynamic_sidebar( 'homepage-footer-widget-area' );
?>
</section>
<?php
}
?>
</main><!-- #main -->
</div><!-- #content-area -->
<?php
endwhile; // End of the loop.
// get_sidebar();
get_footer();