-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.php
92 lines (53 loc) · 2.49 KB
/
page.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* @author madars.bitenieks
* @copyright 2014
*/
get_header();
$mt_layout = get_post_meta(get_the_ID(), "layout_positions", true);
$mt_float_layout = "";
$mt_float_sidebar = "";
if ($mt_layout == "left") {
$mt_float_layout = "floatright";
$mt_float_sidebar = "floatleft";
}
if(function_exists( 'tribe_is_event' ) ) {
if (tribe_is_event() && !tribe_is_day() && !is_single()) {
$mt_layout = "full";
}
}
$more = 0;
$mt_content = get_post_meta(get_the_ID(), "mt_content_on", true);
if ($mt_content == "" or $mt_content == "yes") { ?>
<?php }
if ($mt_layout == "full") {
?>
<div class="row">
<div class="col-md-12">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); $builder69_allowed_html_array = array('a' => array( 'href' => array(), 'title' => array() ), 'br' => array(), 'i' => array('class' => array()), 'em' => array(), 'strong' => array(), 'div' => array('class' => array()), 'span' => array('class' => array()));?>
<?php the_content( wp_kses(__( '<div class="reed_more">Reed More »</div><div></div>', 'builder69' ), $builder69_allowed_html_array ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . esc_html__( 'Pages:', 'builder69' ), 'after' => '</div>' ) ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div>
</div>
<?php } else { ?>
<div class="row">
<div class="col-md-<?php if ($mt_layout == "full" or $mt_layout == "") { echo "12 "; } else { echo "8 "; } echo sanitize_html_class($mt_float_layout); ?> ">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); global $builder69_allowed_html_array; ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content( wp_kses(__( '<div class="reed_more">Reed More »</div><div></div>', 'builder69' ), $builder69_allowed_html_array ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . esc_html__( 'Pages:', 'builder69' ), 'after' => '</div>' ) ); ?>
<div class="clear"></div>
</div><!--END POST -->
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div>
<?php if ($mt_layout == "full" or $mt_layout == "") {} else { ?>
<div class="col-md-4 <?php echo sanitize_html_class($mt_float_sidebar); ?> "><?php get_sidebar(); ?></div>
<?php } ?>
</div>
<?php
}
?>
<?php get_footer(); ?>