<header class="page-header">
  <div id="carouselHD3Indicators" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
      <li data-target="#carouselHD3Indicators" data-slide-to="0" class="active"></li>
      <li data-target="#carouselHD3Indicators" data-slide-to="1"></li>
      <li data-target="#carouselHD3Indicators" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner" role="listbox">
      <!-- Slide One - Set the background image for this slide in the line below -->
      <div class="carousel-item active" style="background-image: url('<?php echo (isset($JAK_CMS_PAGE["previmg"]) && !empty($JAK_CMS_PAGE["previmg"]) ? (!empty(JAK_EDITOR_PATH_BASE) ? str_replace(JAK_EDITOR_PATH_BASE, BASE_URL) : BASE_URL).$JAK_CMS_PAGE["previmg"] : BASE_URL."files/editor/header/bg3.jpg");?>')">
        <div class="carousel-caption">
          <?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
      <div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 120px">
        <button class="btn btn-sm btn-primary firefrontedit hsli-<?php echo $pageid;?>" data-area="header-slider-<?php echo $pageid;?>" data-pageid="hsli-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
        <button class="btn btn-sm btn-success firefrontsave hsli-<?php echo $pageid;?>" data-area="header-slider-<?php echo $pageid;?>" data-pageid="hsli-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
        <button class="btn btn-sm btn-danger firefrontclose hsli-<?php echo $pageid;?>" data-area="header-slider-<?php echo $pageid;?>" data-pageid="hsli-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
      </div>
      <?php } ?>
      <div class="header-slider-<?php echo $pageid;?>">
        <?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-slider-'.$pageid) { echo $t["description"]; break; } } ?>
      </div>
        </div>
      </div>
      <!-- Slide Two - Set the background image for this slide in the line below -->
      <div class="carousel-item" style="background-image: url('<?php echo BASE_URL;?>files/editor/header/bg3.jpg')">
        <div class="carousel-caption">
        <?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
      <div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 100px">
        <button class="btn btn-sm btn-primary firefrontedit hslit-<?php echo $pageid;?>" data-area="header-slider-two-<?php echo $pageid;?>" data-pageid="hslit-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
        <button class="btn btn-sm btn-success firefrontsave hslit-<?php echo $pageid;?>" data-area="header-slider-two-<?php echo $pageid;?>" data-pageid="hslit-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
        <button class="btn btn-sm btn-danger firefrontclose hslit-<?php echo $pageid;?>" data-area="header-slider-two-<?php echo $pageid;?>" data-pageid="hslit-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
      </div>
      <?php } ?>
      <div class="header-slider-two-<?php echo $pageid;?>">
        <?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-slider-two-'.$pageid) { echo $t["description"]; break; } } ?>
      </div>
        </div>
      </div>
      <!-- Slide Three - Set the background image for this slide in the line below -->
      <div class="carousel-item" style="background-image: url('<?php echo BASE_URL;?>files/editor/header/bg9.jpg')">
        <div class="carousel-caption">
          <?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
      <div class="col-md-8 ml-auto mr-auto text-center mb-1" style="margin-top: 100px">
        <button class="btn btn-sm btn-primary firefrontedit hslitr-<?php echo $pageid;?>" data-area="header-slider-three-<?php echo $pageid;?>" data-pageid="hslitr-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
        <button class="btn btn-sm btn-success firefrontsave hslitr-<?php echo $pageid;?>" data-area="header-slider-three-<?php echo $pageid;?>" data-pageid="hslitr-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
        <button class="btn btn-sm btn-danger firefrontclose hslitr-<?php echo $pageid;?>" data-area="header-slider-three-<?php echo $pageid;?>" data-pageid="hslitr-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
      </div>
      <?php } ?>
      <div class="header-slider-three-<?php echo $pageid;?>">
        <?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'header-slider-three-'.$pageid) { echo $t["description"]; break; } } ?>
      </div>
        </div>
      </div>
    </div>
    <a class="carousel-control-prev" href="#carouselHD3Indicators" role="button" data-slide="prev">
          <span class="carousel-control-prev-icon" aria-hidden="true"></span>
          <span class="sr-only">Previous</span>
        </a>
    <a class="carousel-control-next" href="#carouselHD3Indicators" role="button" data-slide="next">
          <span class="carousel-control-next-icon" aria-hidden="true"></span>
          <span class="sr-only">Next</span>
        </a>
  </div>
</header>
