forked from DannyCooper/arke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.php
46 lines (37 loc) · 1.35 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
43
44
45
46
<?php
/**
* Template part for displaying posts
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Arke
* @copyright Copyright (c) 2018, Danny Cooper
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/
?>
<article <?php post_class(); ?>>
<?php arke_thumbnail( 'arke-blog' ); ?>
<header class="entry-header">
<?php
if ( is_single() ) :
the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<small><p> <?php echo get_the_date ('d/m/Y'); ?> - <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a></p></small>
<?php else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
?>
<small><p> <?php echo get_the_date ('d/m/Y'); ?> - <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a></p></small>
<?php endif;
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if( ! is_front_page() && ! is_author() && ! is_category() && ! is_search() ) {
the_content( esc_html__( 'Continue reading →', 'arke' ) );
}
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'arke' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
</article><!-- #post-## -->