-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-speakers.php
67 lines (54 loc) · 2.76 KB
/
single-speakers.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
/**
* This is the default full width page template
*/
get_header(); ?>
<div id="primary" class="content-area full-width">
<main id="main" class="site-main" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" class="speakers">
<div class="plenary">
<strong>Plenary: </strong>
<a href="<?php echo esc_url( $category_link ); ?>" title="<?php echo esc_attr( $category_name ); ?>"><?php echo get_the_term_list( $post->ID, 'plenaries', '', ', ' ); ?></a>
</div>
<div class="entry-content">
<figure class="single-speakers-thumb">
<?php the_post_thumbnail('speakers-thumb'); ?>
</figure>
<section class="speakers-info">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<div class="details">
<p class="speakers-org"><span class="the-label">Organisation</span><span class="the-field"><a href="<?php the_field('organisation_url'); ?>"><?php the_field('speakers_organisation'); ?></a></span></p>
<p class="speakers-role"><span class="the-label">Role</span><span class="the-field"><?php the_field('speakers_role'); ?></span></p>
<?php if (get_field('twitter_account_name')) : ?>
<p class="speakers-twitter"><span class="the-label"><i class="fa fa-twitter" aria-hidden="true"></i></span><span class="the-field"><a href="https://twitter.com/<?php the_field('twitter_account_name');?>" target="_blank">@<?php the_field('twitter_account_name'); ?></a></span></p>
<?php endif; ?>
<?php if (get_field('speakers_email')) : ?>
<p class="speakers-email"><span class="the-label"><i class="fa fa-envelope" aria-hidden="true"></i></span><span class="the-field"><a href="mailto:<?php the_field('speakers_email');?>" target="_blank"><?php the_field('speakers_email'); ?></a></span></p>
<?php endif; ?>
</div><!-- .details -->
</section>
<div class="speakers-bio">
<?php the_field('speakers_bio'); ?>
</div>
</div><!-- .entry-content -->
<!-- speaker's navigation -->
<?php
the_post_navigation( array(
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentysixteen' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Next post:', 'twentysixteen' ) . '</span> ' .
'<span class="post-title">%title</span>',
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentysixteen' ) . '</span> ' .
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentysixteen' ) . '</span> ' .
'<span class="post-title">%title</span>',
) );
?>
</article><!-- #post-## -->
<?php // End of the loop.
endwhile;
?>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>