Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 92 lines (74 sloc) 3.054 kb
3233a51 @jayj Post format: Gallery
authored
1 <?php
2 /**
3 * Gallery Content Template
4 *
5 * Template used to show posts with the 'gallery' post format.
6 *
7 * This can be overridden in child themes with loop-gallery.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() ) : ?>
21
22 <header class="entry-header">
23 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title permalink=""]' ); ?>
24 <?php echo apply_atomic_shortcode( 'byline_gallery', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', 'cakifo' ) . '</div>' ); ?>
25 <?php echo apply_atomic_shortcode( 'post_format_link', '[post-format-link]' ); ?>
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_gallery',
35 '<footer class="entry-meta">' . __(
36 '[entry-terms taxonomy="category" before="Posted in "]
37 [entry-terms before="| Tagged "]
38 [entry-edit-link before=" | "]', 'cakifo' ) .
39 '</footer> <!-- .entry-meta -->'
40 );
41 ?>
42
43 <?php do_atomic( 'in_singular' ); // cakifo_in_singular (+ cakifo_after_singular) ?>
44
45 <?php else : ?>
46
47 <header class="entry-header">
48 <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
49 <?php echo apply_atomic_shortcode( 'byline_gallery', '<div class="byline">' . __( 'By [entry-author] on [entry-published] [entry-edit-link before=" | "]', 'cakifo' ) . '</div>' ); ?>
50 <?php echo apply_atomic_shortcode( 'post_format_link', '[post-format-link]' ); ?>
51 </header> <!-- .entry-header -->
52
53 <?php
54 /**
55 * Get the thumbnail
56 */
57 if ( current_theme_supports( 'get-the-image' ) )
58 get_the_image( array(
59 'size' => 'thumbnail',
60 'attachment' => false
61 ) );
62 ?>
63
64 <div class="entry-summary">
65 <?php
66 if ( has_excerpt() ) {
67 the_excerpt();
68 wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) );
69 }
70 ?>
71
72 <?php $count = cakifo_get_image_attachment_count(); ?>
73 <p class="image-count"><?php printf( _n( 'This gallery contains %s image.', 'This gallery contains %s images.', $count, 'cakifo' ), $count ); ?></p>
74 </div> <!-- .entry-summary -->
75
76 <?php
77 echo apply_atomic_shortcode( 'entry_meta_gallery',
78 '<footer class="entry-meta">' . __(
79 '[entry-terms taxonomy="category" before="Posted in "]
80 [entry-terms before="| Tagged "]
81 [entry-comments-link before=" | "]
82 [entry-edit-link before=" | "]', 'cakifo' ) .
83 '</footer> <!-- .entry-meta -->'
84 );
85 ?>
86
87 <?php endif; ?>
88
89 </article> <!-- #post-<?php the_ID(); ?> -->
90
91 <?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>
Something went wrong with that request. Please try again.