blogside/content.php

32 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2016-02-03 11:28:05 +01:00
<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('group'); ?>>
<div class="pad group">
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod( 'format-icon', 'on' ) =='on' ): ?>
2019-07-29 17:29:42 +02:00
<div class="format-circle"><a href="<?php echo get_post_format_link($format); ?>"><i class="fas"></i></a></div>
2016-02-03 11:28:05 +01:00
<?php endif; ?>
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
2016-02-03 11:28:05 +01:00
</h2><!--/.post-title-->
<ul class="post-meta group">
<li><?php the_category(' / '); ?></li>
2019-07-29 17:29:42 +02:00
<li><i class="far fa-clock"></i><?php the_time( get_option('date_format') ); ?></li>
<?php if ( comments_open() ): ?><li><a href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><?php comments_number( '0', '1', '%' ); ?></a></li><?php endif; ?>
2016-02-03 11:28:05 +01:00
</ul><!--/.post-meta-->
<?php get_template_part('inc/post-formats'); ?>
<div class="entry">
<?php
if ( is_search() ) { the_excerpt(); }
2018-10-31 13:03:44 +01:00
else the_content(esc_html__('Continue reading...','blogside'));
2016-02-03 11:28:05 +01:00
?>
</div><!--/.entry-->
</div><!--/.pad-->
</article><!--/.post-->