<?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'       => 'PostTitleFontSize',
                     'field_type'     => 'text',
                     'field_title'     => 'Title Font Size',
                     'field_data' => $_POST['PostTitleFontSize'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'PostContentFontSize',
                     'field_type'     => 'text',
                     'field_title'     => 'Content Font Size',
                     'field_data' => $_POST['PostContentFontSize'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'PostTitleFontSizeCtrl',
                     'field_type'     => 'switch',
                     'field_title'     => 'Content Font Size Control',
                     'field_desc'  => 'Show Font Size Controll Button',
                     'field_data' => $_POST['PostTitleFontSizeCtrl'],
                 ),
                 array(
                     'field_type'     => 'separetor',
                 ),
                 array(
                     'field_id'       => 'PostFbComment',
                     'field_type'     => 'switch',
                     'field_title'     => 'Facebook Comment',
                     'field_desc'  => 'Show Facebook Comment Feature',
                     'field_data' => $_POST['PostFbComment'],
                 ),
                 array(
                     'field_id'       => 'PostFbCommentAppID',
                     'field_type'     => 'text',
                     'field_title'     => 'FB App ID',
                     'field_desc'  => 'App ID requered for facebook comment. <a target="_blunk" href="https://developers.facebook.com/docs/plugins/comments/">Get App ID</a>',
                     'field_data' => $_POST['PostFbCommentAppID'],
                 ),
                 array(
                     'field_id'       => 'PostFbCommentTitle',
                     'field_type'     => 'text',
                     'field_title'     => 'FB Comment Title',
                     'field_data' => $_POST['PostFbCommentTitle'],
                     'field_required' => true,
                 ),
                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'); ?>
