-
Notifications
You must be signed in to change notification settings - Fork 1
/
single-videos.php
executable file
·44 lines (31 loc) · 1.23 KB
/
single-videos.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
<?php
/*
This is the custom post type single template.
For - Video detail
*/
get_header(); ?>
<div id="content">
<div id="inner-content" class="row clearfix">
<div id="main" class="large-9 medium-12 columns first clearfix" role="main">
<?php if ( current_theme_supports( 'breadcrumb-trail' )) breadcrumb_trail( array( 'separator' => '»' ) ); ?>
<?php if (have_posts()) :
while (have_posts()) : the_post();
get_template_part( 'partials/content', 'single-video' );
endwhile;
else :
get_template_part( 'partials/content', 'missing'); /* this template will call when post was not available */ ?>
<?php endif; ?>
</div> <!-- end #main -->
<!-- Video Detail Page sidebar -->
<div id="sidebar1" class="sidebar large-3 medium-12 columns" role="complementary">
<?php if ( is_active_sidebar( 'video_detail_sidebar' ) ) : ?>
<?php dynamic_sidebar( 'video_detail_sidebar' ); ?>
<?php else : ?>
<!-- This content shows up if there are no widgets defined in the backend. -->
<?php dynamic_sidebar( 'sidebar1' ); ?>
<?php endif; ?>
</div>
<!-- Video Detail Page sidebar End-->
</div> <!-- end #inner-content -->
</div> <!-- end #content -->
<?php get_footer(); ?>