-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfront-page.php
64 lines (53 loc) · 1.45 KB
/
front-page.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
<?php
/**
* The template for displaying the front page
*
* This is the template that displays the front page by default.
* Other 'pages' on your WordPress site may use a
* different template.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package The_Standards
*/
get_header();
?>
<section class="usa-grid usa-section">
<?php if( get_theme_mod( 'the_standards_main_layout_select' ) == 'sidebar' ) { ?>
<div class="usa-width-one-third">
<?php if( is_active_sidebar( 'front-page-1' ) ) {
dynamic_sidebar( 'front-page-1' );
} else { ?>
<h2><?php _e( 'Add a widget to Front Page 1 to remove this text', 'the-standards' ); ?></h2>
<?php } ?>
</div>
<div class="usa-width-two-thirds">
<?php
while ( have_posts() ) :
the_post();
the_content();
endwhile; // End of the loop.
?>
</div>
<?php } else {
while ( have_posts() ) :
the_post();
the_content();
endwhile; // End of the loop.
} ?>
</section><!-- .usa-grid .usa-section -->
<?php if( is_active_sidebar( 'front-page-2' ) ) { ?>
<div class="usa-section usa-section-dark usa-graphic_list">
<div class="usa-grid usa-graphic_list-row">
<?php dynamic_sidebar( 'front-page-2' ); ?>
</div>
</div>
<?php }
if( is_active_sidebar( 'front-page-3' ) ) { ?>
<div class="usa-section">
<div class="usa-grid">
<?php dynamic_sidebar( 'front-page-3' ); ?>
</div>
</div>
<?php }
get_footer();