-
Notifications
You must be signed in to change notification settings - Fork 16
/
content-aside.php
executable file
·70 lines (62 loc) · 1.98 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* The template for displaying posts in the Aside post format
*
* @package WordPress
* @subpackage Longform
* @since Longform 1.0
*/
?>
<div class="aesop-entry-header"></div>
<?php
// Show story progress bar
if ( is_single() ) { ?> <div class="story-progress-bar"></div> <?php } ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php
if ( !is_single() ) :
if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && longform_categorized_blog() ) : ?>
<span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'longform' ) ); ?></span>
<?php
endif;
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?>
<div class="entry-meta">
<?php
if ( 'post' == get_post_type() )
longform_posted_on();
if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
?>
<?php
endif;
?>
</div><!-- .entry-meta -->
<?php
endif;
?>
</header><!-- .entry-header -->
<?php
if ( !is_single() ) {
longform_post_thumbnail();
}
?>
<div class="entry-content">
<div id="entry-content-wrapper">
<?php if ( has_excerpt() && !is_single() ) {
the_excerpt();
echo '<a href="' . get_the_permalink() . '" class="more-link">' . __( 'Continue reading', 'longform' ) . '</a>';
} else {
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'longform' ) );
}
?>
</div>
<?php
wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'longform' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
edit_post_link( __( 'Edit', 'longform' ), '<span class="edit-link">', '</span>' );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->