<?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'       => 'Poll_fImage_OG',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Poll OG Image ',
                    'field_desc'  => 'Poll OG Image    ',
                    'field_data' => $_POST['Poll_fImage_OG'],
                    'field_required' => true,
                ),
                array(
                    'field_id'       => 'Poll_DF_Img',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Poll Default Image ',
                    'field_data' => $_POST['Poll_DF_Img'],
                    'field_required' => true,
                ),
                array(
                    'field_id'       => 'SinglePollAds1',
                    'field_type'     => 'ads',
                    'field_title'    => 'Single Poll Page Ads',
                    'field_subtitle' => 'Use Image ads or Custom Ads Code',
                    'field_data'     => $_POST['SinglePollAds1'],
                ),
                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'); ?>
