<?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'       => 'Website_title',
                     'field_type'     => 'text',
                     'field_title'     => 'Website Title',
                     'field_data' => $_POST['Website_title'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'COMPANY_NAME',
                     'field_type'     => 'text',
                     'field_title'    => 'Website Title (English)', 
                     'field_data'     => $_POST['COMPANY_NAME'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'Website_Description',
                     'field_type'     => 'textarea',
                     'field_title'     => 'Website Descriptions ',
                     'field_data' => $_POST['Website_Description'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'Website_Keyword',
                     'field_type'     => 'textarea',
                     'field_title'     => 'Meta Keyword',
                     'field_data' => $_POST['Website_Keyword'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'Website_Logo',
                     'field_type'     => 'select_file',
                     'field_image'   => true,
                     'field_title'     => 'Logo',
                     'field_desc'  => 'Global Logo For your Website  ',
                     'field_data' => $_POST['Website_Logo'],
                     'field_required' => true,
                 ),
                  array(
                      'field_id'       => 'Website_Logo_Dark',
                      'field_type'     => 'select_file',
                      'field_image'   => true,
                      'field_title'     => 'Logo (Dark Theme)',
                      'field_desc'  => 'Dark Logo Logo For Mobile and PC Header',
                      'field_data' => $_POST['Website_Logo_Dark'],
                      'field_required' => true,
                  ),
                 array(
                     'field_id'       => 'Website_Fevicon',
                     'field_type'     => 'select_file',
                     'field_image'   => true,
                     'field_title'     => 'Fevicon',
                     'field_subtitle'     => 'Size : 500x500px',
                     'field_desc'  => 'Fevicon for title image.',
                     'field_data' => $_POST['Website_Fevicon'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'Header_logo_size',
                     'field_type'     => 'text',
                     'field_title'     => 'Header Logo Size',
                     'field_desc'  => 'Header Logo Size in px.',
                     'field_data' => $_POST['Header_logo_size'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'Website_Social',
                     'field_type'     => 'select_file',
                     'field_image'   => true,
                     'field_title'     => 'Social Default Image',
                     'field_subtitle'     => 'Size :  1200 x 630 pixels',
                     'field_desc'  => 'This image will show on facebook and others social media',
                     'field_data' => $_POST['Website_Social'],
                     'field_required' => true,
                 ),
                 array(
                     'field_id'       => 'Theme_Color',
                     'field_type'     => 'color',
                     'field_title'     => 'Primary  Theme Color',
                     'field_data' => $_POST['Theme_Color'],
                 ),
                 array(
                     'field_id'       => 'Secondary_Theme_Color',
                     'field_type'     => 'color',
                     'field_title'     => 'Secondary Theme Color',
                     'field_data' => $_POST['Secondary_Theme_Color'],
                 ),
                 array(
                     'field_id'       => 'WebsiteTheme',
                     'field_type'     => 'select',
                     'field_title'     => 'Website Theme',
                     'field_data' => $_POST['WebsiteTheme'],
                     'field_required' => true,
                     'field_options' =>  array(
                       'light' => 'Light',
                       'dark' => 'Dark',
                       'device' => 'Device',
                      ),
                 ),
                 array(
                     'field_id'       => 'Title_Separetor',
                     'field_type'     => 'select',
                     'field_title'     => 'Title Separetor',
                     'field_data' => $_POST['Title_Separetor'],
                     'field_options' =>  array(
                       ' | ' => 'Title | Descriptions',
                       ' - ' => 'Title - Descriptions',
                       ' : ' => 'Title : Descriptions',
                       ' :: ' => 'Title :: Descriptions',
                      ),
                 ),
                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'); ?>
