-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfront-page.php
More file actions
49 lines (39 loc) · 1.25 KB
/
front-page.php
File metadata and controls
49 lines (39 loc) · 1.25 KB
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
<?php
/**
* Front Page Section for our theme.
*
* @package ThemeGrill
* @subpackage Himalayas
* @since Himalayas 1.0
*/
get_header(); ?>
<div id="content" class="site-content">
<?php
if( is_active_sidebar( 'himalayas_front_page_section' ) ) {
if ( !dynamic_sidebar( 'himalayas_front_page_section' ) ):
endif;
}
$himalayas_layout = himalayas_layout_class();
if( get_theme_mod( 'himalayas_hide_blog_front' , 0 ) != 1 ): ?>
<main id="main" class="clearfix <?php echo $himalayas_layout; ?>">
<div class="tg-container">
<div id="primary" class="content-area">
<?php if ( have_posts() ):
while ( have_posts() ) : the_post();
if ( is_front_page() && is_home() ) {
get_template_part( 'content', '' );
} elseif ( is_front_page() ) {
get_template_part( 'content', 'page' );
}
endwhile;
get_template_part( 'navigation', 'none' );
else:
get_template_part( 'no-results', 'none' );
endif; ?>
</div>
<?php himalayas_sidebar_select(); ?>
</div>
</main>
<?php endif; ?>
</div>
<?php get_footer(); ?>