-
Notifications
You must be signed in to change notification settings - Fork 0
/
loop-presenter_archive.php
39 lines (30 loc) · 1.34 KB
/
loop-presenter_archive.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
<div id="posts-container" class="grid_16">
<div id="posts" class="box">
<h2>Presenters</h2>
<?php
$presenter_args = array(
'post_type' => ONA12_Presenter::post_type,
'posts_per_page' => 150,
'orderby' => 'title',
'order' => 'asc',
);
$presenters = new WP_Query( $presenter_args ); ?>
<?php if ( $presenters->have_posts() ): ?>
<?php while( $presenters->have_posts() ): $presenters->the_post(); ?>
<div class="single-presenter">
<div class="presenter-avatar">
<a href="<?php the_permalink(); ?>"><?php echo ONA12_Presenter::get_avatar( 'ona12-medium-tall-avatar' ); ?></a>
</div>
<div class="presenter-details">
<h3><a href="<?php the_permalink(); ?>"><?php echo ONA12_Presenter::get( 'name' ); ?></a></h3>
<p class="presenter-affiliation"><?php echo implode( ',<br />', array( ONA12_Presenter::get('title'), ONA12_Presenter::get('organization') ) ); ?></p>
<?php if ( ONA12_Presenter::get( 'twitter' ) ) : ?>
<p class="presenter-twitter"><a href="<?php echo esc_url( 'http://twitter.com/' . ONA12_Presenter::get( 'twitter' ) ); ?>">@<?php echo ONA12_Presenter::get( 'twitter' ); ?></a></p>
<?php endif; ?>
</div>
</div>
<?php endwhile; ?>
<div class="clear-both"></div>
<?php endif; ?>
</div><!-- #posts -->
</div><!-- #posts-container -->