<?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 col-xs-12'; ?>
    <?php } else { ?>
    <?php $class = 'col-sm-12'; ?>
    <?php } ?>
    <div id="content" class="<?php echo $class; ?>"><?php echo $content_top; ?>
      <?php if ($articles) { ?>
      <div class="article-page">
        <?php $i=0; foreach ($articles as $article) { $i++; ?>
        <div class="article-layout article-list">
          <div class="article-item <?php echo ($i%2==0) ? 'even' : 'odd'; ?>">
			<div class="article-item-inner row">
				<div class="article-image col-sm-5">
					<img  class=" lazy"  src="<?php echo $article['image']; ?>" alt="<?php echo $article['name']; ?>"/>
				</div>
			  <div class="article-intro col-sm-7">
				<div class="article-name">
					<a href="<?php echo $article['href']; ?>"><?php echo $article['name']; ?></a>
				</div>
				<p class="articledate">
					<i class="fa fa-clock-o" aria-hidden="true"></i><?php echo $article['date_added']; ?>
					<?php if($article['author'] != null && $article['author'] != ""){ ?>				  					
						<?php echo "/ " . $text_post_by . $article['author']; ?>
					<?php } ?>
				</p>
				<div class="intro-content"><?php echo $article['intro_text']; ?></div>
				<a class="readmore-page" href="<?php echo $article['href']; ?>">
					<?php echo $button_read_more; ?><i class="fa fa-arrow-right" aria-hidden="true"></i>
				</a>
			  </div>			  
			</div>
		  </div>
        </div>
        <?php } ?>
      </div>
      <div class="toolbar toolbar-products toolbar-bottom">
			<div class="toolbar-amount">
				<span><?php echo $results; ?></span>
			</div>
			<div class="pages">
				<?php echo $pagination; ?>
			</div>
		   
		</div>
      <?php } ?>
      <?php if (!$articles) { ?>
      <p><?php echo $text_empty; ?></p>
      <?php } ?>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>
