Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (41 sloc) 2.213 kB
e3fb7cf @justintadlock Loads of fun, new stuff. Plus, random backgrounds.
authored
1 <?php
2 /**
3 * Aside Content Template
4 *
5 * Template used to show posts with the 'aside' 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-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 <div class="entry-content">
41 <?php the_content( __( 'Read more &rarr;', 'unique' ) ); ?>
42 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'unique' ), 'after' => '</p>' ) ); ?>
43 </div><!-- .entry-content -->
44
45 <footer class="entry-footer">
46 <?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>' ); ?>
47 </footer>
48
49 <?php } ?>
50
51 <?php do_atomic( 'close_entry' ); // unique_close_entry ?>
52
53 </article><!-- .hentry -->
54
55 <?php do_atomic( 'after_entry' ); // unique_after_entry ?>
Something went wrong with that request. Please try again.