<?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'       => 'OffCanvas_logo',
                    'field_type'     => 'select_file',
                    'field_image'   => true,
                    'field_title'     => 'Different Off Canvas Logo',
                    'field_desc'  => 'By default website logo will appeared',
                    'field_data' => $_POST['OffCanvas_logo'],
                ), 
                array(
                    'field_id'       => 'OffCanvas_logo_size',
                    'field_type'     => 'text',
                    'field_title'     => 'Off Canvas Logo Size',
                    'field_desc'  => 'Off Canvas Logo Size in px.',
                    'field_data' => $_POST['OffCanvas_logo_size'],
                ),

                array(
                    'field_type'     => 'separetor',
                    'field_title'     => 'Search Bar ',
                    'field_desc'  => 'Search Bar Settings for Off Canvas Sidebar',
                ),
                array(
                    'field_id'       => 'Show_Offcanvas_Searchbar',
                    'field_type'     => 'switch',
                    'field_title'     => 'Search Bar',
                    'field_desc'  => 'Show Search Bar',
                    'field_data' => $_POST['Show_Offcanvas_Searchbar'],
                ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_text',
                     'field_type'     => 'text',
                     'field_title'     => 'Search Button Text',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_text'],
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_placeholder',
                     'field_type'     => 'text',
                     'field_title'     => 'Search Button Placeholder',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_placeholder'],
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_btn_icon',
                     'field_type'     => 'switch',
                     'field_title'     => 'Search Button Icon',
                     'field_desc'  => 'Show Search Button Icon',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_btn_icon'],
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_btn_bg',
                     'field_type'     => 'color',
                     'field_title'     => 'Search Button Background',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_btn_bg'],
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_btn_txtclr',
                     'field_type'     => 'color',
                     'field_title'     => 'Button Text Color',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_btn_txtclr'],
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_border',
                     'field_type'     => 'text',
                     'field_title'     => 'Search Bar Border Radius',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_border'],
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Searchbar_borderclr',
                     'field_type'     => 'color',
                     'field_title'     => 'Search Bar Border color',
                     'field_data' => $_POST['Show_Offcanvas_Searchbar_borderclr'],
                 ),
                 array(
                     'field_type'     => 'separetor',
                     'field_title'     => 'Social Icon',
                     'field_desc'  => 'Social Icon Style For Off Canvas Menu',
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_sicon',
                     'field_type'     => 'switch',
                     'field_title'     => 'Show Social Icon ',
                     'field_desc'  => 'Show Social Icon Off Canvas Sidebar',
                     'field_data' => $_POST['Show_Offcanvas_sicon'],
                 ),
                 array(
                     'field_id'       => 'Offcanvas_Socialicon',
                     'field_type'     => 'ui-select',
                     'field_title'     => 'Social Icon Style',
                     'field_data' => $_POST['Offcanvas_Socialicon'],
                     'field_plc_img' => 'includes/template-part/header/images/',
                     'field_desc'  => '<a href="option-social.php">Add Social Media Link </a>',
                     '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_type'     => 'separetor',
                     'field_title'     => 'Copyright Notice ',
                     'field_desc'  => 'Search Bar Settings for Off Canvas Sidebar',
                 ),
                 array(
                     'field_id'       => 'Show_Offcanvas_Copyright',
                     'field_type'     => 'text',
                     'field_title'     => 'Copyright Notice',
                     'field_desc'  => 'Copyright Text For Offcanvas Sidebar',
                     'field_data' => $_POST['Show_Offcanvas_Copyright'],
                 ),

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