-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-video.php
55 lines (52 loc) · 2.48 KB
/
content-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
<?php
/**
* The template for displaying posts in the Video post format
*
* @package Graphite_Theme
* @since Graphite 1.0.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php if ( is_single() ) : ?>
<h1 class="entry-title"><i class="fa fa-film"></i> <?php the_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title">
<i class="fa fa-film"></i> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'graphite' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php endif; // is_single() ?>
</header>
<div class="entry-content clearfix">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'graphite' ) ); ?>
</div><!-- /.entry-content -->
<footer class="entry-meta">
<?php
$author = sprintf( '<a href="%1$s" title="%2$s" rel="author">%3$s</a>',
esc_url( get_author_posts_url(get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'graphite' ), get_the_author() ) ),
'<i class="fa fa-large fa-user"></i> ' . get_the_author()
);
$date = sprintf( '<a href="%1$s" title="' . __( 'View all posts from %2$s', 'graphite' ) . '" rel="bookmark"><i class="fa fa-large fa-clock-o"></i> <time class="entry-date" datetime="%3$s">%4$s</time></a>',
esc_url( get_month_link( get_the_date( 'Y' ), get_the_date( 'm' ) ) ),
esc_attr( get_the_date( 'F' ) ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$categories = get_the_category_list( ', ' );
$tags = get_the_tag_list( '', ', ' );
?>
<ul class="meta">
<li><i class="fa fa-large fa-comment"></i> <?php comments_popup_link( __( 'No comments', 'graphite' ), __( '1 Comment', 'graphite' ), __( '% Comments', 'graphite' ) ); ?></li>
<li><?php echo $author; ?></li>
<li><?php echo $date; ?></li>
<?php if ( $categories ) : ?>
<li><i class="fa fa-large fa-folder"></i> <?php echo $categories; ?></li>
<?php endif; ?>
<?php if ( $tags ) : ?>
<li><i class="fa fa-large fa-tag"></i> <?php echo $tags; ?></li>
<?php endif; ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><i class="fa fa-large fa-bookmark"></i> <?php _e( 'Permalink', 'graphite' ); ?></a></li>
<?php edit_post_link( '<i class="fa fa-large fa-pencil"></i> ' . __( 'Edit', 'graphite' ), '<li>', '</li>' ); ?>
</ul>
</footer><!-- /.entry-meta -->
</article><!-- /#post -->