-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontent-grid.php
More file actions
executable file
·58 lines (47 loc) · 1.56 KB
/
content-grid.php
File metadata and controls
executable file
·58 lines (47 loc) · 1.56 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Inner part of the index pages when selecting grid style
*
* @since 1.0.0
* @package Coldbox
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'article' ); ?>>
<div class="post-inner flex-column">
<a class="post-link" href="<?php the_permalink(); ?>">
<div class="post-thumbnail"><figure>
<?php cd_middle_thumbnail_template( false ); ?>
</figure></div>
<div class="post-content">
<?php if ( 'post' === get_post_type() && cd_index_meta_date() ) : ?>
<div class="post-date"><?php echo get_the_date(); ?></div>
<?php endif; ?>
<h2 class="post-title"><?php the_title(); ?></h2>
<?php if ( get_the_excerpt() !== '' ) : ?>
<div class="post-excerpt"><?php the_excerpt(); ?></div>
<?php endif; ?>
</div>
</a>
<div class="post-meta">
<?php if ( 'post' === get_post_type() && cd_index_meta_cat() ) : ?>
<span class="post-category">
<span class="far fa-folder" aria-hidden="true"></span>
<span class="screen-reader-text"><?php esc_html_e( 'Categories', 'coldbox' ); ?></span>
<?php the_category( '/' ); ?>
</span>
<?php endif; ?>
<?php if ( comments_open() && cd_is_post_single_comment() && cd_index_meta_comment() ) : ?>
<span class="post-comment">
<span class="far fa-comment" aria-hidden="true"></span>
<?php
comments_popup_link(
esc_html__( 'Comments: 0', 'coldbox' ),
esc_html__( 'Comment: 1', 'coldbox' ),
esc_html__( 'Comments: %', 'coldbox' )
);
?>
</span>
<?php endif; ?>
</div>
</div><!--/.post-inner-->
</article>