| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?php
- /**
- * The template for displaying all single posts
- *
- * @package taskereasy
- * @version 1.0
- */
- get_header();
- taskereasy_blog_banner();
- ?>
- <!-- Blog -->
- <section class="section-padding">
- <div class="container">
- <div class="row">
- <div class="<?php echo (!is_active_sidebar( 'sidebar-7' )) ? esc_attr('col-lg-12') : esc_attr('col-lg-8'); ?>">
- <?php
- if (have_posts()) :
- while (have_posts()) :
- the_post();
- get_template_part('template-parts/post/content', get_post_format()); ?>
- <!-- Author -->
- <?php if( get_the_author_meta( 'description' ) != '' ){ ?>
- <div class="author-bio">
- <?php $get_author_id = get_the_author_meta('ID');
- $get_author_gravatar = get_avatar_url($get_author_id); ?>
- <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
- <img alt="<?php the_author_meta('display_name', $get_author_id); ?>" src="<?php echo esc_url($get_author_gravatar); ?>" class="avatar" height="90" width="90">
- </a>
- <div class="author-info">
- <h3 class="author-info-title"><?php echo esc_html__('Author:', 'taskereasy'); ?> <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author_meta('display_name', $get_author_id); ?></a></h3>
- <p class="author-description"><?php echo get_the_author_meta( 'description', $get_author_id ); ?></p>
- </div>
- </div>
- <?php } ?>
- <div class="next-pre-links">
- <div class="pre-post-link">
- <?php previous_post_link('%link', '« Previous'); ?>
- </div>
- <div class="next-post-link">
- <?php next_post_link('%link', 'Next »'); ?>
- </div>
- </div>
- <div class="post-tags"><?php the_tags();?></div>
- <?php
- if ( comments_open() || get_comments_number() ){
- comments_template();
- }else{
- ?>
- <div class="comment-list-wrap">
- <p class="lead"><?php echo esc_html__('Comments are closed','taskereasy'); ?></p>
- </div>
- <?php } ?>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- <!-- Sidebar -->
- <?php if(is_active_sidebar( 'sidebar-7' )) { ?>
- <div class="col-lg-4">
- <div class="sidebar-wrap">
- <?php dynamic_sidebar('sidebar-7'); ?>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- </section>
- <!-- /Blog -->
- <?php
- get_footer();
- ?>
|