<?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; ?>"><?php echo $content_top; ?>
      <h1><?php echo $heading_title; ?></h1>
      <div class="row">
        <div class="col-sm-6">
          <ul>
            <?php if($categories){ ?>
              <?php foreach ($categories as $category_1) { ?>
              <li><a href="<?php echo $category_1['href']; ?>"><?php echo $category_1['name']; ?></a>
                <?php if ($category_1['children']) { ?>
                <ul>
                  <?php foreach ($category_1['children'] as $category_2) { ?>
                  <li><a href="<?php echo $category_2['href']; ?>"><?php echo $category_2['name']; ?></a>
                    <?php if ($category_2['children']) { ?>
                    <ul>
                      <?php foreach ($category_2['children'] as $category_3) { ?>
                      <li><a href="<?php echo $category_3['href']; ?>"><?php echo $category_3['name']; ?></a></li>
                      <?php } ?>
                    </ul>
                    <?php } ?>
                  </li>
                  <?php } ?>
                </ul>
                <?php } ?>
              </li>
              <?php } ?>
            <?php } ?>
<?php if($products){ ?>
              <?php foreach ($products as $product) { ?>
                <li><a href="<?= $product['href']; ?>"><?= $product['name']; ?></a>
              <?php } ?>
            <?php } ?>
</ul>
        </div>
        <div class="col-sm-6">
          <ul>
</ul>
        </div>
      </div>
      <?php echo $content_bottom; ?></div>
    <?php echo $column_right; ?></div>
</div>

<script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "BreadcrumbList",
      "itemListElement":<?php echo $breadcrumbs1; ?>
    }
</script>
<?php echo $footer; ?>