forked from City-of-Helsinki/wordpress-helfi-spouse-program
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathone-column-template.php
43 lines (41 loc) · 1.3 KB
/
one-column-template.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
<?php /*Template Name: One-column-template */ ?>
<?php get_header(); ?>
<div class="container-fluid">
<div class="row">
<?php get_template_part("partials/hero"); ?>
</div>
</div>
<div class="container">
<div id="main-content" class="col-12">
<div class="row">
<div class="col-12 pt-4">
<h1 class="text-center"><?php the_title(); ?></h1>
</div>
</div>
<?php
// center
if (have_rows('left_column_content')):
echo '<div class="row">';
while (have_rows('left_column_content')) : the_row();
$type = get_sub_field('content_type');
get_template_part('partials/'.$type);
endwhile;
echo '</div>';
endif;
?>
</div>
<?php get_template_part("partials/upcoming-events") ?>
</div>
<?php
// show social sharing only if the page is not behind login
if( ! spouse_is_restricted_page()):
?>
<div class="row social-icon-bar">
<div class="col-6 mx-auto text-center my-4">
<span class="social-title"><?php dynamic_sidebar( 'social_title' ); ?></span>
<?php echo do_shortcode('[SHARING_PLUS]'); ?>
</div>
</div>
<?php endif; ?>
</main>
<?php get_footer(); ?>