<?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'       => 'PostAdsCtl',
                    '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['PostAdsCtl'],
                ),
                array(
                    'field_type'     => 'separetor',
                ),
                array(
                    'field_id'       => 'inPostAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Middle Post Content 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['inPostAds1'],
                ),
                array(
                    'field_id'       => 'inPostAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Middle Post Content 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['inPostAds2'],
                ),
                array(
                    'field_id'       => 'inPostAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Middle Post Content 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['inPostAds3'],
                ),
                array(
                    'field_type'     => 'separetor',
                ),
                array(
                    'field_id'       => 'PostAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 1',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds1'],
                ),
                array(
                    'field_id'       => 'PostAds2',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 2',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds2'],
                ),
                array(
                    'field_id'       => 'PostAds3',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 3',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds3'],
                ),
                array(
                    'field_id'       => 'PostAds4',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 4',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds4'],
                ),
                array(
                    'field_id'       => 'PostAds5',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 5',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds5'],
                ),
                array(
                    'field_id'       => 'PostAds6',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 6',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds6'],
                ),
                array(
                    'field_id'       => 'PostAds7',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 7',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds7'],
                ),
                array(
                    'field_id'       => 'PostAds8',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 8',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds8'],
                ),
                array(
                    'field_id'       => 'PostAds9',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 9',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds9'],
                ),
                array(
                    'field_id'       => 'PostAds10',
                    'field_type'     => 'ads',
                    'field_title'    => 'Post Ads 10',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['PostAds10'],
                ),

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