<?php echo $header; ?>
<?php echo $fulltop; ?>
   <section class="g-bg-secondary">
      <div class="container text-center g-pt-120 g-pb-50">
        <div class="row justify-content-center">
          <div class="col-lg-9">
            <div class="g-mb-0">
              <h2 class="h2 g-color-black g-font-weight-600 mb-2"><?php echo $heading_title; ?></h2>
              <div class="d-inline-block g-width-55 g-height-1 g-bg-black mb-2"></div>
			  <?php if($description){ ?>
              <?php echo $description; ?>
			  <?php } ?>
            </div>
          </div>
        </div>
      </div>
    </section>
          
      
<div class="container g-py-70">
  <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; ?>"><?php echo $content_top; ?>	
    <?php if($blogs){ ?>

			<?php foreach ($blogs as $blog) { ?>            
                <div class="<?php echo $list_columns; ?> g-bg-gray-light-v5 g-mb-30">
				<article class="row align-items-center g-mb-30">
              <div class="col-md-5 g-mb-30 g-mb-0--lg">
                <figure class="g-pos-rel">
				<?php if($blog['image']){ ?>
                  <img class="img-fluid w-100" src="<?php echo $blog['image']; ?>" alt="<?php echo $blog['title']; ?>">
                 <?php } ?>
				 <?php if($date_added_status){ ?>
                  <figcaption class="g-pos-abs g-top-20 g-left-20">
                    <span class="u-label g-bg-purple g-color-white rounded-0"><?php echo $blog['date_added_full']; ?></span>
                  </figcaption>
				  <?php } ?>
                </figure>
              </div>

              <div class="col-md-7">
                <div class="g-pa-15">
                  <h3 class="g-font-size-16 g-font-weight-700 g-color-black g-mb-15">
                      <a class="u-link-v5 g-color-black" href="<?php echo $blog['href']; ?>"><?php echo $blog['title']; ?></a>
                    </h3>
					
                  <ul class="u-list-inline g-color-gray-dark-v4 g-font-size-12 g-mb-10 g-hidden-xs-down">
				  <?php if($author_status){ ?>
                    <li class="list-inline-item">
                      <?php echo $blog['author']; ?>
                    </li>
					<?php } ?>
					<?php if($comments_count_status){ ?>
                    <li class="list-inline-item g-px-30">
                      <a class="u-link-v5 g-color-gray-dark-v4">
					  <i class="fa fa-comments-o align-middle mr-1"></i> <?php echo $blog['comment_total']; ?></a>
                    </li>
					<?php } ?>

					<?php if($page_view_status){ ?>
                    <li class="list-inline-item g-mr-30">
                      <a class="u-link-v5 g-color-gray-dark-v4">
                        <i class="fa fa-eye align-middle mr-1"></i> <?php echo $blog['count_read']; ?>
                      </a>
                    </li>
					<?php } ?>
                  </ul>

                  <a class="u-link-v5 g-color-gray-dark-v4 g-hidden-xs-down" href="<?php echo $blog['href']; ?>"><?php echo $blog['short_description']; ?></a>
                </div>
              </div>
            </article>
                </div>
			<?php } ?>

      <nav class="text-center" aria-label="Page Navigation">
        <?php echo $pagination; ?>
      </nav>
	<?php }else{ ?>
		<div><?php echo $text_no_results; ?></div>
	<?php } ?>
	
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<?php echo $copyright; ?>
<?php echo $fullbottom; ?>
<?php echo $footer; ?> 