<?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'       => 'Contact_Number_Moblie',
                    'field_type'     => 'text',
                    'field_title'     => 'Mobile Number',
                    'field_data' => $_POST['Contact_Number_Moblie'],
                ),
                array(
                    'field_id'       => 'Contact_Email_Address',
                    'field_type'     => 'text',
                    'field_title'     => 'Contact Email Address',
                    'field_data' => $_POST['Contact_Email_Address'],
                ),
                array(
                    'field_id'       => 'Contact_Office_Address',
                    'field_type'     => 'textarea',
                    'field_title'     => 'Office Address',
                    'field_data' => $_POST['Contact_Office_Address'],
                ),
                 array(
                     'field_id'       => 'Facebook_Page_ID',
                     'field_type'     => 'text',
                     'field_title'     => 'Facebook Page ID',
                     'field_desc'  => 'Facebook Page id for social meta ( <a href="https://web.facebook.com/help/1503421039731588" target="_blank" > Learn More </a> )',
                     'field_data' => $_POST['Facebook_Page_ID'],
                 ),
                 array(
                     'field_id'       => 'Facebook_link',
                     'field_type'     => 'url',
                     'field_title'     => 'Facebook Link',
                     'field_desc'  => 'Facebook Page/Profile (https://facebook.com/pagename)',
                     'field_data' => $_POST['Facebook_link'],
                 ), 
                 array(
                     'field_id'       => 'Twitter_link',
                     'field_type'     => 'url',
                     'field_title'     => 'Twitter Link',
                     'field_desc'  => 'Twitter Profile',
                     'field_data' => $_POST['Twitter_link'],
                 ),
                 array(
                     'field_id'       => 'Youtube_link',
                     'field_type'     => 'url',
                     'field_title'     => 'Youtube Link',
                     'field_desc'   => 'Youtube Link',
                     'field_data' => $_POST['Youtube_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'); ?>
