-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspeakers.php
More file actions
51 lines (49 loc) · 2.08 KB
/
Copy pathspeakers.php
File metadata and controls
51 lines (49 loc) · 2.08 KB
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
<?php
/*
* Template Name: Speakers
*
* @package WordPress
* @subpackage Tyler
*/
?>
<?php get_header() ?>
<?php while (have_posts()) : the_post(); ?>
<div class="heading">
<div class="container">
<h1><?php the_title(); ?></h1>
</div>
</div>
<div class="container">
<p>
<?php the_content(); ?>
</p>
<?php for ($i = 0; $i < 3; $i++) { ?>
<hr/>
<h2><?php echo get_post_meta(get_the_ID(), 'speakers_full_title_' . ($i + 1), true); ?></h2>
<?php
$speakers_full_order = get_post_meta(get_the_ID(), 'speakers_full_order_' . ($i + 1), true);
if (!empty($speakers_full_order)) {
$speakers_full_order = explode(',', $speakers_full_order);
?>
<div class="speakers">
<?php foreach ($speakers_full_order as $speaker_id) { ?>
<?php $speaker = get_post($speaker_id); ?>
<div class="speaker <?php if (get_post_meta($speaker_id, 'speaker_keynote', true) == 1) echo ' featured'; ?>">
<a href="<?php echo get_permalink($speaker_id); ?>" class="speaker-inner">
<span class="photo">
<?php echo get_the_post_thumbnail($speaker_id, 'tyler-speaker', array('title' => get_the_title($speaker_id))); ?>
</span>
<span class="name"><span class="text-fit"><?php echo get_the_title($speaker_id); ?></span></span>
<span class="description"><?php echo $speaker->post_excerpt; ?></span>
<span class="view">
<?php _e('View profile', 'tyler'); ?> <i class="icon-angle-right"></i>
</span>
</a>
</div>
<?php } ?>
</div>
<?php } ?>
<?php } ?>
</div>
<?php endwhile; // end of the loop. ?>
<?php get_footer() ?>