-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-people.php
executable file
·73 lines (65 loc) · 2.38 KB
/
single-people.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
/**
* The Template for displaying all single posts
*/
get_header();
$education = get_cmb_value( "faculty_education" );
$courses = get_cmb_value( "faculty_courses" );
?>
<div class="page-header" style="background-image: url(<?php bloginfo('template_url') ?>/img/bg-header.webp);">
<div class="page-header-overlay"></div>
<div class="page-header-content">
<div class="breadcrumbs">
<?php if ( has_term( 'admission-counselor', 'people_cat' ) ) { ?>
<a href="/admission/apply/admission-counselors/">Admission Counselors</a> »
<?php } else { ?>
<a href="/academics/faculty/">Faculty & Staff</a> »
<?php } ?>
</div>
<h1 class="page-title"><?php the_title(); ?></h1>
</div>
</div>
<div class="two-column bio">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
?>
<div class="sidebar">
<?php the_post_thumbnail() ?>
<div class="person-info">
<div class="person-info-inner">
<h2><?php the_title(); ?></h2>
<h4 class="person-title"><?php print get_cmb_value( "person_title" ); ?></h4>
<p><a href="mailto:<?php print get_cmb_value( "person_email" ); ?>"><?php print strtolower( get_cmb_value( "person_email" ) ); ?></a></p>
<p><?php print get_cmb_value( "person_phone" ); ?></p>
<?php if ( has_cmb_value( "person_office" ) ) { ?><p>Office: <?php print get_cmb_value( "person_office" ); ?></p><?php } ?>
<?php if ( has_cmb_value( "person_website" ) ) { ?><p><a href='<?php show_cmb_value( "person_website" ) ?>' target='_blank'>Website</a></p><?php } ?>
<?php if ( has_cmb_value( "person_publications_pdf" ) ) { ?><p class="cv-link"><a href="<?php show_cmb_value( "person_publications_pdf" ); ?>" class="btn red-dark">View Publications</a></p><?php } ?>
<?php if ( has_cmb_value( "person_cv" ) ) { ?><p class="cv-link"><a href="<?php show_cmb_value( "person_cv" ); ?>" class="btn red-dark">View CV/Resume</a></p><?php } ?>
</div>
</div>
</div>
<div class="right-column">
<div class="box white">
<h2>Meet <?php the_title(); ?></h2>
<?php the_excerpt(); ?>
</div>
<hr class="no-mobile" />
<?php
if ( has_icon_showcase() ) {
the_icon_showcase();
print '<hr class="no-mobile" />';
}
?>
<div class="person-content">
<?php the_content(); ?>
</div>
</div>
<?php
endwhile;
endif;
?>
</div><!-- #primary -->
<?php
get_footer();
?>