-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontent-aside.php
51 lines (40 loc) · 1.33 KB
/
content-aside.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
<?php
/**
* The template for displaying the aside post format on archives.
*
* @package Silk Lite
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header entry-header--card">
<?php if ( 'post' == get_post_type() ) { ?>
<div class="entry-meta entry-meta--card">
<?php silklite_posted_on_and_cats(); ?>
</div><!-- .entry-meta -->
<?php } ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content( sprintf(
/* translators: %s: Name of current post */
esc_html__( 'Continue reading %s', 'silk-lite' ),
the_title( '<span class="screen-reader-text">', '</span>', false )
) ); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="pagination-title">' . esc_html__( 'Pages:', 'silk-lite' ),
'after' => '</span></div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'silk-lite' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
) );
?>
<span class="separator separator-wrapper--accent">
<?php get_template_part( 'assets/svg/separator-simple' ); ?>
</span>
</div><!-- .entry-content -->
</article><!-- #post-## -->