-
Notifications
You must be signed in to change notification settings - Fork 2
/
single-woo_video.php
127 lines (88 loc) · 4.32 KB
/
single-woo_video.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php get_header(); ?>
<?php global $woo_options; ?>
<?php if (have_posts()) : the_post(); ?>
<div id="feat-title" class="col-full">
<h1 class="title"><?php the_title(); ?></h1>
</div>
<div id="feat-video" class="col-full">
<?php if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) { woo_breadcrumbs(); } ?>
<div class="video fl">
<?php echo woo_embed('width=600&height=337&class=single-video'); ?>
</div>
<div class="meta fr">
<div class="video-excerpt entry">
<?php the_excerpt(); ?>
</div>
<?php woo_post_meta(); ?>
<?php if ( $woo_options['woo_ad_panel'] == 'true' ) { ?>
<div id="adpanel fr">
<?php
if ( $woo_options['woo_ad_panel_adsense'] != '' ) {
echo stripslashes($woo_options['woo_ad_panel_adsense']);
} else {
?>
<a href="<?php echo $woo_options['woo_ad_panel_url']; ?>"><img src="<?php echo $woo_options['woo_ad_panel_image']; ?>" width="234" height="60" alt="advert" /></a>
<?php } ?>
</div><!-- /#adpanel -->
<?php } ?>
</div>
<div class="clear"></div>
</div><!-- #feat-video -->
<div id="content-wrap">
<div id="content" class="col-full">
<div class="col-left">
<div id="main">
<div <?php post_class('post'); ?>>
<?php if ( $woo_options['woo_thumb_single'] == 'true' && ! woo_embed( '' ) ) woo_image('width='.$woo_options['woo_single_w'].'&height='.$woo_options['woo_single_h'].'&class=thumbnail '.$woo_options['woo_thumb_single_align']); ?>
<div class="entry">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
</div>
</div><!-- .post -->
<?php if ( $woo_options['woo_post_author'] == 'true' ) { ?>
<div id="post-author">
<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div>
<div class="profile-content">
<h3 class="title"><?php printf( esc_attr__( 'About %s', 'woothemes' ), get_the_author() ); ?></h3>
<?php the_author_meta( 'description' ); ?>
<div class="profile-link">
<a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
<?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'woothemes' ), get_the_author() ); ?>
</a>
</div><!-- #profile-link -->
</div><!-- .post-entries -->
<div class="fix"></div>
</div><!-- #post-author -->
<?php } ?>
<?php
$comm = $woo_options['woo_comments'];
if ( ( $comm == 'post' || $comm == 'both' ) ) {
comments_template('', true);
}
?>
<?php $original_post = $post; /* Save the original post data to make sure we display it correctly after related posts. */ ?>
<div class="related-videos">
<?php
// Custom related videos.
echo '<h3 class="title">' . __( 'Related Videos', 'woothemes' ) . '</h3>' . "\n" . do_shortcode( '[related_posts_custom limit="3" image="180" height="114" post_type="woo_video"]' )
?>
<div class="fix"></div>
</div><!-- /.related-videos -->
<?php $post = $original_post; /* Make sure the correct post is used to display the comments. */ ?>
<?php woo_subscribe_connect(); ?>
<div id="post-entries">
<div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">←</span> %title' ); ?></div>
<div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">→</span>' ); ?></div>
<div class="fix"></div>
</div><!-- #post-entries -->
</div><!-- #main -->
</div><!-- /.col-left -->
<?php else: ?>
<div class="post">
<p><?php _e('Sorry, no posts matched your criteria.', 'woothemes'); ?></p>
</div><!-- .post -->
<?php endif; ?>
<?php get_sidebar(); ?>
</div><!-- #content -->
</div><!-- /#content-wrap -->
<?php get_footer(); ?>