<?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'       => 'TopicAdsCtl',
                    '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['TopicAdsCtl'],
                ),
                array(
                    'field_id'       => 'TopicAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds1'],
                ),
                array(
                    'field_id'       => 'TopicAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds2'],
                ),
                array(
                    'field_id'       => 'TopicAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds3'],
                ),
                array(
                    'field_id'       => 'TopicAds4',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 4',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds4'],
                ),
                array(
                    'field_id'       => 'TopicAds5',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 5',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds5'],
                ),
                array(
                    'field_id'       => 'TopicAds6',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 6',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds6'],
                ),
                array(
                    'field_id'       => 'TopicAds7',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 7',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds7'],
                ),
                array(
                    'field_id'       => 'TopicAds8',
                    'field_type'     => 'ads',
                    'field_title'    => 'Topic Ads 8',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['TopicAds8'],
                ),
                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'); ?>
