<?php echo $header; ?>
<div class="container news">
  <ul id="breadcrumbs-one">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
    <?php } ?>
  </ul>
  <div id="content">
    <?php if(!$products) { ?>
    <h1 class="text-center news-h2 h2"><?php echo $heading_title; ?></h1>
      <div class="row">
        <?php foreach ($categories as $category) { ?>
        <div class="col-xs-12 col-sm-6 col-md-6 nomera-col img-bg-hover">
          <div class="image">
            <a href="<?php echo $category['href']; ?>"> <div class="img-bg">Подробнее</div>
              <img src="<?php echo $category['image570']; ?>" alt="<?php echo $category['name']; ?>" title="<?php echo $category['name']; ?>">
            </a>
          </div>
          <h3 class="spa-title"><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></h3>
        </div>
        <?php } ?>
      </div>
    <?php } else { ?>
      <h1 class="text-center h2"><?php echo $heading_title; ?></h1>
      <div class="row">
        <?php foreach ($categories as $category) { ?>
        <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 nomera-col-kotted img-bg-hover">
          <a href="<?php echo $category['href']; ?>" class="nomera-link">
            <div class="image">
              <div class="img-bg"></div>
              <img src="<?php echo $category['image250']; ?>" alt="<?php echo $category['name']; ?>" title="<?php echo $category['name']; ?>">
            </div>
            <h3 class="spa-title text-center"><?php echo $category['name']; ?></h3>
            <!--<p class="inform-1 text-center"><?php echo 0; ?></p>-->
            <p class="inform-2 text-center"><?php echo $category['description']; ?></p>
          </a>
        </div>
        <?php } ?>
        <?php foreach ($products as $product) { ?>
          <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 nomera-col-kotted img-bg-hover">
            <a href="<?php echo $product['href']; ?>" class="nomera-link">
              <div class="image">
                <div class="img-bg"></div>
                <img src="<?php echo $product['thumb250']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>">
              </div>
              <h3 class="spa-title text-center"><?php echo $product['name']; ?></h3>
              <!--<p class="inform-1 text-center"><?php echo $product['places']; ?></p>-->
              <p class="inform-2 text-center"><?php echo $product['price']; ?></p>
            </a>
          </div>
        <?php } ?>
      </div>
    <?php } ?>
    <?php if (!$categories && !$products) { ?>
    <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 } ?>
	                <?php if ($description) { ?>
                <div class="description-category"><?php echo $description; ?></div>
                <?php } ?>
  </div>
</div>
<?php echo $footer; ?>
