blogside/single.php

58 lines
2.1 KiB
PHP
Raw Normal View History

2016-02-03 11:28:05 +01:00
<?php get_header(); ?>
2017-03-05 21:42:58 +01:00
<div class="content">
2016-02-03 11:28:05 +01:00
<div class="pad group">
<?php while ( have_posts() ): the_post(); ?>
<article <?php post_class(); ?>>
<h1 class="post-title"><?php the_title(); ?></h1>
<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 if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
<div class="clear"></div>
<div class="entry">
<?php the_content(); ?>
2018-10-31 13:03:44 +01:00
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.esc_html__('Pages:','blogside'),'after'=>'</div>')); ?>
2016-02-03 11:28:05 +01:00
<div class="clear"></div>
</div><!--/.entry-->
</article><!--/.post-->
<?php endwhile; ?>
<div class="clear"></div>
2018-10-31 13:03:44 +01:00
<?php the_tags('<p class="post-tags"><span>'.esc_html__('Tags:','blogside').'</span> ','','</p>'); ?>
2016-02-03 11:28:05 +01:00
<?php do_action( 'alx_ext_sharrre' ); ?>
2016-02-03 11:28:05 +01:00
<div class="clear"></div>
2017-12-16 20:58:17 +01:00
<?php if ( ( get_theme_mod( 'author-bio', 'on' ) == 'on' ) && get_the_author_meta( 'description' ) ): ?>
2016-02-03 11:28:05 +01:00
<div class="author-bio">
<div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
<p class="bio-name"><?php the_author_meta('display_name'); ?></p>
<p class="bio-desc"><?php the_author_meta('description'); ?></p>
<div class="clear"></div>
</div>
<?php endif; ?>
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod( 'post-nav', 's1' ) == 'content' ) { get_template_part('inc/post-nav'); } ?>
2016-02-03 11:28:05 +01:00
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod( 'related-posts', 'categories' ) != 'disable' ) { get_template_part('inc/related-posts'); } ?>
2016-02-03 11:28:05 +01:00
<?php if ( comments_open() || get_comments_number() ) : comments_template( '/comments.php', true ); endif; ?>
2016-02-03 11:28:05 +01:00
</div><!--/.pad-->
2017-03-05 21:42:58 +01:00
</div><!--/.content-->
2016-02-03 11:28:05 +01:00
<?php get_sidebar(); ?>
<?php get_footer(); ?>