-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-project copy.php
45 lines (37 loc) · 1.89 KB
/
content-project copy.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
<div class="row">
<div class="entry-meta span4">
<div class="except"><?php the_excerpt(); ?></div>
<div class="client">Client: <?php echo get_the_term_list ( $post->ID, 'client', '', ', ','' );?></div>
<div class="slill">Skill Type: <?php echo get_the_term_list ( $post->ID, 'skill', '', ', ','' );?></div>
<div class="project-tyle">Project Type: <?php echo get_the_term_list ( $post->ID, 'project-type', '', ', ','' );?></div>
<?php edit_post_link( __( 'Edit', 'spottsfield' ), '<span class="btn edit-link">', '</span>' ); ?>
<hr>
<nav id="nav-single">
<span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="btn"><span class="meta-nav">←</span> Previous</span>', 'spottsfield' ) ); ?></span>
<span class="nav-next"><?php next_post_link( '%link', __( '<span class="btn">Next <span class="meta-nav">→</span></span>', 'spottsfield' ) ); ?></span>
</nav>
<!-- /end #nav-single -->
</div>
<!-- /end entry-meta -->
<div class="entry-content span8">
<?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><hr>";
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><hr>";
elseif ( has_post_thumbnail() ):
the_post_thumbnail('blog-feature');
else:
// no image
endif;
?>
<?php the_excerpt(); ?>
<?php the_post(); ?>
<?php the_content(); ?>
</div>
<!-- /end entry-content -->
</div>
<!-- /end row -->