Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (43 sloc) 2.18 kb
f5cfc80 @jayj Post format: Aside
authored
1 <?php
2 /**
3 * Aside Content Template
4 *
5 * Template used to show posts with the 'aside' post format.
6 *
7 * This can be overridden in child themes with loop-aside.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_aside', '<div class="byline">' . __( 'Published on [entry-published] by [entry-author] [entry-edit-link before=" | "]', 'cakifo' ) . '</footer>' ); ?>
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_aside',
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 <div class="entry-content">
47 <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) ); ?>
48 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
49 </div> <!-- .entry-content -->
50
51 <?php echo apply_atomic_shortcode( 'byline_aside', '<footer class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-permalink before="| "] [entry-comments-link before="| "] [entry-edit-link before=" | "]', 'cakifo' ) . '</footer>' ); ?>
52
53 <?php endif; ?>
54
55 </article> <!-- #post-<?php the_ID(); ?> -->
56
57 <?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>
Something went wrong with that request. Please try again.