forked from AgriLife/AgriFlex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
executable file
·44 lines (36 loc) · 1.17 KB
/
content.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
<?php
/**
* The default loop that displays posts.
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with content.php or
* content-template.php, where 'template' is the loop context
* requested by a template. For example, content-index.php would
* be used if it exists and we ask for the loop with:
* <code>get_template_part( 'content', 'index' );</code>
*
* @package AgriFlex
* @since AgriFlex 2.0
*/
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php agriflex_post_title(); ?>
<div class="entry-meta">
<?php agriflex_posted_on(); ?>
</div><!-- .entry-meta -->
<?php if ( is_archive() || is_search() ) : ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php agriflex_post_thumbnail(); ?>
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
<?php endif; ?>
</div><!-- #post-<?php the_ID(); ?> -->
<?php comments_template( '', true ); ?>