-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
74 lines (49 loc) · 1.6 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Base template
*
* @package Equalize Digital Base Theme
* @author Equalize Digital
* @since 1.0.0
* @license GPL-2.0+
**/
get_header();
$container_class = null;
if ( get_field( 'post_format_style' ) === 'full-width' ) {
$container_class .= ' site-main-article-content__full-width';
}
$layout_style = get_field( 'post_format_style' );
if ( empty( $layout_style ) ) {
$layout_style = 'standard';
}
$container_class .= ' post_type_layout_' . $layout_style . ' ';
$hide_page_header = get_field( 'hide_page_header' );
$side_container_class = '';
if ( get_field( 'post_format_style' ) !== 'full-width' ) {
$side_container_class .= 'inner-hero-alternate-style';
}
if ( $hide_page_header ) {
$container_class .= ' post_type_layout_hide_page_header ';
}
tha_content_before();
echo '<div class="' . esc_attr( $container_class ) . esc_attr( eqd_class( 'content-area', 'wrap', apply_filters( 'eqd_content_area_wrap', true ) ) ) . '">';
tha_content_wrap_before();
tha_page_header();
echo '<main class="site-main" role="main">';
tha_single_header();
echo '<div class="side-main-article-container ' . esc_attr( $side_container_class ) . '">';
tha_content_before_container();
echo '<div class="site-main-article-content ' . esc_attr( $container_class ) . '">';
tha_content_top();
tha_single_fullwidth();
tha_content_loop();
tha_content_bottom();
echo '</div>';
tha_single_sidebar();
echo '</div>';
tha_single_page_end();
echo '</main>';
tha_content_wrap_after();
echo '</div>';
tha_content_after();
get_footer();