-
Notifications
You must be signed in to change notification settings - Fork 1
/
template-speakers.php
59 lines (52 loc) · 1.52 KB
/
template-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
<?php
/**
* @deprecated (template name was Speakers)
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WCBS
* @since WCBS 1.0
*/
$speakers = wcb_speaker_query();
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<div class="callout lead"><?php
if ( have_posts() ):
the_post();
the_content();
endif; ?>
</div>
<div class="cpt-loop speaker-gravatar-list clearfix"><?php
while ( wcb_have_speakers() ):
wcb_the_speaker();
$href = '#' . esc_attr( wcb_get_speaker_slug() );
$title = esc_attr( get_the_title() );
echo "<a href='$href' title='$title'>";
echo wcb_get_speaker_gravatar( 48 );
echo '</a>';
endwhile;
wcb_rewind_speakers();
?></div>
<div class="cpt-loop speakers"><?php
while ( wcb_have_speakers() ):
wcb_the_speaker();
?>
<div id="<?php echo esc_attr( wcb_get_speaker_slug() ); ?>" <?php post_class( 'speaker clearfix' ); ?>>
<h3 class="entry-title speaker-name"><?php the_title(); ?></h3>
<div class="entry-content speaker-bio"><?php
echo wcb_get_speaker_gravatar( 102 );
the_content(); ?>
</div>
</div>
<?php
endwhile;
?>
</div><!-- .cpt-loop -->
</div><!-- #content -->
</div><!-- #primary .site-content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>