-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-people.php
133 lines (106 loc) · 3.05 KB
/
page-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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
/*
Template Name: People Page
*/
?>
<?php get_header(); ?>
<?
// $args = array(
// 'theme_location' => 'people-sub-nav',
// 'container' => 'div',
// 'container_class' => 'people-sub-nav',
// 'menu_class' => 'menu',
// 'echo' => true,
// 'items_wrap' => '<ul id=%1$s class=%2$s>%3$s</ul>',
// );
// wp_nav_menu( $args );
?>
<section id="main_section">
<section id="about_intro">
<?php while (have_posts()) : the_post(); ?>
<?php the_post_thumbnail('inline-large'); ?>
<article id="intro_text">
<h3>
<?php
$short_description->the_field('description');
$short_description->the_value();
?>
</h3>
</article><!-- intro_text -->
</section><!-- #about_intro -->
<section id="main_description">
<h3>The UCLA Game Lab Team ~</h3>
<?php the_content(); ?>
</section><!-- main_description -->
<?php endwhile; ?>
<section id="bio_spots">
<?php
$args = array(
'post_type' => 'person',
'order' => 'ASC',
);
$loop = new WP_Query($args);
$count = 1;
while ( $loop->have_posts() ) : $loop->the_post();
if($count%3==0){ ?>
<article <?php post_class('bio_article last'); ?>>
<?php } else { ?>
<article <?php post_class('bio_article'); ?>>
<?php } ?>
<?php the_post_thumbnail('featured'); ?>
<div class="bio_article_text">
<?php the_title( '<h3>', '</h3>' ); ?>
<p>
<?php
$short_description->the_field('description');
$short_description->the_value();
?>
</p>
</div><!-- bio_article_text -->
<div class="badges">
<?
// $lab_employee->the_field('job_title');
$my_meta = $lab_employee->the_meta();
if($my_meta['job_title'] != ""){
?>
<div class="bio_badge blue">
<p>Game Lab <? echo $my_meta['job_title']; ?></p>
</div><!-- lab_title -->
<? } ?>
<div class="bio_badge yellow">
<p>
<?
$person_department->the_field('person_department');
$person_department->the_value();
?>
<?
$person_title->the_field('person_title');
$person_title->the_value();
?>
</p>
</div><!-- bio_title -->
<?
$i=1;
$my_meta = $link_out->the_meta();
foreach($my_meta['out_links'] as $link)
{
if($i%2==0){
?>
<div class="bio_badge yellow">
<? }else{ ?>
<div class="bio_badge blue">
<? } ?>
<a href="<? echo $link['link']; ?>" ><p><? echo $link['title']; ?></p></a>
</div><!-- bio_links -->
<?
$i++;
}
?>
</div><!--badges-->
</article><!-- bio_article -->
<?php
$count ++;
endwhile; ?>
</section><!-- bio_spots -->
</section><!-- main_section -->
<?php get_footer(); ?>