forked from AgriLife/AgriFlex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-aside.php
43 lines (35 loc) · 1.12 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
<?php
/**
* Template for displaying asides.
*
* In AgriFlex 1.0 the category 'asides' was used. Since its creation
* post formats were introduced to WordPress. We have implemented post formats
* into 2.0 and have created a function to maintain backwards compatibility.
*
* @see inc/helpers.php
*
* @author J. Aaron Eaton <[email protected]>
* @package AgriFlex
* @since AgriFlex 2.0
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Display excerpts for archives and search. -->
<?php if ( is_archive() || 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>',
'agriflex' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<div class="entry-utility">
<?php agriflex_posted_on(); ?>
<span class="meta-sep">|</span>
<?php agriflex_comments_link(); ?>
<?php agriflex_edit_link(); ?>
</div><!-- .entry-utility -->
</div><!-- #post-<?php the_ID(); ?> -->