<?php echo $header; ?>
<?php if ($journal3->get('pageTitlePosition') == 'top') { ?>
  <h1 class="title page-title <?php echo $journal3->get("title_color_scheme"); ?>"><span class="page-title-text"><?php echo $heading_title; ?></span></h1>
<?php } ?>
<div class="breadcrumbs <?php echo $journal3->get("breadcrumbs_color_scheme"); ?>">
  <ul class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
      <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>
</div>
<?php echo $journal3_top; ?>
<div id="product-manufacturer" class="container">
  <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 if ($journal3->get('pageTitlePosition') == 'default') { ?>
      <h1 class="title page-title <?php echo $journal3->get("title_color_scheme"); ?>"><?php echo $heading_title; ?></h1>
      <?php } ?>
      <?php echo $content_top; ?>
      <div class="main-products-wrapper">
      <?php if ($products) { ?>
      <?php if ($journal3->get('sortBarStatus')) { ?>
      <div class="products-filter">
        <div class="grid-list">
          <button id="btn-grid-view" class="view-btn <?php if($journal3->get('globalProductView') == 'grid') { ?>active<?php } ?>" <?php if ($journal3->is_desktop) { ?>data-toggle="tooltip-hover"<?php } ?> title="<?php echo $button_grid; ?>" data-view="grid" <?php echo $button_grid; ?>></button>
          <button id="btn-list-view" class="view-btn <?php if($journal3->get('globalProductView') == 'list') { ?>active<?php } ?>" <?php if ($journal3->is_desktop) { ?>data-toggle="tooltip-hover"<?php } ?> title="<?php echo $button_list; ?>" data-view="list" <?php echo $button_list; ?>></button>
          <a href="<?php echo $compare; ?>" id="compare-total" class="compare-btn" title="<?php echo $text_compare; ?>"><?php echo $journal3_text_compare; ?></a>
        </div>
        <div class="select-group">
          <div class="input-group input-group-sm sort-by">
            <label class="input-group-addon" for="input-sort"><?php echo $text_sort; ?></label>
            <select id="input-sort" class="form-control" data-filter-sort="<?php echo $journal3_filter_sort; ?>" data-filter-order="<?php echo $journal3_filter_order; ?>">
              <?php foreach ($sorts as $sorts) { ?>
              <?php if ($sorts['value'] == $sort . '-' . $order) { ?>
              <option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
              <?php } ?>
              <?php } ?>
            </select>
          </div>
          <div class="input-group input-group-sm per-page">
            <label class="input-group-addon" for="input-limit"><?php echo $text_limit; ?></label>
            <select id="input-limit" class="form-control" data-filter-limit="<?php echo $journal3_filter_limit; ?>">
              <?php foreach ($limits as $limits) { ?>
              <?php if ($limits['value'] == $limit) { ?>
              <option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
              <?php } else { ?>
              <option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
              <?php } ?>
              <?php } ?>
            </select>
          </div>
        </div>
      </div>
      <?php } ?>
      <div class="main-products main-products-style product-<?php echo $journal3->get('globalProductView'); ?> <?php echo $journal3->get('globalProductGridType'); ?>-grid">
        <?php echo $products; ?>
      </div>
      <div class="row pagination-results">
        <div class="col-sm-6 text-left"><?php echo $pagination; ?></div>
        <div class="col-sm-6 text-right"><?php echo $results; ?></div>
      </div>
      <?php } else { ?>
      <p><?php echo $text_empty; ?></p>
      <div class="buttons">
        <div class="pull-right"><a href="<?php echo $continue; ?>" class="btn btn-primary"><?php echo $button_continue; ?></a></div>
      </div>
      <?php } ?>
      </div>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>
<?php echo $footer; ?>
