-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
60 lines (42 loc) · 1.57 KB
/
index.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
<?php
get_header();
$container = fw_theme_mod('container-main');
?>
<div class="wrapper" id="index-wrapper">
<div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
<?php if(fw_theme_mod('blog-stblock')){
echo '<div class="row"><div class="container">';
fw_StaticBlock::getSticBlockContent( fw_theme_mod('blog-stblock') );
echo '</div></div>';
}?>
<div class="row">
<!-- Do the left sidebar check and opens the primary div -->
<?php get_template_part( 'global-templates/left-sidebar-check' ); ?>
<main class="site-main" id="main">
<header class="page-header">
<?php if(fw_theme_mod('fw_blog_title_switch')){ ?>
<?php echo '<h1 class="page-title">'. get_the_title( get_option('page_for_posts', true) ).'</h1>'; ?>
<?php } ?>
</header><!-- .page-header -->
<?php if ( have_posts() ) : ?>
<!-- .fw grid -->
<div class="fw_blog d-flex flex-wrap flex-row">
<?php
while ( have_posts() ) : the_post();
if(fw_theme_mod('fw_blog_columns')==1)get_template_part( 'loop-templates/content', '' );
else get_template_part( 'loop-templates/content', 'grid' );
endwhile;
else :
get_template_part( 'loop-templates/content', 'none' );
endif;?>
</div>
</main><!-- #main -->
<!-- The pagination component -->
<?php understrap_pagination(); ?>
</div><!-- #primary -->
<!-- Do the right sidebar check -->
<?php get_template_part( 'global-templates/right-sidebar-check' ); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer(); ?>