-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollaborators.php
56 lines (49 loc) · 1.54 KB
/
collaborators.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
<?php
/*
Template Name: Collaborator Directory
*/
get_header();
$params = array(
'limit' => 0 // Return all rows
);
$collaborator = pods('collaborator', $params);
?>
<div class="wrap">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="collaborators-container">
<?php
if ( 0 < $collaborator->total() ): while ($collaborator->fetch()):
$name = $collaborator->display('full_name');
$uni = $collaborator->display('associated_university');
$city = $collaborator->display('city');
$country = $collaborator->display('country');
$bio = $collaborator->display('bio');
$portrait = $collaborator->display('portrait');
$website = $collaborator->display('website');
?>
<div class="collaborator">
<div class="picture">
<img src="<?php echo $portrait ?>" alt="">
</div>
<div class="namepanel">
<h3><?php echo $name ?></h3>
<p><?php echo $uni ?></p>
</div>
<button class="open">Bio</button>
<div class="hidden-panel">
<div class="hidden-content">
<div class="bio">
<p><?php echo $bio ?></p>
</div>
<button class="close">Close</button>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
</div><!-- .wrap -->
<?php get_footer();