-
Notifications
You must be signed in to change notification settings - Fork 6
/
content-gallery.php
45 lines (31 loc) · 2 KB
/
content-gallery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<article <?php hybrid_post_attributes(); ?>>
<?php if ( is_singular( get_post_type() ) ) { ?>
<header class="entry-header">
<h1 class="entry-title"><?php single_post_title(); ?></h1>
<?php echo apply_atomic_shortcode( 'entry_byline', '<div class="entry-byline">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before=" | "] [entry-edit-link before=" | "]', 'hybrid-base' ) . '</div>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[entry-terms taxonomy="category" before="Posted in "] [entry-terms before="Tagged "]', 'hybrid-base' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } else { ?>
<header class="entry-header">
<?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() . '">', '</a></h2>' ); ?>
</header><!-- .entry-header -->
<div class="entry-summary">
<?php get_the_image(); ?>
<?php if ( has_excerpt() ) {
the_excerpt();
wp_link_pages( array( 'before' => '<p class="page-links">' . '<span class="before">' . __( 'Pages:', 'hybrid-base' ) . '</span>', 'after' => '</p>' ) );
} ?>
<?php $count = hybrid_get_gallery_item_count(); ?>
<p class="image-count"><?php printf( _n( 'This gallery contains %d item.', 'This gallery contains %d items.', $count, 'hybrid-base' ), $count ); ?></p>
</div><!-- .entry-summary -->
<footer class="entry-footer">
<?php echo apply_atomic_shortcode( 'entry_meta', '<div class="entry-meta">' . __( '[post-format-link] published on [entry-published] [entry-comments-link before="| "] [entry-edit-link before="| "]', 'hybrid-base' ) . '</div>' ); ?>
</footer><!-- .entry-footer -->
<?php } ?>
</article><!-- .hentry -->