-
Notifications
You must be signed in to change notification settings - Fork 1
/
content-status.php
51 lines (40 loc) · 1.3 KB
/
content-status.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 status post format on archives.
* @package Hive Lite 1.1.6
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="media media--rev">
<div class="media__img">
<?php if ( hivelite_validate_gravatar( get_the_author_meta( 'email' ) ) ) { ?>
<div class="entry-avatar">
<?php echo get_avatar( get_the_author_meta( 'email' ) ); ?>
</div><!-- .entry-avatar -->
<?php } ?>
</div>
<div class="media__body">
<?php
// Just the excerpt for search pages
if ( is_search() ) { ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php } else { ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'hive-lite' ) );
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'hive-lite' ),
'after' => '</div>',
) ); ?>
</div><!-- .entry-content -->
<?php }
echo get_the_author_link(); ?>
</div>
</div>
<?php edit_post_link( esc_html__( 'Edit', 'hive-lite' ), '<div class="edit-link">', '</div>' ); ?>
<?php get_template_part( 'content-footer' ); ?>
</article><!-- #post-## -->