<?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'       => 'HomeAdsCtl',
                    '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['HomeAdsCtl'],
                ),
                array(
                    'field_id'       => 'HomeAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds1'],
                ),
                array(
                    'field_id'       => 'HomeAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds2'],
                ),
                array(
                    'field_id'       => 'HomeAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds3'],
                ),
                array(
                    'field_id'       => 'HomeAds4',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 4',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds4'],
                ),
                array(
                    'field_id'       => 'HomeAds5',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 5',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds5'],
                ),
                array(
                    'field_id'       => 'HomeAds6',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 6',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds6'],
                ),
                array(
                    'field_id'       => 'HomeAds7',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 7',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds7'],
                ),
                array(
                    'field_id'       => 'HomeAds8',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 8',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds8'],
                ),
                array(
                    'field_id'       => 'HomeAds9',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 9',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds9'],
                ),
                array(
                    'field_id'       => 'HomeAds10',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 10',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds10'],
                ),
                array(
                    'field_id'       => 'HomeAds11',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 11',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds11'],
                ),
                array(
                    'field_id'       => 'HomeAds12',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 12',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds12'],
                ),
                array(
                    'field_id'       => 'HomeAds13',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 13',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds13'],
                ),
                array(
                    'field_id'       => 'HomeAds14',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 14',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds14'],
                ),
                array(
                    'field_id'       => 'HomeAds15',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 15',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds15'],
                ),
                array(
                    'field_id'       => 'HomeAds16',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 16',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds16'],
                ),
                array(
                    'field_id'       => 'HomeAds17',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 17',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds17'],
                ),
                array(
                    'field_id'       => 'HomeAds18',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 18',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds18'],
                ),
                array(
                    'field_id'       => 'HomeAds19',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 19',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds19'],
                ),
                array(
                    'field_id'       => 'HomeAds20',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 20',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds20'],
                ),
                array(
                    'field_id'       => 'HomeAds21',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 21',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds21'],
                ),
                array(
                    'field_id'       => 'HomeAds22',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 22',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds22'],
                ),
                array(
                    'field_id'       => 'HomeAds23',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 23',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds23'],
                ),
                array(
                    'field_id'       => 'HomeAds24',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 24',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds24'],
                ),
                array(
                    'field_id'       => 'HomeAds25',
                    'field_type'     => 'ads',
                    'field_title'    => 'Home Ads 25',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['HomeAds25'],
                ),

                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'); ?>
