-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontent.php
More file actions
57 lines (47 loc) · 2.19 KB
/
content.php
File metadata and controls
57 lines (47 loc) · 2.19 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
/**
* The default template for displaying content
*
* @package WordPress
* @subpackage Pohutukawa
* @since Pohutukawa 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'pohutukawa' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</header><!--end .entry-header -->
<footer class="entry-meta">
<ul>
<li class="post-date"><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a></li>
<li class="post-author"><?php _e('by', 'pohutukawa') ?>
<?php
printf( __( '<a href="%1$s" title="%2$s">%3$s</a>', 'pohutukawa' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
sprintf( esc_attr__( 'All posts by %s', 'pohutukawa' ), get_the_author() ),
get_the_author() );
?>
</li>
<li class="post-comments"><?php comments_popup_link( __( '0 comments', 'pohutukawa' ), __( '1 comment', 'pohutukawa' ), __( '% comments', 'pohutukawa' ), 'comments-link', __( 'comments off', 'pohutukawa' ) ); ?></li>
<?php // Include Share-Btns
$options = get_option('pohutukawa_theme_options');
if( $options['share-posts'] ) : ?>
<?php get_template_part( 'share'); ?>
<?php endif; ?>
<li class="post-edit"><?php edit_post_link(__( 'Edit this post', 'pohutukawa') ); ?></li>
</ul>
</footer><!-- end .entry-meta -->
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- end .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a>
<?php endif; ?>
<?php the_content( __( 'Continue Reading', 'pohutukawa' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'pohutukawa' ), 'after' => '</div>' ) ); ?>
</div><!-- end .entry-content -->
<?php endif; ?>
</article><!-- end post -<?php the_ID(); ?> -->