<?php
$this->load->view('wpstemplate/top_header');
$compContact = comp_contact();
?>
<!-- Heading Banner--->
<section class="heading_banner" style="background-image: url(<?php echo theme_url(); ?>designer/images/blog/blog.jpg)">
  <div class="container">
    <div class="row">
      <div class="col-lg-12 text-center">
        <div class="cat_title"><?php echo $res['article_title']; ?></div>
      </div>
    </div>
  </div>
</section>
<!-- Breadcrumb--->
<section class="inner_breadcrumb hidden-xs">
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <ul class="breadcrumb">
          <li><a href="<?php echo comp_url(); ?>" title="Home">Home</a></li>
          <li><a href="<?php echo comp_url(); ?>blogs" title="Blog">Blog</a></li>
          <li class="active"><?php echo $res['article_title']; ?> ttt</li>
        </ul>
      </div>
    </div>
  </div>
</section>
<section class="blog_page">
  <div class="container">
    <div class="row">
      <div class="col-md-9">
        <div class="blog_left blog_details">
          <h2><?php echo $res['article_title']; ?></h2>
          <ul>
            <li><i class="fa fa-user"></i> By: <?php echo ucwords($compContact['company_name']); ?></li>
            <li><i class="fa fa-clock-o"></i> <?php echo getDateFormat($res['post_date'], 3); ?></li>
          </ul>
          <div class="blog_details1">
           <div class="details_image">
            <img src="<?php echo get_image('clients/blog', $res['article_image'], '850', '375', 'R'); ?>">
            </div>
            <?php echo $res['article_desc']; ?>
          </div>
        </div>
      </div>

      <div class="col-md-3">
        <div class="left_sidebar">

          <?php
          if (is_array($leftBlog) && !empty($leftBlog)) {
            ?>
            <div class="left_title1">Popular Post</div>
            <?php
            foreach ($leftBlog as $lBlog) {
              ?>
              <div class="right_news">
                <a href="<?php echo site_url() . $lBlog['friendly_url']; ?>">
                  <div class="image">
                    <img src="<?php echo get_image('clients/blog', $lBlog['article_image'], '260', '180', 'R'); ?>" />
                  </div>
                </a>
                <h5><a href="<?php echo site_url() . $lBlog['friendly_url']; ?>"><?php echo $lBlog['article_title']; ?></a></h5>
              </div>
              <?php
            }
          }


          if (is_array($catRes) && !empty($catRes)) {
            ?>
            <div class="left_sidebar">
              <div class="left_title">Popular Category</div>
              <ul>
                <?php
                foreach ($catRes as $catVal) {
                  ?>
                  <li><a href="<?php echo site_url().$catVal['friendly_url']; ?>" title="<?php echo $catVal['category_name']; ?>"><?php echo $catVal['category_name']; ?></a></li>
                  <?php
                }
                ?>
              </ul>
            </div>
          </div>
          <?php
        }
        ?>
      </div>
    </div>
  </div>
</section>
<!-- Home Clients -->
<?php echo comp_clients(); ?>
<!-- Footer--->
<?php $this->load->view('wpstemplate/bottom_footer'); ?>