-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-person.php
55 lines (46 loc) · 1.38 KB
/
single-person.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
<?php
get_header();
?>
<?php the_large_title(); ?>
<?php the_showcase(); ?>
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
global $post;
?>
<div id="content" class="wrap group content-area content-two-column <?php print $color; ?> content-style" role="main">
<?php if ( !empty( $post->post_excerpt ) ) { ?>
<div class="content-header">
<h2><?php the_excerpt(); ?></h2>
</div>
<?php } ?>
<div class="quarter sidebar right person-sidebar">
<img src="<?php print get_the_post_thumbnail_url( null, 'square' ) ?>" />
<h5>Phone:</h5>
<p class="person-value"><?php show_cmb_value( 'person_phone' ); ?></p>
<?php if ( has_cmb_value( 'person_phone_tf') ) { ?>
<h5>Toll Free:</h5>
<p class="person-value"><?php show_cmb_value( 'person_phone_tf' ); ?></p>
<?php } ?>
<?php if ( has_cmb_value( 'person_email') ) { ?>
<h5>Email:</h5>
<p class="person-value"><a href="mailto:<?php show_cmb_value( 'person_email' ); ?>"><?php show_cmb_value( 'person_email' ); ?></a></p>
<?php } ?>
</div>
<div class="half right">
<?php
the_content();
the_accordion();
?>
</div>
<div class="quarter sidebar right">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('page-sidebar-about') ) : ?><!-- no sidebar --><?php endif; ?>
</div>
</div><!-- #content -->
<?php
endwhile;
endif;
?>
<?php
get_footer();
?>