<?php
/**
 * Template part for displaying posts
 * 
 * @subpackage suraksha-security-guard
 * @since 1.0
 * @version 1.4
 */
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('inner-service'); ?>>
  <div class="article_content">      
    <?php the_post_thumbnail(); ?>
    <div class="article-text">
      <h3><?php the_title();?></h3>
      <p><?php $excerpt = get_the_excerpt();
        echo esc_html( suraksha_security_guard_string_limit_words( $excerpt,50 ) ); ?></p>
      <div class="metabox">              
        <i class="fas fa-user"></i><span class="entry-author"><?php the_author(); ?></span>
        <i class="fas fa-comments"></i><span class="entry-comments"><?php comments_number( __('0 Comments','suraksha-security-guard'), __('0 Comments','suraksha-security-guard'), __('% Comments','suraksha-security-guard') ); ?></span>
        <i class="far fa-calendar-alt"></i><span class="entry-date"><?php the_time( get_option( 'date_format' ) ); ?></span>
      </div>
      <div class="read-btn">             
        <a href="<?php echo esc_url( get_permalink() );?>" class="blogbutton-small"><?php esc_html_e('Read More','suraksha-security-guard'); ?><span class="screen-reader-text"><?php echo esc_html_e('Read More','suraksha-security-guard'); ?></span>               
        </a>          
      </div>
    </div>      
    <div class="clearfix"></div> 
  </div>
</div>