-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-newsletters.php
57 lines (41 loc) · 1.15 KB
/
single-newsletters.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
<?php
get_header();
if ( have_posts() ) {
while ( have_posts() ) { the_post();
get_template_part( 'inc/breadcrumbs' );
$override = get_field( 'title_override' );
$title = $override ? $override : get_the_title();
?>
<div class="twocol">
<div class="twocol-side">
<h1><?= wp_kses_post( $title ); ?></h1>
<?php
if ( have_rows( 'sidebar_blocks' ) ) {
while ( have_rows( 'sidebar_blocks' ) ) { the_row();
get_template_part( 'inc/sidebar-block', get_row_layout() );
}
}
?>
</div>
<div class="twocol-main" id="page-content">
<?php
# generally not used, but present for code injection
the_content();
if ( have_rows( 'main_blocks' ) ) {
while ( have_rows( 'main_blocks' ) ) { the_row();
get_template_part( 'inc/block', get_row_layout() );
}
}
$globalPromoBox = get_field( 'global_promo_box', 'options' );
if ( $globalPromoBox['enabled'] && ! get_field( 'disable_global_promo_box' ) ) {
get_template_part( 'inc/block', 'promo_box', $globalPromoBox );
}
?>
</div>
</div>
<?php
}
get_template_part( 'inc/backtotop' );
}
get_footer();
?>