<?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'       => 'AuthorAdsCtl',
                    'field_type'     => 'switch',
                    'field_title'     => 'Show Ads Positions',
                    'field_desc'  => 'View ad positions to understand their placement. Hidden ads will appear based on device size.',
                    'field_data' => $_POST['AuthorAdsCtl'],
                ),
                array(
                    'field_id'       => 'AuthorAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds1'],
                ),
                array(
                    'field_id'       => 'AuthorAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds2'],
                ),
                array(
                    'field_id'       => 'AuthorAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds3'],
                ),
                array(
                    'field_id'       => 'AuthorAds4',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 4',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds4'],
                ),
                array(
                    'field_id'       => 'AuthorAds5',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 5',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds5'],
                ),
                array(
                    'field_id'       => 'AuthorAds6',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 6',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds6'],
                ),
                array(
                    'field_id'       => 'AuthorAds7',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 7',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds7'],
                ),
                array(
                    'field_id'       => 'AuthorAds8',
                    'field_type'     => 'ads',
                    'field_title'    => 'Author Ads 8',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['AuthorAds8'],
                ),
                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'); ?>
