<div class="page-header page-header-xs" 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="filter"></div>
  <div class="content-center">
    <div class="container mt-5 pt-1">
      <?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 hs-<?php echo $pageid; ?>" data-area="header-search-<?php echo $pageid; ?>" data-pageid="hs-<?php echo $pageid; ?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66']; ?></button>
          <button class="btn btn-sm btn-success firefrontsave hs-<?php echo $pageid; ?>" data-area="header-search-<?php echo $pageid; ?>" data-pageid="hs-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd53']; ?></button>
          <button class="btn btn-sm btn-danger firefrontclose hs-<?php echo $pageid; ?>" data-area="header-search-<?php echo $pageid; ?>" data-pageid="hs-<?php echo $pageid; ?>" type="button"><?php echo $jkl['hd162']; ?></button>
        </div>
      <?php } ?>
      <div class="header-search-<?php echo $pageid; ?>">
        <?php $searchfield = true;
        if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) {
          if ($t["cmsslug"] . $t["cmsid"] == 'header-search-' . $pageid) {
            echo $t["description"];
            break;
          }
        } ?>
      </div>

      <div class="container">
        <div class="row justify-content-center">
          <div class="col-12 col-md-10 col-lg-10">
          <form class="card card-sm" method="post" action="<?php echo JAK_rewrite::jakParseurl(JAK_SEARCH_URL); ?>">
              <div class="card-body row no-gutters align-items-center">
                <div class="col pr-2"> 
                <input type="text" name="smart_search" id="smart_search" class="form-control form-control-borderless" placeholder="<?php echo $jkl['hd']; ?>" autocomplete="off">
                </div>
                <div class="col-2"> <button class="btn btn-block btn-danger" type="submit"><i class="fa fa-search"></i></button></div>
              </div>
              <input type="hidden" name="search_now" value="1">
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
