-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single-gallery.php
executable file
·67 lines (42 loc) · 1.21 KB
/
content-single-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* The template for displaying single gallery post format posts.
*
* @package Patch Lite
* @since Patch Lite 1.1.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<div class="entry-meta">
<?php patch_lite_cats_list(); ?>
<?php patch_lite_post_format_link(); ?>
<div class="clearfix">
<?php patch_lite_posted_on(); ?>
</div>
</div><!-- .entry-meta -->
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<?php
//output the first gallery in the content - if it exists
$gallery = get_post_gallery();
if ( $gallery ) : ?>
<div class="entry-featured entry-gallery">
<?php echo $gallery; ?>
</div><!-- .entry-gallery -->
<?php endif; ?>
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'patch-lite' ),
'after' => '</div>',
) ); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php patch_lite_single_entry_footer(); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->