Skip to content
This repository
Newer
Older
100644 79 lines (61 sloc) 3.179 kb
673ea6e6 »
2012-09-29 Post format: Image
1 <?php
2 /**
3 * Image Content Template
4 *
5 * Template used to show posts with the 'image' post format.
6 *
7 * This can be overridden in child themes with loop-image.php
8 *
9 * @package Cakifo
10 * @subpackage Template
11 * @since Cakifo 1.5
12 */
67d20837 »
2012-09-29 Reindent loop-status and loop-image
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 </header> <!-- .entry-header -->
26
27 <div class="entry-content">
28 <?php
29 /* Get content if it exists */
30 if ( cakifo_post_has_content() ) {
31 the_content();
32 } else {
33 /* Get full size version of the "Featured Image" */
34 get_the_image( array( 'image_class' => 'aligncenter', 'size' => 'full', 'meta_key' => false, 'link_to_post' => false ) );
35 }
36 ?>
37
38 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
39 </div> <!-- .entry-content -->
40
41 <footer class="entry-meta">
42 <?php echo apply_atomic_shortcode( 'byline_image', '<div class="entry-meta-col">' . __( '[entry-published] by [entry-author] [entry-edit-link]', 'cakifo' ) . '</div>' ); ?>
43 <?php echo apply_atomic_shortcode( 'entry_meta_image', '<div class="entry-meta-col">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged: "]', 'cakifo' ) . '</div>' ); ?>
44 </footer> <!-- .entry-meta -->
45
46 <?php do_atomic( 'in_singular' ); // cakifo_in_singular (+ cakifo_after_singular) ?>
47
48 <?php else: ?>
49
50 <header class="entry-header">
51 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
52 <?php echo apply_atomic_shortcode( 'post_format_link', '[post-format-link]' ); ?>
53 </header> <!-- .entry-header -->
54
55 <div class="entry-content">
56 <?php
57 /* Get content if it exists */
58 if ( cakifo_post_has_content() ) {
59 the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'cakifo' ) );
60 } else {
61 /* Get full size version of the "Featured Image" */
62 get_the_image( array( 'image_class' => 'aligncenter', 'size' => 'full', 'meta_key' => false, 'link_to_post' => false ) );
63 }
64 ?>
65
66 <?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
67 </div> <!-- .entry-content -->
68
69 <footer class="entry-meta">
70 <?php echo apply_atomic_shortcode( 'byline_image', '<div class="entry-meta-col">' . __( '[entry-published] by [entry-author] [entry-comments-link] ', 'cakifo' ) . '</div>' ); ?>
71 <?php echo apply_atomic_shortcode( 'entry_meta_image', '<div class="entry-meta-col">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged: "] [entry-edit-link]', 'cakifo' ) . '</div>' ); ?>
72 </footer> <!-- .entry-meta -->
73
74 <?php endif; ?>
75
76 </article> <!-- #post-<?php the_ID(); ?> -->
673ea6e6 »
2012-09-29 Post format: Image
77
78 <?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>
Something went wrong with that request. Please try again.