-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single-video.php
executable file
·64 lines (40 loc) · 1.23 KB
/
content-single-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
<?php
/**
* The template for displaying single video post format posts.
*
* @package Patch Lite
* @since Patch Lite 1.1.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
//get the media objects from the content and bring up only the first one
$media = patch_lite_video_attachment(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<div class="entry-meta">
<?php patch_lite_cats_list(); ?>
<?php patch_lite_post_format_link(); ?>
<div class="clearfix">
<?php patch_lite_posted_on(); ?>
</div>
</div><!-- .entry-meta -->
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<?php if ( ! empty( $media ) ) : ?>
<div class="entry-featured entry-media">
<?php echo $media; ?>
</div><!-- .entry-media -->
<?php endif; ?>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'patch-lite' ),
'after' => '</div>',
) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php patch_lite_single_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->