-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcontent.php
More file actions
57 lines (40 loc) · 1.53 KB
/
content.php
File metadata and controls
57 lines (40 loc) · 1.53 KB
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
<?php
/**
* Default file for content visualization.
*
* @package Follet_Theme
* @since 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( follet_post_classes() ); ?> <?php follet_microdata( 'post' ); ?>>
<?php get_template_part( 'templates/post-thumbnail', '' ); ?>
<header class="entry-header">
<?php if ( follet_get_current( 'post_avatar_show' ) ) : ?>
<?php echo get_avatar( get_the_author_meta( 'email' ), '86' ); ?>
<?php endif; ?>
<h1 class="entry-title" <?php follet_microdata( 'entry-title' ); ?>>
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php follet_posted_on(); ?>
</div>
<?php endif; ?>
</header>
<?php // Only display Excerpts for Search and Home, if excerpt exists. ?>
<?php if ( ( is_search() or is_home() or is_archive() ) && $post->post_excerpt ) : ?>
<div class="entry-summary" <?php follet_microdata( 'entry-summary' ); ?>>
<?php the_excerpt(); ?>
<?php follet_continue_reading( true, true ); ?>
</div>
<?php if ( follet_get_current( 'show_footer_in_summary' ) ) : ?>
<?php get_template_part( 'templates/content-footer', '' ); ?>
<?php endif; ?>
<?php else : ?>
<div class="entry-content" <?php follet_microdata( 'entry-content' ); ?>>
<?php the_content( follet_continue_reading() ); ?>
<?php follet_link_pages(); // Uses wp_link_pages(). ?>
</div>
<?php get_template_part( 'templates/content-footer', '' ); ?>
<?php endif; ?>
</article>