-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-person.php
executable file
·67 lines (42 loc) · 1.66 KB
/
archive-person.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
<?php get_header(); ?>
<?php do_action('before_hero'); ?>
<section id="hero-container">
<div class="hero-wrapper">
<div class="hero-meta">
<div class="loop-meta archive-meta category-meta">
<p>Meet the <a href="<?php echo site_url('person/hosts/'); ?>">Hosts</a> and <a href="<?php echo site_url('person/guests/'); ?>">Guests</a> that make The Nexus incredible.</p>
</div>
</div>
<?php do_action('in_hero'); ?>
</div>
</section>
<?php do_action('after_hero'); ?>
<?php do_action('before_world'); ?>
<section id="world">
<div id="content-container">
<div class="content-wrapper">
<?php do_action('before_content'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post();
$person = Nexus_Person::factory(get_the_ID());
$cp_person = new Coprime_Person($person);
?>
<article id="item-<?php the_ID(); ?>" role="article" <?php post_class(); ?>>
<?php do_action('before_in_content'); ?>
<header class="content-header">
<div class="person-avatar"><?php echo $cp_person->get_avatar(100); ?></div>
<h2 class="person-name"><?php echo $cp_person->get_formatted_name('span'); ?></h2>
<div class="person-description">
<?php echo $cp_person->get_short_content(); ?>
</div>
<?php do_action('in_content_header'); ?>
</header>
<?php do_action('after_in_content'); ?>
</article>
<?php endwhile; endif; ?>
<?php get_template_part('partials/loop-pagination'); ?>
<?php do_action('after_content'); ?>
</div>
</div>
</section>
<?php do_action('after_world'); ?>
<?php get_footer(); ?>