  <?php $fieldType = $this->session->userdata('field_type');
    if (is_array($res) && !empty($res)) {
      foreach ($res as $key => $val) {
        //echo $val['article_image'].'<br>';
      ?>
        <div class="blog-single listpager">
          <div class="col-md-5">
            <div class="blog-img"><a href="<?php echo site_url($val['friendly_url']); ?>">
            <div class="image_09"><img class="img-responsive" src="<?php echo get_image('blog', $val['article_image'], '807', '417', 'R'); ?>" title="<?php echo $val['article_title' . $fieldType]; ?>" alt="<?php echo $val['article_title' . $fieldType]; ?>"></div></a> </div>
            </div>
            <div class="col-md-7">
            <div class="page-blog">
            <h3><a href="<?php echo site_url($val['friendly_url']); ?>" title="<?php echo $val['article_title']; ?>"><?php echo $val['article_title' . $fieldType]; ?></a></h3>
            <ul class="list-inline">
            <li><i class="fa fa-user"></i> By: <?php echo $val['blog_author']; ?> | </li>
            <li><i class="fa fa-calendar"></i> <?php echo getDateFormat($val['post_date'],3); ?></li>
            </ul>
            <p><?php echo char_limiter($val['short_desc' . $fieldType],450); ?></p> 
            <a class="waves-effect waves-light btn-large full-btn" href="<?php echo site_url($val['friendly_url']); ?>" title="<?php echo $val['article_title' . $fieldType]; ?>"><?php echo ($this->session->userdata('lang') == 'p') ? $this->lang->line('read_more') : 'Read More'; ?></a> 
            </div>
          </div>
        </div>
      <?php
      }
    }
  ?>