forked from thicolares/TEDxTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-talk.php
49 lines (48 loc) · 1.84 KB
/
single-talk.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
<?php get_header(); ?>
<div class="container spacing-top">
<div class="row">
<div class="col-md-9">
<div class="post-content">
<?php if (have_posts()): while (have_posts()) : the_post(); ?>
<?php
$talk = get_post();
$video_id = get_post_meta($talk->ID, '_talk_video_id', true);
?>
<div class="page-header">
<h2><?php the_title(); ?>
<small><?= $excerpt ?></small>
</h2>
</div>
<?php if (!empty($video_id)): ?>
<div class="feature-image">
<div class="video-container">
<iframe width="100%" height="100%" src="//www.youtube.com/embed/<?= $video_id ?>" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-6"></div>
<div class="col-md-6">
<div class="pull-right">
<span class="social social-facebook">
<div class="fb-like" data-href="<?= get_permalink($talk->ID); ?>" data-layout="button" data-action="like" data-show-faces="true" data-share="true"></div>
</span>
<span class="social social-twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-via="<?= get_theme_mod('twitter_account') ?>">Tweet</a>
</span>
</div>
</div>
</div>
<div class="user-generated-content">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
</div>
</div>
<div class="col-md-3">
<?php get_sidebar('talk'); ?>
</div>
<!-- .col-md-3 -->
</div>
</div>
<?php get_footer(); ?>