-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-film.php
36 lines (30 loc) · 1.3 KB
/
content-film.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
<div class="row film">
<div class="entry-video firstImg span8 pull-right">
<?php // checks to see if any videos are associated, if not displays feature image
$custom = get_post_custom($post->ID);
$vimeo = $custom["vimeo"][0];
$youtube = $custom["youtube"][0];
if($vimeo != NULL):
echo "<div class='video fitvid'><iframe src='http://player.vimeo.com/video/" . $vimeo . "?portrait=0' width='770' height='433' frameborder='0'></iframe></div>";
elseif($youtube != NULL): // Note the combination of the words.
echo "<div class='video fitvid'><iframe title='YouTube video player' width='770' height='433' src='http://www.youtube.com/embed/" . $youtube . "' frameborder='0' allowfullscreen></iframe></div>";
else:
// no video
endif;
?>
<hr>
<div class="entry-content row">
<div class="span8">
<?php the_post(); ?>
<?php the_content(); ?>
</div>
</div>
</div>
<div class="entry-meta span4">
<?php if ( has_post_thumbnail()) {$full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
echo '<a class="fancybox" href="' . $full_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >'; the_post_thumbnail('large', array('class' => 'featured')); echo '</a>'; }
?>
</div>
<!-- /end entry-meta -->
</div>
<!-- /end row -->