-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontent-standard.php
More file actions
executable file
·79 lines (65 loc) · 2.11 KB
/
Copy pathcontent-standard.php
File metadata and controls
executable file
·79 lines (65 loc) · 2.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* Inner part of the index pages when selecting standard style
*
* @since 1.0.0
* @package Coldbox
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-inner">
<figure class="post-thumbnail">
<?php cd_standard_thumbnail( false ); ?>
</figure>
<div class="post-content">
<div class="post-header">
<h2 class="post-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<p class="post-meta">
<?php if ( cd_index_meta_date() ) : ?>
<span class="post-date">
<span class="far fa-clock" aria-hidden="true"></span>
<span class="screen-reader-text"><?php esc_html_e( 'Published date', 'coldbox' ); ?></span>
<?php echo get_the_date(); ?>
</span>
<?php endif; ?>
<?php if ( 'post' === get_post_type() && cd_index_meta_cat() ) : ?>
<span class="post-category">
<span class="fas 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; ?>
</p>
<?php if ( get_the_excerpt() !== '' ) : ?>
<div class="post-excerpt"><?php the_excerpt(); ?></div>
<?php endif; ?>
</div>
<p class="more">
<a href="<?php the_permalink(); ?>">
<?php
printf(
/* translators: 1: Post title (screen render text) */
esc_html__( 'READ MORE%s', 'coldbox' ),
'<span class="screen-reader-text"> ' . esc_html( get_the_title() ) . '</span>'
);
?>
<span class="fas fa-arrow-right more-icon" aria-hidden="true"></span>
</a>
</p>
</div>
</div><!--/.post-inner-->
</article>