<?php
require_once('config.php');
require_once('inc/header.php');
?>
<main id="main" class="main">
  <div class="row">
    <div class="col-6 align-items-center">
      <div class="pagetitle mb-2">
        <h1><?php echo $page_title ?></h1>
      </div>
    </div>
  </div>
  <section class="section mt-4">
    <div class="row">
      <div class="col-lg-12">

        <form action="" method="post" enctype="multipart/form-data">
          <?php
          $args = array(
              'fields' => array(
                array(
                  'field_id'       => 'Custome_Header_JS',
                  'field_type'     => 'code',
                  'field_desc'  => 'Write custome javascript without &lt;script&gt; tag.',
                  'field_title'  => 'Custome Header Code',
                  'field_data' => $_POST['Custome_Header_JS'],
                ),
                array(
                  'field_id'       => 'Custome_Footer_JS',
                  'field_type'     => 'code',
                  'field_desc'  => 'Write custome javascript without &lt;script&gt; tag.',
                  'field_title'  => 'Custome Header Code',
                  'field_data' => $_POST['Custome_Footer_JS'],
                ),
                array(
                    'field_id'     => 'update',
                    'field_type'   => 'button',
                    'btn_theme' => 'success',
                    'field_title'   => 'Save Changes',
                )
              )
          );
          AdvanceNews($args);
          ?>
          </form>

       </div>
    </div>
  </section>
</main>
<?php require_once('inc/footer.php'); ?>
