-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontent-video.php
More file actions
84 lines (62 loc) · 2.4 KB
/
content-video.php
File metadata and controls
84 lines (62 loc) · 2.4 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/* Call globals. */
global $themename, $themeslug, $options;
/* End globals. */
/* Define variables. */
$share = $options[$themeslug.'_hide_share'];
$tags = $options[$themeslug.'_hide_tags'];
$comments = $options[$themeslug.'_hide_comments'];
$excerpts = $options[$themeslug.'_show_excerpts'];
$showfblike = $options[$themeslug.'_show_fb_like'];
$showgplus = $options[$themeslug.'_show_gplus'];
$root = get_template_directory_uri();
/* End define variables. */
?>
<div class="post_container">
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class ="format-icon"><img src="<?php echo $root ;?>/images/formats/video.png" height="50px" width="50px" alt="status"/></div><h2 class="posts_title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php get_template_part('meta', 'index' ); ?>
<?php
if ( has_post_thumbnail()) {
echo '<div class="featured-image">';
echo '<a href="' . get_permalink($post->ID) . '" >';
the_post_thumbnail();
echo '</a>';
echo '</div>';
}
?>
<div class="entry" <?php if ( has_post_thumbnail()) { echo 'style="min-height: 115px;" '; }?>>
<?php
if ($excerpts == '1' ) {
the_excerpt();
}
else {
the_content();
}
?>
</div><!--end entry-->
<?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>
<?php edit_post_link('Edit', '<p>', '</p>'); ?>
<?php if ($showgplus == "1"):?>
<div class="gplusone" >
<g:plusone size="standard" count="true"></g:plusone>
</div >
<?php endif;?>
<?php if ($showfblike == "1"):?>
<div id="fb">
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink() ?>&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:330px; height:28px"></iframe>
</div>
<?php endif;?>
<!--end fb-->
<div class="tags">
<?php if ($tags != '1'):?>
<?php the_tags('Tags: ', ', ', '<br />'); ?>
<?php endif;?>
</div><!--end tags-->
<div class="postmetadata">
<?php if ($share != '1'):?>
<?php get_template_part('share', 'index' ); ?>
<?php endif;?>
</div><!--end postmetadata-->
</div><!--end post_class-->
</div><!--end post_container-->