<?php 
global $theme_option;
?>

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>  
    <div class="post-content">
        <div class="post-image">
            <div class="slider flexslider">
              <?php if( function_exists( 'rwmb_meta' ) ) { ?>
                <?php $images = rwmb_meta( '_cmb_images', "type=image" ); ?>
                <?php if($images){ ?>
                  <ul class="slides">
                    <?php                                                        
                      foreach ( $images as $image ) {                              
                    ?>
                    <?php $img = $image['full_url']; ?>
                      <li><img src="<?php echo esc_url($img); ?>" alt=""></li> 
                    <?php } ?>                   
                  </ul>
                <?php } ?>
              <?php } ?>
            </div>
        </div>
        <div class="date-box"><span class="day"><?php the_time('d'); ?></span> <span class="month"><?php the_time('M'); ?></span> </div>
        <div class="post-text">
            <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
            <ul class="post-meta">
              <li><i class="fa fa-user"></i><?php the_author_posts_link(); ?></li> 
              <?php if(has_category()) { ?>
              <li><i class="fa fa-folder-open"></i><?php the_category(', '); ?></li> 
              <?php } ?>
              <li><i class="fa fa-comments"></i><a href="<?php comments_link(); ?>"><?php comments_number( __('0 comment', 'aoxhost'), __('1 comment', 'aoxhost'), __('% comments', 'aoxhost') ); ?></a></li>              
            </ul>
            <p><?php echo aoxhost_excerpt($theme_option['blog_excerpt']); ?></p>
        </div>
        <div class="clearfix"></div>
    </div>    
</div>  
