-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle-staff.php
More file actions
57 lines (43 loc) · 1.69 KB
/
Copy pathsingle-staff.php
File metadata and controls
57 lines (43 loc) · 1.69 KB
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
<?php
/**
* Segment Post Template
*/
get_header(); ?>
<div class="whatpageisthis">single-staff.php</div>
<div class="container">
<div class="row">
<main class="span8" id="content">
<h1 class="inner-heading"><?php the_title();?></h1>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row-fluid program-item">
<div class="span3">
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail("staff-thumbnail"); ?>
<span class="featured-caption media-object"><?php echo get_post( get_post_thumbnail_id() )->post_excerpt ?></span>
<?php
} else {
echo '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/img/thumbnail-default.png" />';
}
?>
</div>
<div class="span9">
<?php
if( get_post_meta($post->ID, 'staff_role', true !='') ) {
echo '<p class="staff-role">' . get_post_meta($post->ID, 'staff_role', TRUE) . '</p>';
}
if( get_post_meta($post->ID, 'staff_email', true !='') ) {
echo '<p class="staff-email">' . get_post_meta($post->ID, 'staff_email', TRUE) . '</p>';
}
if( get_post_meta($post->ID, 'staff_phone', true !='' )) {
echo '<p class="staff-phone">' .get_post_meta($post->ID, 'staff_phone', TRUE) . '</p>';
}
the_content();
?>
</div><!-- span9-->
</div><!-- row-fluid-->
<?php endwhile; ?>
</main><!-- #content span8 -->
<?php get_sidebar(); // sidebar 1 ?>
</div><!-- row -->
</div><!-- container -->
<?php get_footer(); ?>