-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent-masonry.php
More file actions
executable file
·42 lines (37 loc) · 1.22 KB
/
content-masonry.php
File metadata and controls
executable file
·42 lines (37 loc) · 1.22 KB
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
<?php
/**
* @package Gather
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'module'); ?>>
<?php if ( has_post_thumbnail() ) { ?>
<div class="entry-image-section">
<a href="<?php the_permalink() ?>" class="entry-image-link">
<figure class="entry-image">
<?php the_post_thumbnail( 'gather-archive' ); ?>
</figure>
</a>
</div>
<?php } ?>
<header class="entry-header">
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content clearfix">
<?php if ( 'excerpt' == get_theme_mod( 'archive-content', 'excerpt' ) || has_excerpt() ) {
the_excerpt();
} else {
the_content(
wp_kses_post( __( 'Continue reading <span class="meta-nav">→</span>', 'gather' ) )
);
} ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'gather' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta entry-footer-meta">
<span class="more-link"><a href="<?php the_permalink(); ?>"><?php esc_html_e( 'View More', 'gather' ); ?></a></span>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->