<?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'       => 'Article_fImage',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Article Image Watermark ',
                    'field_desc'  => 'Article Image Watermark  ',
                    'field_data' => $_POST['Article_fImage'],
                    'field_required' => true,
                ),
                array(
                    'field_id'       => 'Article_fImage_OG',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Article OG Image ',
                    'field_desc'  => 'Article OG Image    ',
                    'field_data' => $_POST['Article_fImage_OG'],
                    'field_required' => true,
                ),
                array(
                    'field_id'       => 'ArticleDefaultFeatured',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Article Default Image',
                    'field_subtitle'     => 'Size :  1200 x 630 pixels',
                    'field_desc'  => 'This image will show when article dont have Featured Image',
                    'field_data' => $_POST['ArticleDefaultFeatured'],
                    'field_required' => true,
                ),
                array(
                    'field_id'       => 'ArticlePreloader',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Article Preloader Image',
                    'field_subtitle'     => 'Size :  1280 x 720 pixels',
                    'field_desc'  => 'This image will show before load Featured Image',
                    'field_data' => $_POST['ArticlePreloader'],
                    'field_required' => true,
                ),
                array(
                    'field_type'     => 'separetor',
                    'field_title'     => 'Post Parmalink',
                    'field_desc'  => 'Post permalink settings and stracture <br> <small class="fw-normal">Changing this may impact old links and SEO/RSS Feed and Alredy shared items.<small> ',
                ),
                array(
                    'field_id'       => 'Post_Parmalink_text',
                    'field_type'     => 'text',
                    'field_title'     => 'Parmalink Text',
                    'field_data' => $_POST['Post_Parmalink_text'],
                    'field_required' => true,
                ),
                 array(
                     'field_id'       => 'Post_Parmalink',
                     'field_type'     => 'select',
                     'field_title'     => 'Parmalink Stracture',
                     'field_data' => $_POST['Post_Parmalink'],
                     'field_required' => true,
                     'field_options' =>  array(
                       'pl_one' => $site_domain.$advancenews["Post_Parmalink_text"].'/POST_ID/POST_NAME/',
                       'pl_two' => $site_domain.$advancenews["Post_Parmalink_text"].'/POST_ID/',
                       'pl_three' =>$site_domain.$advancenews["Post_Parmalink_text"].'/POST_NAME/',
                       'pl_four' => $site_domain.'CATEGORY_NAME/POST_NAME/',
                      ),
                 ),
                 array(
                     'field_type'     => 'separetor',
                     'field_title'     => 'Photocard & Print View',
                     'field_desc'  => ' Creatie automatic photocrad and print view. ',
                 ),
                 array(
                     'field_id'       => 'PhotoCardPublic',
                     'field_type'     => 'select',
                     'field_title'     => 'Visitor Can Download Photocard',
                     'field_data' => $_POST['PhotoCardPublic'],
                     'field_required' => true,
                     'field_options' =>  array(
                       'on' => 'On',
                       'off' => 'Off',
                      ),
                 ),
                 array(
                     'field_id'       => 'NewsPrintView',
                     'field_type'     => 'select',
                     'field_title'     => 'Digital Paper Cutting',
                     'field_data' => $_POST['NewsPrintView'],
                     'field_required' => true,
                     'field_options' =>  array(
                       'on' => 'On',
                       'off' => 'Off',
                      ),
                 ),
                 array(
                     'field_id'       => 'NewsPrintViewHeader',
                     'field_type'     => 'select_file',
                     'field_image'   => true,
                     'field_title'     => 'Print View Header Banner/Logo',
                     'field_data' => $_POST['NewsPrintViewHeader'],
                 ),
                 array(
                     'field_id'       => 'NewsPrintStyle',
                     'field_type'     => 'select',
                     'field_title'     => 'Print News Style',
                     'field_data' => $_POST['NewsPrintStyle'],
                     'field_required' => true,
                     'field_options' =>  array(
                       // 'online' => 'Online',
                       'paper1' => 'Paper Cutting 1',
                       'paper2' => 'Paper Cutting 2',
                      ),
                 ),
                 array(
                     'field_id'       => 'NewsPrintColumn',
                     'field_type'     => 'select',
                     'field_title'     => 'Print News Column',
                     'field_data' => $_POST['NewsPrintColumn'],
                     'field_required' => true,
                     'field_options' =>  array(
                       '2' => '2',
                       '3' => '3',
                      ),
                 ),
                 array(
                     'field_id'       => 'NewsPrintViewEditorInfo',
                     'field_type'     => 'textarea',
                     'field_plugin'     => true,
                     'field_title'     => 'Print View Footer Editor Information',
                     'field_data' => $_POST['NewsPrintViewEditorInfo'],
                 ),
                 array(
                     'field_id'       => 'NewsPrintViewFooter',
                     'field_type'     => 'text',
                     'field_title'     => 'Print View Footer Text',
                     'field_data' => $_POST['NewsPrintViewFooter'],
                 ),

                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'); ?>
