-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
73 lines (62 loc) · 2.28 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
<?php
get_header();
$page_options = mymedi_get_page_options();
$extra_class = '';
$page_column_class = mymedi_page_layout_columns_class($page_options['ts_page_layout']);
$show_breadcrumb = ( !is_home() && !is_front_page() && $page_options['ts_show_breadcrumb'] );
$show_page_title = ( !is_home() && !is_front_page() && $page_options['ts_show_page_title'] );
if( $show_breadcrumb || $show_page_title ){
$extra_class = 'show_breadcrumb_'.mymedi_get_theme_options('ts_breadcrumb_layout');
}
mymedi_breadcrumbs_title($show_breadcrumb, $show_page_title, get_the_title());
?>
<!-- Page slider -->
<?php if( $page_options['ts_page_slider'] && $page_options['ts_page_slider_position'] == 'before_main_content' ): ?>
<div class="top-slideshow">
<div class="top-slideshow-wrapper">
<?php mymedi_show_page_slider(); ?>
</div>
</div>
<?php endif; ?>
<div class="page-container <?php echo esc_attr($extra_class) ?>">
<!-- Left Sidebar -->
<?php if( $page_column_class['left_sidebar'] ): ?>
<aside id="left-sidebar" class="ts-sidebar <?php echo esc_attr($page_column_class['left_sidebar_class']); ?>">
<?php if( is_active_sidebar($page_options['ts_left_sidebar']) ): ?>
<?php dynamic_sidebar($page_options['ts_left_sidebar']); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
<!-- Main Content -->
<div id="main-content" class="<?php echo esc_attr($page_column_class['main_class']); ?>">
<div id="primary" class="site-content">
<?php
if( class_exists('WooCommerce') ){
wc_print_notices();
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if( have_posts() ) the_post();
the_content();
wp_link_pages();
?>
</article>
<?php
/* If comments are open or we have at least one comment, load up the comment template. */
if ( comments_open() || get_comments_number() ) :
comments_template( '', true );
endif;
?>
</div>
</div>
<!-- Right Sidebar -->
<?php if( $page_column_class['right_sidebar'] ): ?>
<aside id="right-sidebar" class="ts-sidebar <?php echo esc_attr($page_column_class['right_sidebar_class']); ?>">
<?php if( is_active_sidebar($page_options['ts_right_sidebar'])): ?>
<?php dynamic_sidebar($page_options['ts_right_sidebar']); ?>
<?php endif; ?>
</aside>
<?php endif; ?>
</div>
<?php get_footer(); ?>