Skip to content
Newer
Older
100644 85 lines (64 sloc) 2.65 KB
2b760b4 @jayj Post format: Video
authored Oct 6, 2012
1 <?php
2 /**
3 * Video Content Template
4 *
5 * Template used to show posts with the 'video' post format.
6 *
7 * This can be overridden in child themes with loop-video.php
8 *
9 * @package Cakifo
10 * @subpackage Template
11 * @since Cakifo 1.5
12 */
13
14 do_atomic( 'before_entry' ); //cakifo_before_entry ?>
15
16 <article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
17
18 <?php do_atomic( 'open_entry' ); //cakifo_open_entry ?>
19
20 <?php if ( is_singular() && is_main_query() ) : ?>
21
22 <header class="entry-header">
23 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title permalink=""]' ); ?>
24 <?php echo apply_atomic_shortcode( 'post_format_link', '[post-format-link]' ); ?>
25 <?php echo apply_atomic_shortcode( 'byline_video', '<div class="byline">' . __( 'Published on [entry-published] by [entry-author] [entry-edit-link before=" | "]', 'cakifo' ) . '</div>' ); ?>
26 </header> <!-- .entry-header -->
27
28 <div class="entry-content">
29 <?php the_content(); ?>
30 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
31 </div> <!-- .entry-content -->
32
33 <?php
34 echo apply_atomic_shortcode( 'entry_meta_video',
35 '<footer class="entry-meta">' . __(
36 '[entry-terms taxonomy="category" before="Posted in "]
37 [entry-terms before="| Tagged "]', 'cakifo' ) .
38 '</footer> <!-- .entry-meta -->'
39 );
40 ?>
41
42 <?php do_atomic( 'in_singular' ); // cakifo_in_singular (+ cakifo_after_singular) ?>
43
44 <?php else : ?>
45
46 <header class="entry-header">
47 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
48 <?php echo apply_atomic_shortcode( 'post_format_link', '[post-format-link]' ); ?>
49 </header> <!-- .entry-header -->
50
51 <?php echo ( $video = cakifo_get_video_embed() ); ?>
52
53 <?php if ( has_excerpt() ) { ?>
54
55 <div class="entry-summary">
56 <?php the_excerpt(); ?>
57 </div> <!-- .entry-summary -->
58
59 <?php } elseif ( empty( $video ) ) { ?>
60
61 <div class="entry-content">
62 <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
63 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
64 </div> <!-- .entry-content -->
65
66 <?php } ?>
67
68 <?php
69 echo apply_atomic_shortcode( 'byline_video',
70 '<footer class="entry-meta">' . __(
71 'Published on [entry-published]
72 by [entry-author]
73 [entry-permalink before="| "]
74 [entry-comments-link before="| "]
75 [entry-edit-link before=" | "]', 'cakifo' ) .
76 '</footer> <!-- .entry-meta -->'
77 );
78 ?>
79
80 <?php endif; ?>
81
82 </article> <!-- #post-<?php the_ID(); ?> -->
83
84 <?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>
Something went wrong with that request. Please try again.