<?php include_once APP_PATH.'template/business/tplblocks/header.php';?>

<?php if (JAK_CLIENTID && $jakclient->getVar("frontendadmin") == 1) { ?>
  <div class="col-md-8 ml-auto mr-auto text-center mb-1">
    <button class="btn btn-sm btn-primary firefrontedit ps-<?php echo $pageid;?>" data-area="page-standard-<?php echo $pageid;?>" data-pageid="ps-<?php echo $pageid;?>" data-lighteditor="false" type="button"><?php echo $jkl['hd66'];?></button>
    <button class="btn btn-sm btn-success firefrontsave ps-<?php echo $pageid;?>" data-area="page-standard-<?php echo $pageid;?>" data-pageid="ps-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd53'];?></button>
    <button class="btn btn-sm btn-danger firefrontclose ps-<?php echo $pageid;?>" data-area="page-standard-<?php echo $pageid;?>" data-pageid="ps-<?php echo $pageid;?>" type="button"><?php echo $jkl['hd162'];?></button>
  </div>
<?php } ?>

<div class="section">
  <div class="container">
    <div class="col-md-12 page-standard-<?php echo $pageid;?>">
      <?php if (isset($cms_text) && !empty($cms_text)) foreach ($cms_text as $t) { if ($t["cmsslug"].$t["cmsid"] == 'page-standard-'.$pageid) {

        $results = $t["description"];
        $pattern = "/{([a-z_]+)}/";
        $results = preg_replace_callback($pattern, "produce_replacement", $results);
        echo $results;
        break;

      } } ?>

    </div>
  </div>
</div>

<?php include_once APP_PATH.'template/business/tplblocks/footer.php';?>
