<?php echo $header; ?>
<div class="container">
  <ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>
  <div class="row"><?php echo $column_left; ?>
    <?php if ($column_left && $column_right) { ?>
    <?php $class = 'col-sm-6'; ?>
    <?php } elseif ($column_left || $column_right) { ?>
    <?php $class = 'col-sm-9'; ?>
    <?php } else { ?>
    <?php $class = 'col-sm-12'; ?>
    <?php } ?>
    <div id="content" class="<?php echo $class; ?> all-blog"><?php echo $content_top; ?>
      <h1><?php echo $text_blogs; ?></h1>
      <?php if ($blogs) { ?>
      <?php foreach ($blogs as $blog) { ?>
      <div class="panel-default">
        <?php /*?><h4><?php echo $blog['name']; ?></h4><?php */?>
        <?php if ($blog['blog_data']) { ?>
        <?php foreach ($blog['blog_data'] as $topic) { ?>
        <div class="panel panel-default">
          <div class="panel-body">
		  
		   <?php if ($topic['image']) { ?>
		   <div class="blog-left-content">
		  <h5 class="blog-title"><a href="<?php echo $topic['href']; ?>"><?php echo $topic['title']; ?></a></h5>
		  <div class="blog-image">
	  		<img src="<?php echo $topic['image']; ?>" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" class="img-thumbnail" />
			<div class="post-image-hover"> </div>
<p class="post_hover"><a class="icon zoom" title="Click to view Full Image " href="<?php echo $topic['image']; ?>" data-lightbox="example-set"><i class="fa fa-search-plus"></i> </a><a class="icon readmore_link" title="Click to view Read More " href="<?php echo $topic['href']; ?>"><i class="fa fa-link"></i></a></p>
			
	  	  </div>
		  </div>
		  <?php } ?>
		  
		  
		  <div class="blog-right-content">
		  	<div class="blog-date-comment">
				<div class="blog-date"><?php echo $topic['date_added']; ?></div>
				<div class="comment-wrapper">
					<div class="write-comment-count"><?php echo $topic['total_comments']; ?> <?php echo $entry_comment; ?></div>
					<div class="write-comment"> <a href="<?php echo $topic['href']; ?>"><?php echo $text_leave_comment; ?></a> </div>
				</div>
			</div>
            <div class="blog-desc"><?php echo $topic['description']; ?> </div>			
			<div class="read-more"> <a href="<?php echo $topic['href']; ?>" class="btn btn-default"> <i class="fa fa-link"></i> <?php echo $text_read_more; ?></a> </div>  
			
          </div>
		  </div>
        </div>
        <?php } ?>
        <?php } else { ?>
        <div class="panel-body text-center"><?php echo $text_no_blogs; ?></div>
        <?php } ?>
        </div>
        <?php } ?>
      <?php } else { ?>
      <div class="panel-body text-center"><?php echo $text_no_blogs; ?></div>
      <?php } ?>
    <?php echo $content_bottom; ?></div>
  <?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>