curver/content.php
2019-07-29 14:38:29 +02:00

38 lines
No EOL
1.2 KiB
PHP

<?php $format = get_post_format(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('group post-standard'); ?>>
<div class="pad group">
<div class="post-category">
<?php the_category(' / '); ?>
</div><!--/.post-category-->
<h2 class="post-title">
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2><!--/.post-title-->
<?php get_template_part('inc/post-formats'); ?>
<div class="entry">
<?php
if ( is_search() ) { the_excerpt(); }
else the_content(esc_html__('Continue reading...','curver'));
?>
</div><!--/.entry-->
<div class="post-date">
<?php the_time( get_option('date_format') ); ?>
</div><!--/.post-date-->
</div><!--/.pad-->
<?php if ( get_theme_mod( 'format-icon', 'on' ) =='on' ): ?>
<div class="format-circle"><a href="<?php echo get_post_format_link($format); ?>"><i class="fa"></i></a></div>
<?php endif; ?>
<?php if ( comments_open() && ( get_theme_mod( 'comment-count', 'on' ) =='on' ) ): ?>
<a class="post-comments" href="<?php comments_link(); ?>"><i class="fas fa-comment"></i><span><?php comments_number( '0', '1', '%' ); ?></span></a>
<?php endif; ?>
</article><!--/.post-->