<?php   

/* For Single page Results
*/

?>
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="blog-lg">
            <?php if(has_post_thumbnail()) : ?>
                  <div class="featured-img">
                      <?php the_post_thumbnail(); ?>
                  </div>
            <?php endif; ?>
                        
            <?php if(has_post_thumbnail()) : ?>
            <div class="blog-content">
            <?php else : ?>
            <div class="blog-img">
            <?php endif; ?>
                  <ul class="blog-meta">
                    <?php
                      forexn_posted_by();
                      forexn_posted_on();
                      forexn_comment_on();
                    ?>
                  </ul>
                  <h4 class="blog-head"><?php the_title(); ?></h4>
                  <?php the_content(); ?>
                  <?php
                      wp_link_pages( array(
                        'before' => '<div class="page-links">' . esc_html__('Pages: ', 'forexn' ),
                        'after'  => '</div>',
                      ) );
                  ?>
                            
                  <div class="blog-metas">
                      <div class="row">
                        <?php if (has_tag()) : ?>
                          <div class="col-md-12">
                              <div class="blog-tags m-top20">
                                  <span class="title">
                                      <?php esc_html_e( 'Tags :', 'forexn' ); ?>
                                      <?php $seperator = ''; // blank instead of comma ?>
                                            <?php the_tags( $seperator,'&nbsp;'); ?>
                                  </span>
                              </div>
                          </div>
                          <?php endif; ?>
                      </div>
                  </div>
            </div>
        </div>
        <ul class="pagi-simple mt-4 clearfix">
            <?php $prev_post = get_previous_post();
            if (!empty( $prev_post )): 
                ?>
                <li>
                    <a href="<?php echo esc_url(get_permalink( $prev_post->ID )); ?>"><?php esc_html_e( ' Prev', 'forexn' ); ?></a>
                </li>
            <?php endif; ?>    
            <?php $next_post = get_next_post();
            if (!empty( $next_post )):  ?>  
                <li>    
                    <a href="<?php echo esc_url(get_permalink( $next_post->ID )); ?>"><?php esc_html_e( 'Next', 'forexn' ); ?></a>
                </li>
            <?php endif; ?>
        </ul>
        <?php 
              if ( comments_open() || get_comments_number() ) :
                comments_template();
              endif; 
        ?>     
    </div>