<?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'       => 'pStories_Logo',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Story Logo',
                    'field_subtitle'     => 'Size : 500x500px',
                    'field_data' => $_POST['pStories_Logo'],
                ),
                 array(
                     'field_id'       => 'pStories_Animation',
                     'field_type'     => 'text',
                     'field_title'     => 'Story Duration',
                     'field_subtitle'     => 'Story Duration in Second', 
                     'field_data' => $_POST['pStories_Animation'],
                     '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'); ?>
