-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-2-column-right.php
76 lines (53 loc) · 1.27 KB
/
page-2-column-right.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
<?php
/*
Template Name: Generic 2-column (Right Sidebar)
*/
get_header();
?>
<?php the_showcase(); ?>
<div class="page-title group">
<div class="wrap">
<div class="three-quarter">
<h1><?php the_title() ?></h1>
</div>
<div class="quarter"> </div>
</div>
</div>
<div class="wrap group two-column">
<div class="third sidebar right">
<?php
// show the sidebar menus.
left_menu_display();
// only show the widget area of they haven't populated the box.
if ( !has_cmb2_value('left_content') ) {
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-generic') ) : ?><!-- no sidebar --><?php endif;
}
?>
</div>
<div class="two-third">
<?php
while ( have_posts() ) : the_post(); ?>
<div class="entry-content">
<?php if ( has_cmb2_value('left_content') ) { ?>
<div class="aux-box">
<?php show_cmb2_wysiwyg_value('left_content'); ?>
</div>
<?php } ?>
<?php the_content(); ?>
</div>
<?php
endwhile;
the_tab_box();
the_accordions();
?>
</div>
<div class="content-wide">
<?php the_wide_content(); ?>
</div>
</div>
<?php the_phototiles(); ?>
<?php the_buttons(); ?>
<div class="wrap">
<?php the_photo_grid(); ?>
</div>
<?php get_footer(); ?>