-
Notifications
You must be signed in to change notification settings - Fork 1
/
single-speakers.php
63 lines (46 loc) · 2.06 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
<?php get_header(); ?>
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class() ?> id="post-<?php the_ID(); ?>">
<header class="row">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="row">
<aside class=" four columns speakerDetails">
<div id="speakerImgWrapper">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail('speaker_full');
}
?>
</div>
<?php
$speaker_twitterID = get_post_meta($post->ID, '_tedxhongyadong_speaker_twitterID_value', true);
$speaker_email = get_post_meta($post->ID, '_tedxhongyadong_speaker_email_value', true);
$speaker_website = get_post_meta($post->ID, '_tedxhongyadong_speaker_website_value', true);
if ($speaker_twitterID) : ?>
<p><strong>新浪微博:</strong> <a href="http://weibo.com/<?php echo $speaker_twitterID ?>"> <?php echo $speaker_twitterID ?></a><br />
<?php endif; ?>
<?php if ($speaker_email) : ?>
<strong>Email:</strong> <a href="mailto:<?php echo $speaker_email ?>"><?php echo $speaker_email ?></a><br />
<?php endif; ?>
<?php if ($speaker_website) : ?>
<strong>Website:</strong> <a href="<?php echo $speaker_website ?>"><?php echo $speaker_website ?></a>
<?php endif; ?>
<?php if ($speaker_twitterID || $speaker_email || $speaker_website) : ?>
</p>
<?php endif; ?>
</aside>
<div class="eight columns entry-content">
<?php the_content(); ?>
<?php if (get_post_meta($post->ID, '_tedxhongyadong_speaker_tedtalk_value', true)) : ?>
<div class="video_wrapper">
<div class="video_container">
<?php echo get_post_meta($post->ID, '_tedxhongyadong_speaker_tedtalk_value', true) ?>
</div>
</div>
<?php endif; ?>
</div> <!-- entry-content -->
</div> <!-- row -->
</article>
<?php endwhile; // End the loop ?>
<?php get_footer(); ?>