-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page1.php
38 lines (33 loc) · 1.07 KB
/
front-page1.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
<?php
if ( 'posts' == get_option( 'show_on_front' ) ) {
include( get_home_template() );
}
else {
if ( ! is_page_template() ) {
get_header();
get_template_part( 'template-parts/front-page/cover' );
get_template_part( 'template-parts/front-page/services' );
?>
<?php if ( get_theme_mod( 'show_main_content', 1 ) ) : ?>
<section class="wp-bp-main-content">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-md-8">
<?php while ( have_posts() ) : the_post(); ?>
<h2 class="text-center mb-4"><?php the_title(); ?></h2>
<?php wp_bootstrap_4_post_thumbnail(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
</div>
</div>
</section>
<?php endif; ?>
<?php
get_footer();
}
else {
include( get_page_template() );
}
}
?>