<?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'       => 'SL_Facebook',
                     'field_type'     => 'text',
                     'field_title'     => 'Facebook Link',
                     'field_data' => $_POST['SL_Facebook'],
                 ),
                 array(
                     'field_id'       => 'SL_X',
                     'field_type'     => 'text',
                     'field_title'     => 'Twitter (X)',
                     'field_data' => $_POST['SL_X'],
                 ),
                 array(
                     'field_id'       => 'SL_Linkedin',
                     'field_type'     => 'text',
                     'field_title'     => 'Linked In Link',
                     'field_data' => $_POST['SL_Linkedin'],
                 ),
                 array(
                     'field_id'       => 'SL_Instagram',
                     'field_type'     => 'text',
                     'field_title'     => 'Instagram Link',
                     'field_data' => $_POST['SL_Instagram'],
                 ),
                 array(
                     'field_id'       => 'SL_Youtube',
                     'field_type'     => 'text',
                     'field_title'     => 'Youtube Link',
                     'field_data' => $_POST['SL_Youtube'],
                 ),
                 array(
                     'field_id'       => 'SL_Whatsapp',
                     'field_type'     => 'text',
                     'field_title'     => 'Whatsapp Number',
                     'field_data' => $_POST['SL_Whatsapp'],
                 ),
                 array(
                     'field_id'       => 'SL_Email',
                     'field_type'     => 'text',
                     'field_title'     => 'Email Address ',
                     'field_data' => $_POST['SL_Email'],
                 ),
                 array(
                     'field_id'       => 'SL_Youtube_ID',
                     'field_type'     => 'text',
                     'field_title'     => 'Youtube Channel ID',
                     'field_data' => $_POST['SL_Youtube_ID'],
                 ),
                 array(
                     'field_id'       => 'G_News_Link',
                     'field_type'     => 'text',
                     'field_title'     => 'Google News Link',
                     'field_data' => $_POST['G_News_Link'],
                 ),
                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'); ?>
