<?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'       => 'Header_Design',
                    'field_type'     => 'ui-select',
                    'field_title'     => 'Header Layout',
                    'field_data' => $_POST['Header_Design'],
                    'field_plc_img' => 'includes/template-part/header/images/',
                    'field_plc_img_size' => 'col-md-12',
                    'field_required' => true,
                    'field_options' =>  array(
                      'header_one' => 'Header Layout One',
                      'header_two' => 'Header Layout Two',
                      'header_Three' => 'Header Layout Three',
                      'header_four' => 'Header Layout Four',
                      'header_five' => 'Header Layout Five',
                      'header_six' => 'Header Layout Six',
                     ),
                ),
                array(
                    'field_id'       => 'Header_Container',
                    'field_type'     => 'select',
                    'field_title'     => 'Header Container',
                    'field_data' => $_POST['Header_Container'],
                    'field_options' =>  array(
                      'container' => 'Boxed',
                      'container-fluid' => 'Full Width',
                     ),
                ),
                  array(
                      'field_id'       => 'Website_Logo',
                      'field_type'     => 'select_file',
                      'field_image'   => true,
                      'field_title'     => 'Header Logo',
                      'field_desc'  => 'Logo For Mobile and PC Header',
                      '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'       => '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'       => 'H_Featured_Button_Text',
                     'field_type'     => 'text',
                     'field_title'     => 'Featured Button Text ',
                     'field_desc'  => 'Featured Button Text  if have in Header Layout',
                     'field_data' => $_POST['H_Featured_Button_Text'],
                 ),
                 array(
                     'field_id'       => 'H_Featured_Button_Link',
                     'field_type'     => 'text',
                     'field_title'     => 'Featured Button Link',
                     'field_data' => $_POST['H_Featured_Button_Link'],
                 ),

                  array(
                      'field_type'     => 'separetor',
                      'field_title'     => 'Mobile Header',
                      'field_desc'  => 'Header Design for Mobile Devices',
                  ),
                  array(
                      'field_id'       => 'mobileHeader_Design',
                      'field_type'     => 'ui-select',
                      'field_title'     => 'Mobile Header Design ',
                      'field_data' => $_POST['mobileHeader_Design'],
                      'field_plc_img' => 'includes/template-part/header/images/',
                      'field_plc_img_size' => 'col-md-8',
                      'field_required' => true,
                      'field_options' =>  array(
                        'mheader_one' => 'Mobile Header One',
                        'mheader_two' => 'Mobile Header Two',
                        'mheader_three' => 'Mobile Header Three',
                        'mheader_four' => 'Mobile Header Four',
                       ),
                  ),
                 array(
                     'field_type'     => 'separetor',
                     'field_title'     => 'Time and Date',
                     'field_desc'  => 'Time/Date And Location Settings',
                 ),

                 array(
                     'field_id'       => 'H_Date_Location_dateformate',
                     'field_type'     => 'select',
                     'field_title'     => 'Date Format',
                     'field_data' => $_POST['H_Date_Location_dateformate'],
                     'field_required' => true,
                     'field_options' =>  array(
                       'endate' => '২৫ জানুয়ারী ২০২৫',
                       'day_endate' => 'শনিবার, ২৫ জানুয়ারী ২০২৫',
                       'endate_bndate' => '২৫ জানুয়ারী ২০২৫, ১১ মাঘ ১৪৩১',
                       'day_endate_bndate' => 'শনিবার, ২৫ জানুয়ারী ২০২৫, ১১ মাঘ ১৪৩১',
                      ),
                 ),
                 array(
                     'field_id'       => 'H_Date_Location_locationname',
                     'field_type'     => 'text',
                     'field_title'     => 'Location ',
                     'field_desc'  => 'Location Name',
                     'field_data' => $_POST['H_Date_Location_locationname'],
                 ),
                 array(
                     'field_id'       => 'H_Date_Location_datelocationicon',
                     'field_type'     => 'switch',
                     'field_title'     => 'Show Icon',
                     'field_desc'  => 'Show Location and Date Icon',
                     'field_data' => $_POST['H_Date_Location_datelocationicon'],
                 ),
                 array(
                     'field_id'       => 'H_Socialicon',
                     'field_type'     => 'ui-select',
                     'field_title'     => 'Social Icon Style',
                     'field_data' => $_POST['H_Socialicon'],
                     'field_desc'  => '<a href="option-social.php">Add Social Media Link </a>',
                     'field_plc_img' => 'includes/template-part/header/images/',
                     'field_plc_img_size' => 'col-md-6',
                     'field_required' => true,
                     'field_options' =>  array(
                       'border_rounded_color' => 'Border Rounded Color',
                       'border_rounded_gray' => 'Border Rounded  Gray',
                       'border_squere_color' => 'Border Squere Color',
                       'border_squere_gray' => 'Border Squere Gray',
                       'normal_color' => 'Normal Color',
                       'normal_gray' => 'Normal  Gray',
                      ),
                 ),
                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'); ?>
