Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 71 lines (51 sloc) 2.67 kB
e3fb7cf @justintadlock Loads of fun, new stuff. Plus, random backgrounds.
authored
1 <?php
2 /**
3 * Video Content Template
4 *
5 * Template used to show posts with the 'image' post format.
6 *
7 * @package Unique
8 * @subpackage Template
9 * @since 0.1.0
10 * @author Justin Tadlock <justin@justintadlock.com>
11 * @copyright Copyright (c) 2012, Justin Tadlock
12 * @link http://themeforest.net/user/greenshady
13 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
14 */
15
16 do_atomic( 'before_entry' ); // unique_before_entry ?>
17
18 <article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
19
20 <?php do_atomic( 'open_entry' ); // unique_open_entry ?>
21
22 <?php if ( is_singular() && is_main_query() ) { ?>
23
24 <header class="entry-header">
25 <?php echo apply_atomic_shortcode( 'entry_title', the_title( '<h1 class="entry-title">', '</h1>', false ) ); ?>
26 <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'unique' ) . '</div>' ); ?>
27 </header><!-- .entry-header -->
28
29 <div class="entry-content">
30 <?php the_content(); ?>
31 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'unique' ), 'after' => '</p>' ) ); ?>
32 </div><!-- .entry-content -->
33
34 <footer class="entry-footer">
35 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'unique' ) . '</div>' ); ?>
36 </footer><!-- .entry-footer -->
37
38 <?php } else { ?>
39
40 <header class="entry-header">
41 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
42 </header><!-- .entry-header -->
43
44 <?php echo ( $video = just_me_get_video_embed() ); ?>
45
46 <?php if ( has_excerpt() ) { ?>
47
48 <div class="entry-summary">
49 <?php the_excerpt(); ?>
50 </div><!-- .entry-summary -->
51
52 <?php } elseif ( empty( $video ) ) { ?>
53
54 <div class="entry-content">
55 <?php the_content( __( 'Read more &rarr;', 'unique' ) ); ?>
56 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'unique' ), 'after' => '</p>' ) ); ?>
57 </div><!-- .entry-content -->
58
59 <?php } ?>
60
61 <footer class="entry-footer">
62 <?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [entry-edit-link before="| "]', 'unique' ) . '</div>' ); ?>
63 </footer><!-- .entry-footer -->
64
65 <?php } ?>
66
67 <?php do_atomic( 'close_entry' ); // unique_close_entry ?>
68
69 </article><!-- .hentry -->
70
71 <?php do_atomic( 'after_entry' ); // unique_after_entry ?>
Something went wrong with that request. Please try again.