<?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'       => 'SearchAdsCtl',
                    '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['SearchAdsCtl'],
                ),
                array(
                    'field_id'       => 'SearchAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds1'],
                ),
                array(
                    'field_id'       => 'SearchAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds2'],
                ),
                array(
                    'field_id'       => 'SearchAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds3'],
                ),
                array(
                    'field_id'       => 'SearchAds4',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 4',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds4'],
                ),
                array(
                    'field_id'       => 'SearchAds5',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 5',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds5'],
                ),
                array(
                    'field_id'       => 'SearchAds6',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 6',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds6'],
                ),
                array(
                    'field_id'       => 'SearchAds7',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 7',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds7'],
                ),
                array(
                    'field_id'       => 'SearchAds8',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 8',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds8'],
                ),
                array(
                    'field_id'       => 'SearchAds9',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 9',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds9'],
                ),
                array(
                    'field_id'       => 'SearchAds10',
                    'field_type'     => 'ads',
                    'field_title'    => 'Search Ads 10',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SearchAds10'],
                ),
                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'); ?>
