Your IP : 216.73.216.1
<?php
/**
* Template part for displaying posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package pally
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> aria-label="<?php the_title()?>">
<header class="entry-header">
<?php
if ( is_singular() ) :
the_title( '<h1 class="entry-title">', '</h1>' );
else :
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark" aria-label="' . __( 'Full article', 'pally' ) . ' ' . get_the_title() . '">', '</a></h2>' );
endif;
if ( 'post' === get_post_type() ) :
?>
<div class="entry-meta">
<?php
if ( is_sticky() && is_home() && ! is_paged() ) {
printf( '<span class="sticky-post">%s</span>', esc_html__( 'Featured', 'pally' ) );
}
?>
<?php
pally_posted_on();
pally_posted_by();
//pally_comments(); Use this to show comments on the blog page
?>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php
if ( is_single() ) {
if ( get_theme_mod( 'show_post_thumbnail_post', true ) === true ) {
pally_post_thumbnail();
}
} else {
if ( get_theme_mod( 'show_post_thumbnail', true ) === true ) {
pally_post_thumbnail();
}
}
?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php
if ( ! is_single() ) :
the_excerpt();
else :
the_content();
endif;
if ( ! is_single() && (! empty( $post->post_title ) ) ) {
$more = sprintf( '<a class="read-more" href="%1$s">%5$s %2$s <span class="screen-reader-text">%3$s %4$s</span></a>',
get_permalink( get_the_ID() ),
__( 'Read more', 'pally' ),
__( 'about', 'pally' ),
get_the_title (),
'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M20,10c0-.206-.042-.412-.122-.606-.08-.194-.196-.369-.342-.515L14.138,3.464c-.617-.619-1.617-.619-2.234,0s-.617,1.622,0,2.241l2.702,2.71H1.58c-.872,0-1.58,.709-1.58,1.585s.707,1.585,1.58,1.585H14.607l-2.702,2.711c-.617,.618-.617,1.622,0,2.241,.309,.31,.712,.464,1.117,.464s.808-.155,1.117-.464l5.398-5.415c.146-.146,.261-.321,.342-.515,.08-.194,.122-.399,.122-.606h0Z"/></svg>'
);
echo $more;
}
else if ( ! is_single() && (empty( $post->post_title ) ) ) {
$more = sprintf( '<a class="read-more" href="%1$s">%4$s %2$s <span class="screen-reader-text">' . esc_html__( 'of post from', 'pally' ) .' %3$s</span></a>',
get_permalink( get_the_ID() ),
__( 'Read more', 'pally' ),
get_the_date (),
'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M20,10c0-.206-.042-.412-.122-.606-.08-.194-.196-.369-.342-.515L14.138,3.464c-.617-.619-1.617-.619-2.234,0s-.617,1.622,0,2.241l2.702,2.71H1.58c-.872,0-1.58,.709-1.58,1.585s.707,1.585,1.58,1.585H14.607l-2.702,2.711c-.617,.618-.617,1.622,0,2.241,.309,.31,.712,.464,1.117,.464s.808-.155,1.117-.464l5.398-5.415c.146-.146,.261-.321,.342-.515,.08-.194,.122-.399,.122-.606h0Z"/></svg>'
);
echo $more;
}
wp_link_pages(
array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'pally' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<div class="footer-meta-holder">
<?php
pally_entry_footer();
?>
</div>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->