forked from jbrad/standard
-
Notifications
You must be signed in to change notification settings - Fork 3
/
loop-video.php
68 lines (58 loc) · 2.96 KB
/
loop-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
<?php
/**
* The template for displaying video post formats.
*
* @package Standard
* @since 3.0
* @version 3.1
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class( 'post format-video clearfix' ); ?>>
<div id="content-<?php the_ID(); ?>" class="entry-content">
<?php if( ( is_category() || is_archive() || is_home() ) && has_excerpt() ) { ?>
<?php the_excerpt( ); ?>
<a href="<?php echo get_permalink(); ?>"><?php _e( 'Continue Reading...', 'standard' ); ?></a>
<?php } else { ?>
<?php if( function_exists( 'the_post_format_video' ) ) { ?>
<?php the_post_format_video(); ?>
<p>
<?php echo get_the_content( __( '<p>Continue Reading...</p>', 'standard' ) ); ?>
</p>
<?php } else { ?>
<?php the_content( __( 'Continue Reading...', 'standard' ) ); ?>
<?php } // end if/else ?>
<?php } // end if/else ?>
<?php
wp_link_pages(
array(
'before' => '<div class="page-link"><span>' . __( 'Pages:', 'standard' ) . '</span>',
'after' => '</div>'
)
);
?>
</div><!-- /.entry-content -->
<div class="post-meta clearfix">
<div class="meta-date-cat-tags pull-left">
<?php if( is_multi_author() ) { ?>
<span class="the-author"> <?php _e( 'Posted by', 'standard' ); ?> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php echo get_the_author_meta( 'display_name' ); ?>"><?php echo the_author_meta( 'display_name' ); ?></a></span>
<span class="the-time updated"> <?php _e( 'on', 'standard' ) . ' '; echo get_the_time( get_option( 'date_format' ) ); ?></span>
<?php } else { ?>
<?php printf( '<span class="the-time updated">' . __( 'Posted on %1$s', 'standard' ) . '</span> ', get_the_time( get_option( 'date_format' ) ) ); ?>
<?php } // end if ?>
<?php $category_list = get_the_category_list( __( ', ', 'standard' ) ); ?>
<?php if( $category_list ) { ?>
<?php printf( '<span class="the-category">' . __( 'In %1$s', 'standard' ) . '</span>', $category_list ); ?>
<?php } // end if ?>
<?php $tag_list = get_the_tag_list( '', __( ', ', 'standard' ) ); ?>
<?php if( $tag_list ) { ?>
<?php printf( '<span class="the-tags">' . __( '%1$s', 'standard' ) . '</span>', $tag_list ); ?>
<?php } // end if ?>
</div><!-- /meta-date-cat-tags -->
<div class="meta-comment-link pull-right">
<a class="pull-right post-link" href="<?php the_permalink(); ?>" title="<?php esc_attr_e( 'permalink', 'standard' ); ?>"> <img src="<?php echo esc_url( get_template_directory_uri() . '/images/icn-permalink.png' ); ?>" alt="<?php esc_attr_e( 'permalink', 'standard' ); ?>" /></a>
<?php if ( '' != get_post_format() ) { ?>
<span class="the-comment-link"><?php comments_popup_link( __( 'Leave a comment', 'standard' ), __( '1 Comment', 'standard' ), __( '% Comments', 'standard' ), '', ''); ?></span>
<?php } // end if ?>
</div><!-- /meta-comment-link -->
</div><!-- /.post-meta -->
</div> <!-- /#post -->