This repository has been archived by the owner on May 10, 2023. It is now read-only.
/
loop-status.php
70 lines (52 loc) · 2.36 KB
/
loop-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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* Status Content Template
*
* Template used to show posts with the 'status' post format.
*
* This can be overridden in child themes with loop-status.php
*
* @package Cakifo
* @subpackage Template
* @since Cakifo 1.5
*/
do_atomic( 'before_entry' ); // cakifo_before_entry ?>
<article id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // cakifo_open_entry ?>
<?php if ( is_singular() && is_main_query() ) : ?>
<header class="entry-header clearfix">
<?php echo get_avatar( get_the_author_meta( 'email' ), apply_atomic( 'status_avatar', 48 ) ); ?>
<?php echo do_shortcode( '[entry-author before="<h1>" after="</h1>"]' ); ?>
</header> <!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
<footer class="entry-meta">
<?php
echo apply_atomic_shortcode( 'byline_status', '<div>' . __( '[post-format-link] published on [entry-published] [entry-edit-link before="| "]', 'cakifo' ) . '</div>' );
echo apply_atomic_shortcode( 'entry_meta_status' );
?>
</footer> <!-- .entry-meta -->
<?php do_atomic( 'in_singular' ); // cakifo_in_singular (+ cakifo_after_singular) ?>
<?php else: ?>
<header class="entry-header clearfix">
<?php echo get_avatar( get_the_author_meta( 'ID' ), apply_atomic( 'status_avatar', 48 ) ); ?>
<?php echo do_shortcode( '[entry-author before="<h1>" after="</h1>"]' ); ?>
<h2>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php echo do_shortcode( '[entry-published]' ); ?>
</a>
</h2>
<?php echo apply_atomic_shortcode( 'post_format_link', '[post-format-link]' ); ?>
</header> <!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<p class="page-links">' . __( 'Pages:', 'cakifo' ), 'after' => '</p>' ) ); ?>
</div> <!-- .entry-content -->
<footer class="entry-meta">
<?php echo apply_atomic_shortcode( 'entry_meta_status', '<footer class="entry-meta">' . __( '[entry-edit-link]', 'cakifo' ) . '</footer>' ); ?>
</footer> <!-- .entry-meta -->
<?php endif; ?>
</article> <!-- #post-<?php the_ID(); ?> -->
<?php do_atomic( 'after_entry' ); //cakifo_after_entry ?>