-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-tv.php
47 lines (40 loc) · 1.27 KB
/
single-tv.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
<?php
get_header(); ?>
<?php do_action( 'sp_start_content_wrap_html' ); ?>
<div id="main" class="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
?>
<div class="post-format">
<?php
$video_url = get_post_meta($post->ID, 'sp_video_url', true);
if ( isset($video_url) && !empty($video_url) ) {
echo sp_add_video( $video_url );
}
?>
</div>
<header class="entry-header">
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
<div class="entry-meta"><?php sp_post_meta(); ?></div>
</header>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<?php if ( ot_get_option('social_share') != 'off' ) { get_template_part('library/contents/social-share'); } ?>
<?php if ( ot_get_option( 'related-posts' ) != '1' ) {
echo sp_get_related_posts( $post->ID, array('posts_per_page' => 3) );
} ?>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
endwhile;
?>
</div><!-- #main -->
<?php get_sidebar();?>
<?php do_action( 'sp_end_content_wrap_html' ); ?>
<?php get_footer(); ?>