-
Notifications
You must be signed in to change notification settings - Fork 5
/
template-team.php
79 lines (67 loc) · 2.03 KB
/
template-team.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
77
78
79
<?php
/**
* Template Name: Team Members
*
* @package WP-Bootstrap
* @subpackage Default_Theme
* @since WP-Bootstrap 0.7
*
* Last Revised: September 9, 2012
*
*
*
* @package WordPress
* @subpackage WP-Bootstrap
* @since WP-Bootstrap 0.6
*/
get_header();
if (have_posts() ) ;?>
<section id="body" class="team-archive">
<div class="container">
<div class="row">
<div class="span8 content">
<header class="subhead" id="overview">
<h1><?php the_title();?></h1>
<?php the_post(); the_content(); ?>
<hr/>
<?php
$args = array( 'post_type' => 'team', 'posts_per_page' => 10, 'orderby' => 'menu_order', 'order' => 'ASC' );
$loop = new WP_Query( $args );
?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php
$name = get_the_title();
$title = get_post_meta($post->ID, 'info_role', true);
$mug = theme_get_image( get_post_meta($post->ID, 'info_mug', true), 170, 170, true, $retina );
$shortbio = get_post_meta($post->ID, 'info_short_bio', true);
?>
<div <?php post_class(); ?>>
<div class="row-fluid">
<div class="span4">
<?php if ($mug != ''){ ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><img id="mugshot" src="<?php echo $mug; ?>" alt="<?php the_title(); ?> icon" width="170" height="170" /></a>
<?php } ?>
</div>
<div class="span8">
<h2 class="archive-post-header">
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><?php the_title();?></a>
</h2>
<?php if ($title != ''){ ?>
<p class="title"><?php echo $title ?></p>
<?php } ?>
<?php if ($shortbio != ''){ ?>
<p class="shortbio"><?php echo $shortbio ?></p>
<?php } ?>
<p class="moreinfo"><a href="<?php the_permalink(); ?>"><?php _e( 'More Info', 'appifywp' );?></a></p>
</div>
</div>
</div><!-- /.post_class -->
<hr/>
<?php endwhile; ?>
<?php appifywp_content_nav('nav-below');?>
</div><!-- /.span8 -->
<?php get_sidebar(); ?>
</div><!-- .row-->
</div><!-- .container -->
</section>
<?php get_footer(); ?>