Advertisement
fahimmurshed

customizer.php

Aug 4th, 2017
763
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 72.36 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * Themeum Customizer
  5.  */
  6.  
  7.  
  8. if (!class_exists('THMC_Framework')):
  9.  
  10.     class THMC_Framework
  11.     {
  12.         /**
  13.          * Instance of WP_Customize_Manager class
  14.          */
  15.         public $wp_customize;
  16.  
  17.  
  18.         private $fields_class = array();
  19.  
  20.         private $google_fonts = array();
  21.  
  22.         /**
  23.          * Constructor of 'THMC_Framework' class
  24.          *
  25.          * @wp_customize (WP_Customize_Manager) Instance of 'WP_Customize_Manager' class
  26.          */
  27.         function __construct( $wp_customize )
  28.         {
  29.             $this->wp_customize = $wp_customize;
  30.  
  31.             $this->fields_class = array(
  32.                 'text'            => 'WP_Customize_Control',
  33.                 'checkbox'        => 'WP_Customize_Control',
  34.                 'textarea'        => 'WP_Customize_Control',
  35.                 'radio'           => 'WP_Customize_Control',
  36.                 'select'          => 'WP_Customize_Control',
  37.                 'email'           => 'WP_Customize_Control',
  38.                 'url'             => 'WP_Customize_Control',
  39.                 'number'          => 'WP_Customize_Control',
  40.                 'range'           => 'WP_Customize_Control',
  41.                 'hidden'          => 'WP_Customize_Control',
  42.                 'date'            => 'THMC_Date_Control',
  43.                 'color'           => 'WP_Customize_Color_Control',
  44.                 'upload'          => 'WP_Customize_Upload_Control',
  45.                 'image'           => 'WP_Customize_Image_Control',
  46.                 'radio_button'    => 'THMC_Radio_Button_Control',
  47.                 'checkbox_button' => 'THMC_Checkbox_Button_Control',
  48.                 'switch'          => 'THMC_Switch_Button_Control',
  49.                 'multi_select'    => 'THMC_Multi_Select_Control',
  50.                 'radio_image'     => 'THMC_Radio_Image_Control',
  51.                 'checkbox_image'  => 'THMC_Checkbox_Image_Control',
  52.                 'color_palette'   => 'THMC_Color_Palette_Control',
  53.                 'rgba'            => 'THMC_Rgba_Color_Picker_Control',
  54.                 'title'           => 'THMC_Switch_Title_Control',
  55.             );
  56.  
  57.             $this->load_custom_controls();
  58.  
  59.             add_action( 'customize_controls_enqueue_scripts', array( $this, 'customizer_scripts' ), 100 );
  60.         }
  61.  
  62.         public function customizer_scripts()
  63.         {
  64.             wp_enqueue_style( 'wp-color-picker' );
  65.             wp_enqueue_style( 'thmc-select2', plugin_dir_url( __FILE__ ).'assets/select2/css/select2.min.css' );
  66.             wp_enqueue_style( 'thmc-customizer', plugin_dir_url( __FILE__ ).'assets/css/customizer.css' );
  67.  
  68.             // Load all js
  69.             wp_enqueue_script( 'jquery-ui-datepicker' );
  70.             wp_enqueue_script( 'wp-color-picker' );
  71.             wp_enqueue_script( 'thmc-select2', plugin_dir_url( __FILE__ ).'assets/select2/js/select2.min.js', array('jquery'), '1.0', true );
  72.             wp_enqueue_script( 'thmc-rgba-colorpicker', plugin_dir_url( __FILE__ ).'assets/js/thmc-rgba-colorpicker.js', array('jquery', 'wp-color-picker'), '1.0', true );
  73.             wp_enqueue_script( 'thmc-customizer', plugin_dir_url( __FILE__ ).'assets/js/customizer.js', array('jquery', 'jquery-ui-datepicker'), '1.0', true );
  74.             wp_localize_script( 'thmc-customizer', 'thm_customizer', array(
  75.                 'ajax_url' => admin_url( 'admin-ajax.php' ),
  76.                 'import_success' => esc_html__('Success! Your theme data successfully imported. Page will be reloaded within 2 sec.', 'themeum-core'),
  77.                 'import_error' => esc_html__('Error! Your theme data importing failed.', 'themeum-core'),
  78.                 'file_error' => esc_html__('Error! Please upload a file.', 'themeum-core')
  79.             ) );
  80.         }
  81.  
  82.         private function load_custom_controls()
  83.         {
  84.             include_once( 'controls/radio-button.php' );
  85.             include_once( 'controls/radio-image.php' );
  86.             include_once( 'controls/checkbox-button.php' );
  87.             include_once( 'controls/checkbox-image.php' );
  88.             include_once( 'controls/switch.php' );
  89.             include_once( 'controls/date.php' );
  90.             include_once( 'controls/multi-select.php' );
  91.             include_once( 'controls/color-palette.php' );
  92.             include_once( 'controls/rgba-colorpicker.php' );
  93.             include_once( 'controls/title.php' );
  94.  
  95.             // Load Sanitize class
  96.             include_once( 'libs/sanitize.php' );
  97.         }
  98.  
  99.         public function add_option( $options )
  100.         {
  101.             if (isset($options['sections'])) {
  102.                 $this->panel_to_section($options);
  103.             } elseif (isset($options['options'])){
  104.  
  105.             }
  106.  
  107.  
  108.  
  109.         }
  110.  
  111.  
  112.  
  113.         private function panel_to_section( $options )
  114.         {
  115.             $panel = $options;
  116.             $panel_id = $options['id'];
  117.  
  118.             unset($panel['sections']);
  119.             unset($panel['id']);
  120.  
  121.             // Register this panel
  122.             $this->add_panel($panel, $panel_id);
  123.  
  124.             $sections = $options['sections'];
  125.  
  126.             if (!empty($sections)) {
  127.                 foreach ($sections as $section) {
  128.                     $fields = $section['fields'];
  129.                     $section_id = $section['id'];
  130.  
  131.                     unset($section['fields']);
  132.                     unset($section['id']);
  133.  
  134.                     $section['panel'] = $panel_id;
  135.  
  136.                     $this->add_section($section, $section_id);
  137.  
  138.                     if (!empty($fields)) {
  139.                         foreach ($fields as $field) {
  140.                             $field_id = $field['settings'];
  141.  
  142.                             $this->add_field($field, $field_id, $section_id);
  143.                         }
  144.                     }
  145.                 }
  146.             }
  147.         }
  148.  
  149.         private function add_panel($panel, $panel_id){
  150.             $this->wp_customize->add_panel( $panel_id, $panel );
  151.         }
  152.  
  153.         private function add_section($section, $section_id)
  154.         {
  155.             $this->wp_customize->add_section( $section_id, $section );
  156.         }
  157.  
  158.         private function add_field($field, $field_id, $section_id){
  159.  
  160.  
  161.  
  162.             $setting_args = array(
  163.                 'default'        => isset($field['default']) ? $field['default'] : '',
  164.                 'type'           => isset($field['setting_type']) ? $field['setting_type'] : 'theme_mod',
  165.                 'transport'     => isset($field['transport']) ? $field['transport'] : 'refresh',
  166.                 'capability'     => isset($field['capability']) ? $field['capability'] : 'edit_theme_options',
  167.             );
  168.  
  169.             if (isset($field['type']) && $field['type'] == 'switch') {
  170.                 $setting_args['sanitize_callback'] = array('THMC_Sanitize', 'switch_sntz');
  171.             } elseif (isset($field['type']) && ($field['type'] == 'checkbox_button' || $field['type'] == 'checkbox_image')) {
  172.                 $setting_args['sanitize_callback'] = array('THMC_Sanitize', 'multi_checkbox');
  173.             } elseif (isset($field['type']) && $field['type'] == 'multi_select') {
  174.                 $setting_args['sanitize_callback'] = array('THMC_Sanitize', 'multi_select');
  175.                 $setting_args['sanitize_js_callback'] = array('THMC_Sanitize', 'multi_select_js');
  176.             }
  177.  
  178.             $control_args = array(
  179.                 'label'       => isset($field['label']) ? $field['label'] : '',
  180.                 'section'     => $section_id,
  181.                 'settings'    => $field_id,
  182.                 'type'        => isset($field['type']) ? $field['type'] : 'text',
  183.                 'priority'    => isset($field['priority']) ? $field['priority'] : 10,
  184.             );
  185.  
  186.             if (isset($field['choices'])) {
  187.                 $control_args['choices'] = $field['choices'];
  188.             }
  189.  
  190.             // Register the settings
  191.             $this->wp_customize->add_setting( $field_id, $setting_args );
  192.  
  193.             $control_class = isset($this->fields_class[$field['type']]) ? $this->fields_class[$field['type']] : 'WP_Customize_Control';
  194.  
  195.             // Add the controls
  196.             $this->wp_customize->add_control( new $control_class( $this->wp_customize, $field_id, $control_args ) );
  197.         }
  198.     }
  199.  
  200. endif;
  201.  
  202. /**
  203. *
  204. */
  205. class THM_Customize
  206. {
  207.     public $google_fonts = array();
  208.  
  209.     function __construct( $options )
  210.     {
  211.         $this->options = $options;
  212.  
  213.         add_action('customize_register', array($this, 'customize_register'));
  214.         add_action('wp_enqueue_scripts', array($this, 'get_google_fonts_data'));
  215.  
  216.         add_action('wp_ajax_thm_export_data', array($this, 'export_data_cb'));
  217.         add_action('wp_ajax_thm_import_data', array($this, 'import_data_cb'));
  218.     }
  219.  
  220.     public function customize_register( $wp_customize )
  221.     {
  222.         $framework = new THMC_Framework( $wp_customize );
  223.  
  224.         $framework->add_option( $this->options );
  225.  
  226.         $this->import_export_ui( $wp_customize );
  227.     }
  228.  
  229.     public function import_export_ui( $wp_customize )
  230.     {
  231.         include_once( 'controls/export.php' );
  232.         include_once( 'controls/import.php' );
  233.  
  234.         $wp_customize->add_section( 'thm_import_export', array(
  235.             'title'           => esc_html__( 'Import/Export', 'themeum-core' ),
  236.             'description'     => esc_html__( 'Import Export Option Data', 'themeum-core' ),
  237.             'priority'        => 1000,
  238.         ) );
  239.  
  240.         $wp_customize->add_setting( 'thm_export', array(
  241.             'default'        => '',
  242.             'transport'      => 'postMessage',
  243.             'capability'     => 'edit_theme_options',
  244.         ) );
  245.  
  246.         $wp_customize->add_control( new THMC_Export_Control( $wp_customize, 'thm_export_ctrl', array(
  247.             'label'       => 'Export Theme Data',
  248.             'section'     => 'thm_import_export',
  249.             'settings'    => 'thm_export',
  250.             'type'        => 'export',
  251.             'priority'    => 10,
  252.         ) ) );
  253.  
  254.         $wp_customize->add_setting( 'thm_import', array(
  255.             'default'        => '',
  256.             'transport'      => 'postMessage',
  257.             'capability'     => 'edit_theme_options',
  258.         ) );
  259.  
  260.         $wp_customize->add_control( new THMC_Import_Control( $wp_customize, 'thm_import_ctrl', array(
  261.             'label'       => 'Import Theme Data',
  262.             'section'     => 'thm_import_export',
  263.             'settings'    => 'thm_import',
  264.             'type'        => 'export',
  265.             'priority'    => 10,
  266.         ) ) );
  267.     }
  268.  
  269.     public function export_data_cb()
  270.     {
  271.         $theme_slug = get_option( 'stylesheet' );
  272.         $mods = get_option( "theme_mods_$theme_slug" );
  273.  
  274.         header( "Content-Description: File Transfer" );
  275.         header( "Content-Disposition: attachment; filename=theme_data.json" );
  276.         header( "Content-Type: application/octet-stream" );
  277.         echo json_encode($mods);
  278.         exit;
  279.     }
  280.  
  281.     public function import_data_cb()
  282.     {
  283.         $theme_data = file_get_contents($_FILES['file']['tmp_name']);
  284.  
  285.         if (empty($theme_data)) {
  286.             echo 0;
  287.             exit();
  288.         }
  289.  
  290.         $theme_data = json_decode($theme_data, true);
  291.  
  292.         if (empty($theme_data)) {
  293.             echo 0;
  294.             exit();
  295.         }
  296.  
  297.         unset($theme_data['nav_menu_locations']);
  298.  
  299.         $theme_slug = get_option( 'stylesheet' );
  300.         $mods = get_option( "theme_mods_$theme_slug" );
  301.  
  302.         if ($mods  === false) {
  303.             $status = add_option( "theme_mods_$theme_slug", $theme_data );
  304.             if ($status) {
  305.                 echo 1;
  306.             } else {
  307.                 echo 0;
  308.             }
  309.         } else {
  310.             $theme_data['nav_menu_locations'] = $mods['nav_menu_locations'];
  311.             $status = update_option( "theme_mods_$theme_slug", $theme_data );
  312.  
  313.             if ($status) {
  314.                 echo 1;
  315.             } else {
  316.                 echo 0;
  317.             }
  318.         }
  319.  
  320.         exit();
  321.     }
  322.  
  323.     public function get_google_fonts_data()
  324.     {
  325.         if (isset($this->options['sections']) && !empty($this->options['sections'])) {
  326.             foreach ($this->options['sections'] as $section) {
  327.                 if (isset($section['fields']) && !empty($section['fields'])) {
  328.                     foreach ($section['fields'] as $field) {
  329.                         if (isset($field['google_font']) && $field['google_font'] == true) {
  330.                             $this->google_fonts[$field['settings']] = array();
  331.  
  332.                             if (isset($field['default']) && !empty($field['default'])) {
  333.                                 $this->google_fonts[$field['settings']]["default"] = $field['default'];
  334.                             }
  335.  
  336.                             if (isset($field['google_font_weight']) && !empty($field['google_font_weight'])) {
  337.                                 $this->google_fonts[$field['settings']]["weight"] = $field['google_font_weight'];
  338.                             }
  339.  
  340.                             if (isset($field['google_font_weight_default']) && !empty($field['google_font_weight_default'])) {
  341.                                 $this->google_fonts[$field['settings']]["weight_default"] = $field['google_font_weight_default'];
  342.                             }
  343.                         }
  344.                     }
  345.                 }
  346.             }
  347.         }
  348.  
  349.         $all_fonts = array();
  350.  
  351.         if (!empty($this->google_fonts)) {
  352.             foreach ($this->google_fonts as $font_id => $font_data) {
  353.                 $font_family_default = isset($font_data['default']) ? $font_data['default'] : '';
  354.                 $font_family = get_theme_mod( $font_id, $font_family_default );
  355.  
  356.                 if (!isset($all_fonts[$font_family])) {
  357.                     $all_fonts[$font_family] = array();
  358.                 }
  359.  
  360.                 if (isset($font_data['weight']) && !empty($font_data['weight'])) {
  361.                     $font_weight_default = isset($font_data['weight_default']) ? $font_data['weight_default'] : '';
  362.  
  363.                     $font_weight = get_theme_mod( $font_data['weight'], $font_weight_default );
  364.  
  365.                     $all_fonts[$font_family][] = $font_weight;
  366.                 }
  367.  
  368.             }
  369.         }
  370.  
  371.         $font_url = "//fonts.googleapis.com/css?family=";
  372.  
  373.         if (!empty($all_fonts)) {
  374.  
  375.             $i = 0;
  376.  
  377.             foreach ($all_fonts as $font => $weights) {
  378.  
  379.                 if ($i) {
  380.                     $font_url .= "|";
  381.                 }
  382.  
  383.                 $font_url .= str_replace(" ", "+", $font);
  384.  
  385.                 if (!empty($weights)) {
  386.                     $font_url .= ":";
  387.                     $font_url .= implode(",", $weights);
  388.                 }
  389.  
  390.                 $i++;
  391.             }
  392.  
  393.             wp_enqueue_style( "tm-google-font", $font_url );
  394.         }
  395.     }
  396. }
  397.  
  398.  
  399.  
  400.  
  401. /*
  402.  *
  403.  * Current Fields: text, checkbox, textarea, radio, select, email, url, number, hidden, color, upload, image, Range
  404.  *
  405.  * Required Fields: [Done] RGBA Color Picker, [Done] Palette Color, [Done] Button Set (Radio & Checkbox), [Done] Switch, [Done] Multi-Select, [Done] Image Select, [Done] Date Picker
  406.  */
  407.  
  408. /**
  409.  * Example Data
  410.  *
  411.  * These data will be removed later
  412.  */
  413.  
  414.  
  415.  
  416. $panel_to_section = array(
  417.     'id'           => 'travelkit_panel_options',
  418.     'title'        => esc_html( 'Travelkit Options', 'themeum-core' ),
  419.     'description'  => esc_html__( 'Travelkit Theme Options', 'themeum-core' ),
  420.     'priority'     => 10,
  421.     'sections'     => array(
  422.  
  423.         array(
  424.             'id'              => 'topbar_setting',
  425.             'title'           => esc_html__( 'Topbar Settings', 'themeum-core' ),
  426.             'description'     => esc_html__( 'Topbar Settings', 'themeum-core' ),
  427.             'priority'        => 10,
  428.             // 'active_callback' => 'is_front_page',
  429.             'fields'         => array(
  430.                 array(
  431.                     'settings' => 'topbar_en',
  432.                     'label'    => esc_html__( 'Topbar Enable/Disable', 'themeum-core' ),
  433.                     'type'     => 'switch',
  434.                     'priority' => 10,
  435.                     'default'  => false,
  436.                 ),
  437.                 array(
  438.                     'settings' => 'topbar_email',
  439.                     'label'    => esc_html__( 'Topbar Email', 'themeum-core' ),
  440.                     'type'     => 'email',
  441.                     'priority' => 10,
  442.                     'default'  => 'support@themeum.com',
  443.                 ),
  444.                 array(
  445.                     'settings' => 'topbar_phone',
  446.                     'label'    => esc_html__( 'Topbar Phone Number', 'themeum-core' ),
  447.                     'type'     => 'text',
  448.                     'priority' => 10,
  449.                     'default'  => '+00 44 123 456 78910',
  450.                 ),
  451.                 array(
  452.                     'settings' => 'topbar_social',
  453.                     'label'    => esc_html__( 'Topbar With Social', 'themeum-core' ),
  454.                     'type'     => 'switch',
  455.                     'priority' => 10,
  456.                     'default'  => false,
  457.                 ),
  458.                 array(
  459.                     'settings' => 'topbar_color',
  460.                     'label'    => esc_html__( 'Topbar background color', 'themeum-core' ),
  461.                     'type'     => 'rgba',
  462.                     'priority' => 10,
  463.                     'default'  => 'rgba(0,0,0,0.3)',
  464.                 ),
  465.                 array(
  466.                     'settings' => 'topbar_text_color',
  467.                     'label'    => esc_html__( 'Topbar text color', 'themeum-core' ),
  468.                     'type'     => 'color',
  469.                     'priority' => 10,
  470.                     'default'  => '',
  471.                 ),
  472.                 array(
  473.                     'settings' => 'topbar_border_color',
  474.                     'label'    => esc_html__( 'Topber border bottom color', 'themeum-core' ),
  475.                     'type'     => 'rgba',
  476.                     'priority' => 10,
  477.                     'default'  => 'rgba(255, 255, 255, 0.3)',
  478.                 ),
  479.             )//fields
  480.         ),//topbar_setting
  481.  
  482.         array(
  483.             'id'              => 'header_setting',
  484.             'title'           => esc_html__( 'Header Settings', 'themeum-core' ),
  485.             'description'     => esc_html__( 'Header Settings', 'themeum-core' ),
  486.             'priority'        => 10,
  487.             // 'active_callback' => 'is_front_page',
  488.             'fields'         => array(
  489.                 array(
  490.                     'settings' => 'head_style',
  491.                     'label'    => esc_html__( 'Select Header Style', 'themeum-core' ),
  492.                     'type'     => 'select',
  493.                     'priority' => 10,
  494.                     'default'  => 'solid',
  495.                     'choices'  => array(
  496.                         'transparent' => esc_html( 'Transparent Header', 'themeum-core' ),
  497.                         'solid' => esc_html( 'Solid Header', 'themeum-core' ),
  498.                         'borderimage' => esc_html( 'Border Header', 'themeum-core' ),
  499.                     )
  500.                 ),
  501.                 array(
  502.                     'settings' => 'header_color',
  503.                     'label'    => esc_html__( 'Header background Color', 'themeum-core' ),
  504.                     'type'     => 'rgba',
  505.                     'priority' => 10,
  506.                     'default'  => '',
  507.                 ),
  508.                 array(
  509.                     'settings' => 'header_border_color',
  510.                     'label'    => esc_html__( 'Header border bottom color', 'themeum-core' ),
  511.                     'type'     => 'rgba',
  512.                     'priority' => 10,
  513.                     'default'  => 'rgba(255, 255, 255, 0.3)',
  514.                 ),
  515.                 array(
  516.                     'settings' => 'header_padding_top',
  517.                     'label'    => esc_html__( 'Header Top Padding', 'themeum-core' ),
  518.                     'type'     => 'number',
  519.                     'priority' => 10,
  520.                     'default'  => 0,
  521.                 ),
  522.                 array(
  523.                     'settings' => 'header_padding_bottom',
  524.                     'label'    => esc_html__( 'Header Bottom Padding', 'themeum-core' ),
  525.                     'type'     => 'number',
  526.                     'priority' => 10,
  527.                     'default'  => 0,
  528.                 ),
  529.                 array(
  530.                     'settings' => 'header_fixed',
  531.                     'label'    => esc_html__( 'Sticky Header', 'themeum-core' ),
  532.                     'type'     => 'switch',
  533.                     'priority' => 10,
  534.                     'default'  => false,
  535.                 ),
  536.                 array(
  537.                     'settings' => 'sticky_header_color',
  538.                     'label'    => esc_html__( 'Sticky background Color', 'themeum-core' ),
  539.                     'type'     => 'rgba',
  540.                     'priority' => 10,
  541.                     'default'  => '',
  542.                 ),
  543.             )//fields
  544.         ),//header_setting
  545.  
  546.         array(
  547.             'id'              => 'logo_setting',
  548.             'title'           => esc_html__( 'All Logo & favicon', 'themeum-core' ),
  549.             'description'     => esc_html__( 'All Logo & favicon', 'themeum-core' ),
  550.             'priority'        => 10,
  551.             // 'active_callback' => 'is_front_page',
  552.             'fields'         => array(
  553.                 array(
  554.                     'settings' => 'favicon',
  555.                     'label'    => esc_html__( 'Upload favicon (max dimension is 32x32px)', 'themeum-core' ),
  556.                     'type'     => 'upload',
  557.                     'priority' => 10,
  558.                     'default' => get_template_directory_uri().'/images/logo.png',
  559.                 ),
  560.                 array(
  561.                     'settings' => 'logo_style',
  562.                     'label'    => esc_html__( 'Select Header Style', 'themeum-core' ),
  563.                     'type'     => 'select',
  564.                     'priority' => 10,
  565.                     'default'  => 'logotext',
  566.                     'choices'  => array(
  567.                         'logoimg' => esc_html( 'Logo image', 'themeum-core' ),
  568.                         'logotext' => esc_html( 'Logo text', 'themeum-core' ),
  569.                     )
  570.                 ),
  571.                 array(
  572.                     'settings' => 'logo',
  573.                     'label'    => esc_html__( 'Upload Logo', 'themeum-core' ),
  574.                     'type'     => 'upload',
  575.                     'priority' => 10,
  576.                     'default' => get_template_directory_uri().'/images/logo.png',
  577.                 ),
  578.                 array(
  579.                     'settings' => 'logo_width',
  580.                     'label'    => esc_html__( 'Logo Width', 'themeum-core' ),
  581.                     'type'     => 'number',
  582.                     'priority' => 10,
  583.                 ),
  584.                 array(
  585.                     'settings' => 'logo_height',
  586.                     'label'    => esc_html__( 'Logo Height', 'themeum-core' ),
  587.                     'type'     => 'number',
  588.                     'priority' => 10,
  589.                 ),
  590.                 array(
  591.                     'settings' => 'logo_text',
  592.                     'label'    => esc_html__( 'Use your Custom logo text', 'themeum-core' ),
  593.                     'type'     => 'text',
  594.                     'priority' => 10,
  595.                     'default'  => 'Travelkit',
  596.                 ),
  597.                
  598.  
  599.             )//fields
  600.         ),//logo_setting
  601.        
  602.         array(
  603.             'id'              => 'sub_header_banner',
  604.             'title'           => esc_html__( 'Sub Header Banner', 'themeum-core' ),
  605.             'description'     => esc_html__( 'sub header banner', 'themeum-core' ),
  606.             'priority'        => 10,
  607.             // 'active_callback' => 'is_front_page',
  608.             'fields'         => array(
  609.                 array(
  610.                     'settings' => 'sub_header_padding_top',
  611.                     'label'    => esc_html__( 'Sub-Header Padding Top', 'themeum-core' ),
  612.                     'type'     => 'number',
  613.                     'priority' => 10,
  614.                     'default'  => 142,
  615.                 ),
  616.                 array(
  617.                     'settings' => 'sub_header_padding_bottom',
  618.                     'label'    => esc_html__( 'Sub-Header Padding Bottom', 'themeum-core' ),
  619.                     'type'     => 'number',
  620.                     'priority' => 10,
  621.                     'default'  => 92,
  622.                 ),
  623.                 array(
  624.                     'settings' => 'sub_header_margin_bottom',
  625.                     'label'    => esc_html__( 'Sub-Header Margin Bottom', 'themeum-core' ),
  626.                     'type'     => 'number',
  627.                     'priority' => 10,
  628.                     'default'  => 100,
  629.                 ),
  630.                 array(
  631.                     'settings' => 'sub_header_banner_img',
  632.                     'label'    => esc_html__( 'Sub-Header Background Image', 'themeum-core' ),
  633.                     'type'     => 'image',
  634.                     'priority' => 10,
  635.                 ),
  636.                 array(
  637.                     'settings' => 'sub_header_banner_color',
  638.                     'label'    => esc_html__( 'Sub-Header Background Color', 'themeum-core' ),
  639.                     'type'     => 'color',
  640.                     'priority' => 10,
  641.                     'default'  => '#333',
  642.                 ),
  643.                 array(
  644.                     'settings' => 'sub_header_overlayer_color',
  645.                     'label'    => esc_html__( 'Sub-Header Overlayer Color', 'themeum-core' ),
  646.                     'type'     => 'rgba',
  647.                     'priority' => 10,
  648.                     'default'  => 'rgba(0, 0, 0, 0.5)',
  649.                 ),
  650.                 array(
  651.                     'settings' => 'sub_header_title',
  652.                     'label'    => esc_html__( 'Title Settings', 'themeum-core' ),
  653.                     'type'     => 'title',
  654.                     'priority' => 10,
  655.                 ),
  656.                 array(
  657.                     'settings' => 'sub_header_title_enable',
  658.                     'label'    => esc_html__( 'Header Title Enable', 'themeum-core' ),
  659.                     'type'     => 'switch',
  660.                     'priority' => 10,
  661.                     'default'  => true,
  662.                 ),
  663.                 array(
  664.                     'settings' => 'sub_header_title_size',
  665.                     'label'    => esc_html__( 'Header Title Font Size', 'themeum-core' ),
  666.                     'type'     => 'number',
  667.                     'priority' => 10,
  668.                     'default'  => '42',
  669.                 ),
  670.                 array(
  671.                     'settings' => 'sub_header_title_color',
  672.                     'label'    => esc_html__( 'Header Title Color', 'themeum-core' ),
  673.                     'type'     => 'color',
  674.                     'priority' => 10,
  675.                     'default'  => '#fff',
  676.                 ),
  677.                 array(
  678.                     'settings' => 'breadcrumb_title',
  679.                     'label'    => esc_html__( 'Breadcrumb Settings', 'themeum-core' ),
  680.                     'type'     => 'title',
  681.                     'priority' => 10,
  682.                 ),
  683.                 array(
  684.                     'settings' => 'breadcrumb_enable',
  685.                     'label'    => esc_html__( 'Breadcrumb Enable', 'themeum-core' ),
  686.                     'type'     => 'switch',
  687.                     'priority' => 10,
  688.                     'default'  => true,
  689.                 ),
  690.                 array(
  691.                     'settings' => 'breadcrumb_text_color',
  692.                     'label'    => esc_html__( 'Breadcrumb Text Color', 'themeum-core' ),
  693.                     'type'     => 'color',
  694.                     'priority' => 10,
  695.                     'default'  => '#fff',
  696.                 ),
  697.                 array(
  698.                     'settings' => 'breadcrumb_link_color',
  699.                     'label'    => esc_html__( 'Breadcrumb Link Color', 'themeum-core' ),
  700.                     'type'     => 'color',
  701.                     'priority' => 10,
  702.                     'default'  => '#fff',
  703.                 ),
  704.                 array(
  705.                     'settings' => 'breadcrumb_link_color_hvr',
  706.                     'label'    => esc_html__( 'Breadcrumb Link Hover Color', 'themeum-core' ),
  707.                     'type'     => 'color',
  708.                     'priority' => 10,
  709.                     'default'  => '#fff',
  710.                 ),
  711.             )//fields
  712.         ),//sub_header_banner
  713.  
  714.         array(
  715.             'id'              => 'currency_settings',
  716.             'title'           => esc_html__( 'Currency Setting', 'themeum-core' ),
  717.             'description'     => esc_html__( 'Currency Setting', 'themeum-core' ),
  718.             'priority'        => 10,
  719.             // 'active_callback' => 'is_front_page',
  720.             'fields'         => array(
  721.                 array(
  722.                     'settings' => 'currency_right',
  723.                     'label'    => esc_html__( 'Show Currency at Right', 'themeum-core' ),
  724.                     'type'     => 'switch',
  725.                     'priority' => 10,
  726.                     'default'  => false,
  727.                 ),
  728.                 array(
  729.                     'settings' => 'package_currency',
  730.                     'label'    => esc_html__( 'Package Currency', 'themeum-core' ),
  731.                     'type'     => 'text',
  732.                     'priority' => 10,
  733.                     'default'  => '$',
  734.                 ),
  735.                 array(
  736.                     'settings' => 'other_currency',
  737.                     'label'    => esc_html__( 'Other Currency', 'themeum-core' ),
  738.                     'type'     => 'text',
  739.                     'priority' => 10,
  740.                     'default'  => '$',
  741.                 ),
  742.             )
  743.         ),
  744.  
  745.         array(
  746.             'id'              => 'flight_settings',
  747.             'title'           => esc_html__( 'Flight Setting', 'themeum-core' ),
  748.             'description'     => esc_html__( 'Flight Setting', 'themeum-core' ),
  749.             'priority'        => 10,
  750.             // 'active_callback' => 'is_front_page',
  751.             'fields'         => array(
  752.                 array(
  753.                     'settings' => 'tp_api_key_title',
  754.                     'label'    => esc_html__( 'Travelpayout Settings', 'themeum-core' ),
  755.                     'type'     => 'title',
  756.                     'priority' => 10,
  757.                 ),
  758.                 array(
  759.                     'settings' => 'tp_api',
  760.                     'label'    => esc_html__( 'Travelpayout API', 'themeum-core' ),
  761.                     'type'     => 'switch',
  762.                     'priority' => 10,
  763.                     'default'  => false,
  764.                 ),
  765.                 array(
  766.                     'settings' => 'tp_api_key',
  767.                     'label'    => esc_html__( 'Travelpayout API Key', 'themeum-core' ),
  768.                     'type'     => 'text',
  769.                     'priority' => 10,
  770.                     'default'  => '',
  771.                 ),
  772.                 array(
  773.                     'settings' => 'tp_api_marker',
  774.                     'label'    => esc_html__( 'Travelpayout API Marker', 'themeum-core' ),
  775.                     'type'     => 'text',
  776.                     'priority' => 10,
  777.                     'default'  => '',
  778.                 ),
  779.                 array(
  780.                     'settings' => 'skyscanner_api_key_title',
  781.                     'label'    => esc_html__( 'Skyscanner Settings (Deprecated)', 'themeum-core' ),
  782.                     'type'     => 'title',
  783.                     'priority' => 10,
  784.                 ),
  785.                 array(
  786.                     'settings' => 'flight_api',
  787.                     'label'    => esc_html__( 'Flight API', 'themeum-core' ),
  788.                     'type'     => 'text',
  789.                     'priority' => 10,
  790.                     'default'  => '',
  791.                 ),
  792.                 array(
  793.                     'settings' => 'flight_market',
  794.                     'label'    => esc_html__( 'Flight Market', 'themeum-core' ),
  795.                     'type'     => 'select',
  796.                     'priority' => 10,
  797.                     'default'  => 'US',
  798.                     'choices'  => array(
  799.                         '' => esc_html( 'Select', 'themeum-core' ),
  800.                         "AD" => "Andorra",
  801.                         "AE" => "United Arab Emirates",
  802.                         "AF" => "Afghanistan",
  803.                         "AG" => "Antigua and Barbuda",
  804.                         "AI" => "Anguilla",
  805.                         "AL" => "Albania",
  806.                         "AM" => "Armenia",
  807.                         "AN" => "Netherlands Antilles",
  808.                         "AO" => "Angola",
  809.                         "AQ" => "Antarctica",
  810.                         "AR" => "Argentina",
  811.                         "AS" => "American Samoa",
  812.                         "AT" => "Austria",
  813.                         "AU" => "Australia",
  814.                         "AW" => "Aruba",
  815.                         "AZ" => "Azerbaijan",
  816.                         "BA" => "Bosnia and Herzegovina",
  817.                         "BB" => "Barbados",
  818.                         "BD" => "Bangladesh",
  819.                         "BE" => "Belgium",
  820.                         "BF" => "Burkina Faso",
  821.                         "BG" => "Bulgaria",
  822.                         "BH" => "Bahrain",
  823.                         "BI" => "Burundi",
  824.                         "BJ" => "Benin",
  825.                         "BL" => "Saint Barthelemy",
  826.                         "BM" => "Bermuda",
  827.                         "BN" => "Brunei",
  828.                         "BO" => "Bolivia",
  829.                         "BQ" => "Caribbean Netherlands",
  830.                         "BR" => "Brazil",
  831.                         "BS" => "Bahamas",
  832.                         "BT" => "Bhutan",
  833.                         "BW" => "Botswana",
  834.                         "BY" => "Belarus",
  835.                         "BZ" => "Belize",
  836.                         "CA" => "Canada",
  837.                         "CC" => "Cocos (Keeling) Islands",
  838.                         "CD" => "DR Congo",
  839.                         "CF" => "Central African Republic",
  840.                         "CG" => "Congo",
  841.                         "CH" => "Switzerland",
  842.                         "CI" => "Ivory Coast",
  843.                         "CK" => "Cook Islands",
  844.                         "CL" => "Chile",
  845.                         "CM" => "Cameroon",
  846.                         "CN" => "China",
  847.                         "CO" => "Colombia",
  848.                         "CR" => "Costa Rica",
  849.                         "CU" => "Cuba",
  850.                         "CV" => "Cape Verde",
  851.                         "CW" => "Curacao",
  852.                         "CX" => "Christmas Island",
  853.                         "CY" => "Cyprus",
  854.                         "CZ" => "Czech Republic",
  855.                         "DE" => "Germany",
  856.                         "DJ" => "Djibouti",
  857.                         "DK" => "Denmark",
  858.                         "DM" => "Dominica",
  859.                         "DO" => "Dominican Republic",
  860.                         "DZ" => "Algeria",
  861.                         "EC" => "Ecuador",
  862.                         "EE" => "Estonia",
  863.                         "EG" => "Egypt",
  864.                         "ER" => "Eritrea",
  865.                         "ES" => "Spain",
  866.                         "ET" => "Ethiopia",
  867.                         "FI" => "Finland",
  868.                         "FJ" => "Fiji",
  869.                         "FK" => "Falkland Islands",
  870.                         "FM" => "Micronesia",
  871.                         "FO" => "Faroe Islands",
  872.                         "FR" => "France",
  873.                         "GA" => "Gabon",
  874.                         "GD" => "Grenada",
  875.                         "GE" => "Georgia",
  876.                         "GF" => "French Guiana",
  877.                         "GG" => "Guernsey",
  878.                         "GH" => "Ghana",
  879.                         "GI" => "Gibraltar",
  880.                         "GL" => "Greenland",
  881.                         "GM" => "Gambia",
  882.                         "GN" => "Guinea",
  883.                         "GP" => "Guadeloupe",
  884.                         "GQ" => "Equatorial Guinea",
  885.                         "GR" => "Greece",
  886.                         "GS" => "South Georgia & South Sandwich Islands",
  887.                         "GT" => "Guatemala",
  888.                         "GU" => "Guam",
  889.                         "GW" => "Guinea-Bissau",
  890.                         "GY" => "Guyana",
  891.                         "HK" => "Hong Kong",
  892.                         "HN" => "Honduras",
  893.                         "HR" => "Croatia",
  894.                         "HT" => "Haiti",
  895.                         "HU" => "Hungary",
  896.                         "ID" => "Indonesia",
  897.                         "IE" => "Ireland",
  898.                         "IL" => "Israel",
  899.                         "IN" => "India",
  900.                         "IQ" => "Iraq",
  901.                         "IR" => "Iran",
  902.                         "IS" => "Iceland",
  903.                         "IT" => "Italy",
  904.                         "JM" => "Jamaica",
  905.                         "JO" => "Jordan",
  906.                         "JP" => "Japan",
  907.                         "KE" => "Kenya",
  908.                         "KG" => "Kyrgyzstan",
  909.                         "KH" => "Cambodia",
  910.                         "KI" => "Kiribati",
  911.                         "KM" => "Comoros",
  912.                         "KN" => "Saint Kitts and Nevis",
  913.                         "KO" => "Kosovo",
  914.                         "KP" => "North Korea",
  915.                         "KR" => "South Korea",
  916.                         "KW" => "Kuwait",
  917.                         "KY" => "Cayman Islands",
  918.                         "KZ" => "Kazakhstan",
  919.                         "LA" => "Laos",
  920.                         "LB" => "Lebanon",
  921.                         "LC" => "Saint Lucia",
  922.                         "LI" => "Liechtenstein",
  923.                         "LK" => "Sri Lanka",
  924.                         "LR" => "Liberia",
  925.                         "LS" => "Lesotho",
  926.                         "LT" => "Lithuania",
  927.                         "LU" => "Luxembourg",
  928.                         "LV" => "Latvia",
  929.                         "LY" => "Libya",
  930.                         "MA" => "Morocco",
  931.                         "MC" => "Monaco",
  932.                         "MD" => "Moldova",
  933.                         "ME" => "Montenegro",
  934.                         "MG" => "Madagascar",
  935.                         "MH" => "Marshall Islands",
  936.                         "MK" => "Republic of Macedonia",
  937.                         "ML" => "Mali",
  938.                         "MM" => "Myanmar",
  939.                         "MN" => "Mongolia",
  940.                         "MO" => "Macau",
  941.                         "MP" => "Northern Mariana Islands",
  942.                         "MQ" => "Martinique",
  943.                         "MR" => "Mauritania",
  944.                         "MS" => "Poppins",
  945.                         "MT" => "Malta",
  946.                         "MU" => "Mauritius",
  947.                         "MV" => "Maldives",
  948.                         "MW" => "Malawi",
  949.                         "MX" => "Mexico",
  950.                         "MY" => "Malaysia",
  951.                         "MZ" => "Mozambique",
  952.                         "NA" => "Namibia",
  953.                         "NC" => "New Caledonia",
  954.                         "NE" => "Niger",
  955.                         "NG" => "Nigeria",
  956.                         "NI" => "Nicaragua",
  957.                         "NL" => "Netherlands",
  958.                         "NO" => "Norway",
  959.                         "NP" => "Nepal",
  960.                         "NR" => "Nauru",
  961.                         "NU" => "Niue",
  962.                         "NZ" => "New Zealand",
  963.                         "OM" => "Oman",
  964.                         "PA" => "Panama",
  965.                         "PE" => "Peru",
  966.                         "PF" => "French Polynesia",
  967.                         "PG" => "Papua New Guinea",
  968.                         "PH" => "Philippines",
  969.                         "PK" => "Pakistan",
  970.                         "PL" => "Poland",
  971.                         "PM" => "St. Pierre and Miquelon",
  972.                         "PR" => "Puerto Rico",
  973.                         "PT" => "Portugal",
  974.                         "PW" => "Palau",
  975.                         "PY" => "Paraguay",
  976.                         "QA" => "Qatar",
  977.                         "RE" => "Reunion",
  978.                         "RO" => "Romania",
  979.                         "RS" => "Serbia",
  980.                         "RU" => "Russia",
  981.                         "RW" => "Rwanda",
  982.                         "SA" => "Saudi Arabia",
  983.                         "SB" => "Solomon Islands",
  984.                         "SC" => "Seychelles",
  985.                         "SD" => "Sudan",
  986.                         "SE" => "Sweden",
  987.                         "SG" => "Singapore",
  988.                         "SI" => "Slovenia",
  989.                         "SK" => "Slovakia",
  990.                         "SL" => "Sierra Leone",
  991.                         "SN" => "Senegal",
  992.                         "SO" => "Somalia",
  993.                         "SR" => "Suriname",
  994.                         "SS" => "South Sudan",
  995.                         "ST" => "Sao Tome and Principe",
  996.                         "SV" => "El Salvador",
  997.                         "SX" => "St Maarten",
  998.                         "SY" => "Syria",
  999.                         "SZ" => "Swaziland",
  1000.                         "TC" => "Turks and Caicos Islands",
  1001.                         "TD" => "Chad",
  1002.                         "TG" => "Togo",
  1003.                         "TH" => "Thailand",
  1004.                         "TJ" => "Tajikistan",
  1005.                         "TL" => "East Timor",
  1006.                         "TM" => "Turkmenistan",
  1007.                         "TN" => "Tunisia",
  1008.                         "TO" => "Tonga",
  1009.                         "TR" => "Turkey",
  1010.                         "TT" => "Trinidad and Tobago",
  1011.                         "TV" => "Tuvalu",
  1012.                         "TW" => "Taiwan",
  1013.                         "TZ" => "Tanzania",
  1014.                         "UA" => "Ukraine",
  1015.                         "UG" => "Uganda",
  1016.                         "UK" => "United Kingdom",
  1017.                         "US" => "United States",
  1018.                         "UY" => "Uruguay",
  1019.                         "UZ" => "Uzbekistan",
  1020.                         "VA" => "Vatican City",
  1021.                         "VC" => "Saint Vincent and the Grenadines",
  1022.                         "VE" => "Venezuela",
  1023.                         "VG" => "British Virgin Islands",
  1024.                         "VI" => "US Virgin Islands",
  1025.                         "VN" => "Vietnam",
  1026.                         "VU" => "Vanuatu",
  1027.                         "WF" => "Wallis and Futuna Islands",
  1028.                         "WS" => "Samoa",
  1029.                         "YE" => "Yemen",
  1030.                         "YT" => "Mayotte",
  1031.                         "ZA" => "South Africa",
  1032.                         "ZM" => "Zambia",
  1033.                         "ZW" => "Zimbabwe",
  1034.                     )
  1035.                 ),
  1036.                 array(
  1037.                     'settings' => 'flight_currency',
  1038.                     'label'    => esc_html__( 'Flight Currency', 'themeum-core' ),
  1039.                     'type'     => 'select',
  1040.                     'priority' => 10,
  1041.                     'default'  => 'USD',
  1042.                     'choices'  => array(
  1043.                         '' => esc_html( 'Select', 'themeum-core' ),
  1044.                         'AED' => 'AED - د.إ.‏',
  1045.                         'AFN' => 'AFN - AFN',
  1046.                         'ALL' => 'ALL - Lek',
  1047.                         'AMD' => 'AMD - դր.',
  1048.                         'ANG' => 'ANG - NAf.',
  1049.                         'AOA' => 'AOA - Kz',
  1050.                         'ARS' => 'ARS - $',
  1051.                         'AUD' => 'AUD - $',
  1052.                         'AWG' => 'AWG - Afl.',
  1053.                         'AZN' => 'AZN - ₼',
  1054.                         'BAM' => 'BAM - КМ',
  1055.                         'BBD' => 'BBD - $',
  1056.                         'BDT' => 'BDT - BDT',
  1057.                         'BGN' => 'BGN - лв.',
  1058.                         'BHD' => 'BHD - د.ب.‏',
  1059.                         'BIF' => 'BIF - FBu',
  1060.                         'BMD' => 'BMD - $',
  1061.                         'BND' => 'BND - $',
  1062.                         'BOB' => 'BOB - Bs',
  1063.                         'BRL' => 'BRL - R$',
  1064.                         'BSD' => 'BSD - $',
  1065.                         'BTN' => 'BTN - Nu.',
  1066.                         'BWP' => 'BWP - P',
  1067.                         'BYR' => 'BYR - р.',
  1068.                         'BZD' => 'BZD - BZ$',
  1069.                         'CAD' => 'CAD - $',
  1070.                         'CDF' => 'CDF - FC',
  1071.                         'CHF' => 'CHF - CHF',
  1072.                         'CLP' => 'CLP - $',
  1073.                         'CNY' => 'CNY - ¥',
  1074.                         'COP' => 'COP - $',
  1075.                         'CRC' => 'CRC - ₡',
  1076.                         'CUC' => 'CUC - CUC',
  1077.                         'CUP' => 'CUP - $MN',
  1078.                         'CVE' => 'CVE - $',
  1079.                         'CZK' => 'CZK - Kč',
  1080.                         'DJF' => 'DJF - Fdj',
  1081.                         'DKK' => 'DKK - kr.',
  1082.                         'DOP' => 'DOP - RD$',
  1083.                         'DZD' => 'DZD - د.ج.‏',
  1084.                         'EGP' => 'EGP - ج.م.‏',
  1085.                         'ERN' => 'ERN - Nfk',
  1086.                         'ETB' => 'ETB - ETB',
  1087.                         'EUR' => 'EUR - €',
  1088.                         'FJD' => 'FJD - $',
  1089.                         'GBP' => 'GBP - £',
  1090.                         'GEL' => 'GEL - ₾',
  1091.                         'GHS' => 'GHS - GH¢',
  1092.                         'GIP' => 'GIP - £',
  1093.                         'GMD' => 'GMD - D',
  1094.                         'GNF' => 'GNF - FG',
  1095.                         'GTQ' => 'GTQ - Q',
  1096.                         'GYD' => 'GYD - $',
  1097.                         'HKD' => 'HKD - HK$',
  1098.                         'HNL' => 'HNL - L.',
  1099.                         'HRK' => 'HRK - kn',
  1100.                         'HTG' => 'HTG - G',
  1101.                         'HUF' => 'HUF - Ft',
  1102.                         'IDR' => 'IDR - Rp',
  1103.                         'ILS' => 'ILS - ₪',
  1104.                         'INR' => 'INR - ₹',
  1105.                         'IQD' => 'IQD - د.ع.‏',
  1106.                         'IRR' => 'IRR - ريال',
  1107.                         'ISK' => 'ISK - kr.',
  1108.                         'JMD' => 'JMD - J$',
  1109.                         'JOD' => 'JOD - د.ا.‏',
  1110.                         'JPY' => 'JPY - ¥',
  1111.                         'KES' => 'KES - S',
  1112.                         'KGS' => 'KGS - сом',
  1113.                         'KHR' => 'KHR - KHR',
  1114.                         'KMF' => 'KMF - CF',
  1115.                         'KPW' => 'KPW - ₩',
  1116.                         'KRW' => 'KRW - ₩',
  1117.                         'KWD' => 'KWD - د.ك.‏',
  1118.                         'KYD' => 'KYD - $',
  1119.                         'KZT' => 'KZT - Т',
  1120.                         'LAK' => 'LAK - ₭',
  1121.                         'LBP' => 'LBP - ل.ل.‏',
  1122.                         'LKR' => 'LKR - Rp',
  1123.                         'LRD' => 'LRD - $',
  1124.                         'LSL' => 'LSL - M',
  1125.                         'LYD' => 'LYD - د.ل.‏',
  1126.                         'MAD' => 'MAD - د.م.‏',
  1127.                         'MDL' => 'MDL - lei',
  1128.                         'MGA' => 'MGA - Ar',
  1129.                         'MKD' => 'MKD - ден.',
  1130.                         'MMK' => 'MMK - K',
  1131.                         'MNT' => 'MNT - ₮',
  1132.                         'MOP' => 'MOP - MOP$',
  1133.                         'MRO' => 'MRO - UM',
  1134.                         'MUR' => 'MUR - Rs',
  1135.                         'MVR' => 'MVR - MVR',
  1136.                         'MWK' => 'MWK - MK',
  1137.                         'MXN' => 'MXN - $',
  1138.                         'MYR' => 'MYR - RM',
  1139.                         'MZN' => 'MZN - MT',
  1140.                         'NAD' => 'NAD - $',
  1141.                         'NGN' => 'NGN - ₦',
  1142.                         'NIO' => 'NIO - C$',
  1143.                         'NOK' => 'NOK - kr',
  1144.                         'NPR' => 'NPR - रु',
  1145.                         'NZD' => 'NZD - $',
  1146.                         'OMR' => 'OMR - ر.ع.‏',
  1147.                         'PAB' => 'PAB - B/.',
  1148.                         'PEN' => 'PEN - S/.',
  1149.                         'PGK' => 'PGK - K',
  1150.                         'PHP' => 'PHP - P',
  1151.                         'PKR' => 'PKR - Rs',
  1152.                         'PLN' => 'PLN - zł',
  1153.                         'PYG' => 'PYG - Gs',
  1154.                         'QAR' => 'QAR - ر.ق.‏',
  1155.                         'RON' => 'RON - lei',
  1156.                         'RSD' => 'RSD - Дин.',
  1157.                         'RUB' => 'RUB - p.',
  1158.                         'RWF' => 'RWF - RWF',
  1159.                         'SAR' => 'SAR - ر.س.‏',
  1160.                         'SBD' => 'SBD - $',
  1161.                         'SCR' => 'SCR - Rs',
  1162.                         'SDG' => 'SDG - ج.س.‏',
  1163.                         'SEK' => 'SEK - kr',
  1164.                         'SGD' => 'SGD - $',
  1165.                         'SHP' => 'SHP - £',
  1166.                         'SLL' => 'SLL - Le',
  1167.                         'SOS' => 'SOS - S',
  1168.                         'SRD' => 'SRD - $',
  1169.                         'STD' => 'STD - Db',
  1170.                         'SYP' => 'SYP - ل.س.‏',
  1171.                         'SZL' => 'SZL - E',
  1172.                         'THB' => 'THB - ฿',
  1173.                         'TJS' => 'TJS - TJS',
  1174.                         'TMT' => 'TMT - m',
  1175.                         'TND' => 'TND - د.ت.‏',
  1176.                         'TOP' => 'TOP - T$',
  1177.                         'TRY' => 'TRY - TL',
  1178.                         'TTD' => 'TTD - TT$',
  1179.                         'TWD' => 'TWD - NT$',
  1180.                         'TZS' => 'TZS - TSh',
  1181.                         'UAH' => 'UAH - грн.',
  1182.                         'UGX' => 'UGX - USh',
  1183.                         'USD' => 'USD - $',
  1184.                         'UYU' => 'UYU - $U',
  1185.                         'UZS' => 'UZS - сўм',
  1186.                         'VEF' => 'VEF - Bs. F.',
  1187.                         'VND' => 'VND - ₫',
  1188.                         'VUV' => 'VUV - VT',
  1189.                         'WST' => 'WST - WS$',
  1190.                         'XAF' => 'XAF - F',
  1191.                         'XCD' => 'XCD - $',
  1192.                         'XOF' => 'XOF - F',
  1193.                         'XPF' => 'XPF - F',
  1194.                         'YER' => 'YER - ر.ي.‏',
  1195.                         'ZAR' => 'ZAR - R',
  1196.                         'ZMW' => 'ZMW - ZK',
  1197.                     )
  1198.                 ),
  1199.  
  1200.             )
  1201.         ),
  1202.  
  1203.         array(
  1204.             'id'              => 'typo_setting',
  1205.             'title'           => esc_html__( 'Typography Setting', 'themeum-core' ),
  1206.             'description'     => esc_html__( 'Typography Setting', 'themeum-core' ),
  1207.             'priority'        => 10,
  1208.             // 'active_callback' => 'is_front_page',
  1209.             'fields'         => array(
  1210.  
  1211.                 //body font
  1212.                 array(
  1213.                     'settings' => 'body_google_font',
  1214.                     'label'    => esc_html__( 'Select Google Font', 'themeum-core' ),
  1215.                     'type'     => 'select',
  1216.                     'default'  => 'Poppins',
  1217.                     'choices'  => get_google_fonts(),
  1218.                     'google_font' => true,
  1219.                     'google_font_weight' => 'body_font_weight',
  1220.                     'google_font_weight_default' => '400'
  1221.                 ),
  1222.                 array(
  1223.                     'settings' => 'body_font_size',
  1224.                     'label'    => esc_html__( 'Body Font Size', 'themeum-core' ),
  1225.                     'type'     => 'number',
  1226.                     'default'  => '14',
  1227.                 ),
  1228.                 array(
  1229.                     'settings' => 'body_font_height',
  1230.                     'label'    => esc_html__( 'Body Font Line Height', 'themeum-core' ),
  1231.                     'type'     => 'number',
  1232.                     'default'  => '24',
  1233.                 ),
  1234.                 array(
  1235.                     'settings' => 'body_font_weight',
  1236.                     'label'    => esc_html__( 'Body Font Weight', 'themeum-core' ),
  1237.                     'type'     => 'select',
  1238.                     'priority' => 10,
  1239.                     'default'  => '400',
  1240.                     'choices'  => array(
  1241.                         '' => esc_html( 'Select', 'themeum-core' ),
  1242.                         '100' => esc_html( '100', 'themeum-core' ),
  1243.                         '200' => esc_html( '200', 'themeum-core' ),
  1244.                         '300' => esc_html( '300', 'themeum-core' ),
  1245.                         '400' => esc_html( '400', 'themeum-core' ),
  1246.                         '500' => esc_html( '500', 'themeum-core' ),
  1247.                         '600' => esc_html( '600', 'themeum-core' ),
  1248.                         '700' => esc_html( '700', 'themeum-core' ),
  1249.                         '800' => esc_html( '800', 'themeum-core' ),
  1250.                         '900' => esc_html( '900', 'themeum-core' ),
  1251.                     )
  1252.                 ),
  1253.                 array(
  1254.                     'settings' => 'body_font_color',
  1255.                     'label'    => esc_html__( 'Body Font Color', 'themeum-core' ),
  1256.                     'type'     => 'color',
  1257.                     'priority' => 10,
  1258.                     'default'  => '#777777',
  1259.                 ),
  1260.  
  1261.                 //Menu font
  1262.                 array(
  1263.                     'settings' => 'menu_google_font',
  1264.                     'label'    => esc_html__( 'Select Google Font', 'themeum-core' ),
  1265.                     'type'     => 'select',
  1266.                     'default'  => 'Poppins',
  1267.                     'choices'  => get_google_fonts(),
  1268.                     'google_font' => true,
  1269.                     'google_font_weight' => 'menu_font_weight',
  1270.                     'google_font_weight_default' => '400'
  1271.                 ),
  1272.                 array(
  1273.                     'settings' => 'menu_font_size',
  1274.                     'label'    => esc_html__( 'Menu Font Size', 'themeum-core' ),
  1275.                     'type'     => 'number',
  1276.                     'default'  => '14',
  1277.                 ),
  1278.                 array(
  1279.                     'settings' => 'menu_font_height',
  1280.                     'label'    => esc_html__( 'Menu Font Line Height', 'themeum-core' ),
  1281.                     'type'     => 'number',
  1282.                     'default'  => '24',
  1283.                 ),
  1284.                 array(
  1285.                     'settings' => 'menu_font_weight',
  1286.                     'label'    => esc_html__( 'Menu Font Weight', 'themeum-core' ),
  1287.                     'type'     => 'select',
  1288.                     'priority' => 10,
  1289.                     'default'  => '400',
  1290.                     'choices'  => array(
  1291.                         '' => esc_html( 'Select', 'themeum-core' ),
  1292.                         '100' => esc_html( '100', 'themeum-core' ),
  1293.                         '200' => esc_html( '200', 'themeum-core' ),
  1294.                         '300' => esc_html( '300', 'themeum-core' ),
  1295.                         '400' => esc_html( '400', 'themeum-core' ),
  1296.                         '500' => esc_html( '500', 'themeum-core' ),
  1297.                         '600' => esc_html( '600', 'themeum-core' ),
  1298.                         '700' => esc_html( '700', 'themeum-core' ),
  1299.                         '800' => esc_html( '800', 'themeum-core' ),
  1300.                         '900' => esc_html( '900', 'themeum-core' ),
  1301.                     )
  1302.                 ),
  1303.                 array(
  1304.                     'settings' => 'menu_font_color',
  1305.                     'label'    => esc_html__( 'Menu Font Color', 'themeum-core' ),
  1306.                     'type'     => 'color',
  1307.                     'priority' => 10,
  1308.                     'default'  => '#777777',
  1309.                 ),
  1310.  
  1311.  
  1312.                 //Heading 1
  1313.                 array(
  1314.                     'settings' => 'h1_google_font',
  1315.                     'label'    => esc_html__( 'Heading1 Google Font', 'themeum-core' ),
  1316.                     'type'     => 'select',
  1317.                     'default'  => 'Poppins',
  1318.                     'choices'  => get_google_fonts(),
  1319.                     'google_font' => true,
  1320.                     'google_font_weight' => 'menu_font_weight',
  1321.                     'google_font_weight_default' => '400'
  1322.                 ),
  1323.                 array(
  1324.                     'settings' => 'h1_font_size',
  1325.                     'label'    => esc_html__( 'Heading1 Font Size', 'themeum-core' ),
  1326.                     'type'     => 'number',
  1327.                     'default'  => '46',
  1328.                 ),
  1329.                 array(
  1330.                     'settings' => 'h1_font_height',
  1331.                     'label'    => esc_html__( 'Heading1 Font Line Height', 'themeum-core' ),
  1332.                     'type'     => 'number',
  1333.                     'default'  => '24',
  1334.                 ),
  1335.                 array(
  1336.                     'settings' => 'h1_font_weight',
  1337.                     'label'    => esc_html__( 'Heading1 Font Weight', 'themeum-core' ),
  1338.                     'type'     => 'select',
  1339.                     'priority' => 10,
  1340.                     'default'  => '400',
  1341.                     'choices'  => array(
  1342.                         '' => esc_html( 'Select', 'themeum-core' ),
  1343.                         '100' => esc_html( '100', 'themeum-core' ),
  1344.                         '200' => esc_html( '200', 'themeum-core' ),
  1345.                         '300' => esc_html( '300', 'themeum-core' ),
  1346.                         '400' => esc_html( '400', 'themeum-core' ),
  1347.                         '500' => esc_html( '500', 'themeum-core' ),
  1348.                         '600' => esc_html( '600', 'themeum-core' ),
  1349.                         '700' => esc_html( '700', 'themeum-core' ),
  1350.                         '800' => esc_html( '800', 'themeum-core' ),
  1351.                         '900' => esc_html( '900', 'themeum-core' ),
  1352.                     )
  1353.                 ),
  1354.                 array(
  1355.                     'settings' => 'h1_font_color',
  1356.                     'label'    => esc_html__( 'Heading1 Font Color', 'themeum-core' ),
  1357.                     'type'     => 'color',
  1358.                     'priority' => 10,
  1359.                     'default'  => '#777777',
  1360.                 ),
  1361.  
  1362.                 //Heading 2
  1363.                 array(
  1364.                     'settings' => 'h2_google_font',
  1365.                     'label'    => esc_html__( 'Heading2 Google Font', 'themeum-core' ),
  1366.                     'type'     => 'select',
  1367.                     'default'  => 'Poppins',
  1368.                     'choices'  => get_google_fonts(),
  1369.                     'google_font' => true,
  1370.                     'google_font_weight' => 'menu_font_weight',
  1371.                     'google_font_weight_default' => '400'
  1372.                 ),
  1373.                 array(
  1374.                     'settings' => 'h2_font_size',
  1375.                     'label'    => esc_html__( 'Heading2 Font Size', 'themeum-core' ),
  1376.                     'type'     => 'number',
  1377.                     'default'  => '36',
  1378.                 ),
  1379.                 array(
  1380.                     'settings' => 'h2_font_height',
  1381.                     'label'    => esc_html__( 'Heading2 Font Line Height', 'themeum-core' ),
  1382.                     'type'     => 'number',
  1383.                     'default'  => '24',
  1384.                 ),
  1385.                 array(
  1386.                     'settings' => 'h2_font_weight',
  1387.                     'label'    => esc_html__( 'Heading2 Font Weight', 'themeum-core' ),
  1388.                     'type'     => 'select',
  1389.                     'priority' => 10,
  1390.                     'default'  => '400',
  1391.                     'choices'  => array(
  1392.                         '' => esc_html( 'Select', 'themeum-core' ),
  1393.                         '100' => esc_html( '100', 'themeum-core' ),
  1394.                         '200' => esc_html( '200', 'themeum-core' ),
  1395.                         '300' => esc_html( '300', 'themeum-core' ),
  1396.                         '400' => esc_html( '400', 'themeum-core' ),
  1397.                         '500' => esc_html( '500', 'themeum-core' ),
  1398.                         '600' => esc_html( '600', 'themeum-core' ),
  1399.                         '700' => esc_html( '700', 'themeum-core' ),
  1400.                         '800' => esc_html( '800', 'themeum-core' ),
  1401.                         '900' => esc_html( '900', 'themeum-core' ),
  1402.                     )
  1403.                 ),
  1404.                 array(
  1405.                     'settings' => 'h2_font_color',
  1406.                     'label'    => esc_html__( 'Heading2 Font Color', 'themeum-core' ),
  1407.                     'type'     => 'color',
  1408.                     'priority' => 10,
  1409.                     'default'  => '#777777',
  1410.                 ),
  1411.  
  1412.                 //Heading 3
  1413.                 array(
  1414.                     'settings' => 'h3_google_font',
  1415.                     'label'    => esc_html__( 'Heading3 Google Font', 'themeum-core' ),
  1416.                     'type'     => 'select',
  1417.                     'default'  => 'Poppins',
  1418.                     'choices'  => get_google_fonts(),
  1419.                     'google_font' => true,
  1420.                     'google_font_weight' => 'menu_font_weight',
  1421.                     'google_font_weight_default' => '400'
  1422.                 ),
  1423.                 array(
  1424.                     'settings' => 'h3_font_size',
  1425.                     'label'    => esc_html__( 'Heading3 Font Size', 'themeum-core' ),
  1426.                     'type'     => 'number',
  1427.                     'default'  => '26',
  1428.                 ),
  1429.                 array(
  1430.                     'settings' => 'h3_font_height',
  1431.                     'label'    => esc_html__( 'Heading3 Font Line Height', 'themeum-core' ),
  1432.                     'type'     => 'number',
  1433.                     'default'  => '24',
  1434.                 ),
  1435.                 array(
  1436.                     'settings' => 'h3_font_weight',
  1437.                     'label'    => esc_html__( 'Heading3 Font Weight', 'themeum-core' ),
  1438.                     'type'     => 'select',
  1439.                     'priority' => 10,
  1440.                     'default'  => '400',
  1441.                     'choices'  => array(
  1442.                         '' => esc_html( 'Select', 'themeum-core' ),
  1443.                         '100' => esc_html( '100', 'themeum-core' ),
  1444.                         '200' => esc_html( '200', 'themeum-core' ),
  1445.                         '300' => esc_html( '300', 'themeum-core' ),
  1446.                         '400' => esc_html( '400', 'themeum-core' ),
  1447.                         '500' => esc_html( '500', 'themeum-core' ),
  1448.                         '600' => esc_html( '600', 'themeum-core' ),
  1449.                         '700' => esc_html( '700', 'themeum-core' ),
  1450.                         '800' => esc_html( '800', 'themeum-core' ),
  1451.                         '900' => esc_html( '900', 'themeum-core' ),
  1452.                     )
  1453.                 ),
  1454.                 array(
  1455.                     'settings' => 'h3_font_color',
  1456.                     'label'    => esc_html__( 'Heading3 Font Color', 'themeum-core' ),
  1457.                     'type'     => 'color',
  1458.                     'priority' => 10,
  1459.                     'default'  => '#777777',
  1460.                 ),
  1461.  
  1462.                 //Heading 4
  1463.                 array(
  1464.                     'settings' => 'h4_google_font',
  1465.                     'label'    => esc_html__( 'Heading4 Google Font', 'themeum-core' ),
  1466.                     'type'     => 'select',
  1467.                     'default'  => 'Poppins',
  1468.                     'choices'  => get_google_fonts(),
  1469.                     'google_font' => true,
  1470.                     'google_font_weight' => 'menu_font_weight',
  1471.                     'google_font_weight_default' => '400'
  1472.                 ),
  1473.                 array(
  1474.                     'settings' => 'h4_font_size',
  1475.                     'label'    => esc_html__( 'Heading4 Font Size', 'themeum-core' ),
  1476.                     'type'     => 'number',
  1477.                     'default'  => '18',
  1478.                 ),
  1479.                 array(
  1480.                     'settings' => 'h4_font_height',
  1481.                     'label'    => esc_html__( 'Heading4 Font Line Height', 'themeum-core' ),
  1482.                     'type'     => 'number',
  1483.                     'default'  => '24',
  1484.                 ),
  1485.                 array(
  1486.                     'settings' => 'h4_font_weight',
  1487.                     'label'    => esc_html__( 'Heading4 Font Weight', 'themeum-core' ),
  1488.                     'type'     => 'select',
  1489.                     'priority' => 10,
  1490.                     'default'  => '400',
  1491.                     'choices'  => array(
  1492.                         '' => esc_html( 'Select', 'themeum-core' ),
  1493.                         '100' => esc_html( '100', 'themeum-core' ),
  1494.                         '200' => esc_html( '200', 'themeum-core' ),
  1495.                         '300' => esc_html( '300', 'themeum-core' ),
  1496.                         '400' => esc_html( '400', 'themeum-core' ),
  1497.                         '500' => esc_html( '500', 'themeum-core' ),
  1498.                         '600' => esc_html( '600', 'themeum-core' ),
  1499.                         '700' => esc_html( '700', 'themeum-core' ),
  1500.                         '800' => esc_html( '800', 'themeum-core' ),
  1501.                         '900' => esc_html( '900', 'themeum-core' ),
  1502.                     )
  1503.                 ),
  1504.                 array(
  1505.                     'settings' => 'h4_font_color',
  1506.                     'label'    => esc_html__( 'Heading4 Font Color', 'themeum-core' ),
  1507.                     'type'     => 'color',
  1508.                     'priority' => 10,
  1509.                     'default'  => '#777777',
  1510.                 ),
  1511.  
  1512.                 //Heading 5
  1513.                 array(
  1514.                     'settings' => 'h5_google_font',
  1515.                     'label'    => esc_html__( 'Heading5 Google Font', 'themeum-core' ),
  1516.                     'type'     => 'select',
  1517.                     'default'  => 'Poppins',
  1518.                     'choices'  => get_google_fonts(),
  1519.                     'google_font' => true,
  1520.                     'google_font_weight' => 'menu_font_weight',
  1521.                     'google_font_weight_default' => '400'
  1522.                 ),
  1523.                 array(
  1524.                     'settings' => 'h5_font_size',
  1525.                     'label'    => esc_html__( 'Heading5 Font Size', 'themeum-core' ),
  1526.                     'type'     => 'number',
  1527.                     'default'  => '14',
  1528.                 ),
  1529.                 array(
  1530.                     'settings' => 'h5_font_height',
  1531.                     'label'    => esc_html__( 'Heading5 Font Line Height', 'themeum-core' ),
  1532.                     'type'     => 'number',
  1533.                     'default'  => '24',
  1534.                 ),
  1535.                 array(
  1536.                     'settings' => 'h5_font_weight',
  1537.                     'label'    => esc_html__( 'Heading5 Font Weight', 'themeum-core' ),
  1538.                     'type'     => 'select',
  1539.                     'priority' => 10,
  1540.                     'default'  => '400',
  1541.                     'choices'  => array(
  1542.                         '' => esc_html( 'Select', 'themeum-core' ),
  1543.                         '100' => esc_html( '100', 'themeum-core' ),
  1544.                         '200' => esc_html( '200', 'themeum-core' ),
  1545.                         '300' => esc_html( '300', 'themeum-core' ),
  1546.                         '400' => esc_html( '400', 'themeum-core' ),
  1547.                         '500' => esc_html( '500', 'themeum-core' ),
  1548.                         '600' => esc_html( '600', 'themeum-core' ),
  1549.                         '700' => esc_html( '700', 'themeum-core' ),
  1550.                         '800' => esc_html( '800', 'themeum-core' ),
  1551.                         '900' => esc_html( '900', 'themeum-core' ),
  1552.                     )
  1553.                 ),
  1554.                 array(
  1555.                     'settings' => 'h5_font_color',
  1556.                     'label'    => esc_html__( 'Heading5 Font Color', 'themeum-core' ),
  1557.                     'type'     => 'color',
  1558.                     'priority' => 10,
  1559.                     'default'  => '#777777',
  1560.                 ),
  1561.  
  1562.             )//fields
  1563.         ),//typo_setting
  1564.  
  1565.         array(
  1566.             'id'              => 'package_setting',
  1567.             'title'           => esc_html__( 'Package Setting', 'themeum-core' ),
  1568.             'description'     => esc_html__( 'Package Setting', 'themeum-core' ),
  1569.             'priority'        => 10,
  1570.             // 'active_callback' => 'is_front_page',
  1571.             'fields'         => array(
  1572.                 array(
  1573.                     'settings' => 'package_cat_num',
  1574.                     'label'    => esc_html__( 'Number of Post Show on the Category Listing Page', 'themeum-core' ),
  1575.                     'type'     => 'number',
  1576.                     'priority' => 10,
  1577.                     'default'  => '3',
  1578.                 ),
  1579.             )//fields
  1580.         ),//package_setting
  1581.  
  1582.         array(
  1583.             'id'              => 'layout_styling',
  1584.             'title'           => esc_html__( 'Layout & Styling', 'themeum-core' ),
  1585.             'description'     => esc_html__( 'Layout & Styling', 'themeum-core' ),
  1586.             'priority'        => 10,
  1587.             // 'active_callback' => 'is_front_page',
  1588.             'fields'         => array(
  1589.                 array(
  1590.                     'settings' => 'boxfull_en',
  1591.                     'label'    => esc_html__( 'Select BoxWidth of FullWidth', 'themeum-core' ),
  1592.                     'type'     => 'select',
  1593.                     'priority' => 10,
  1594.                     'default'  => 'fullwidth',
  1595.                     'choices'  => array(
  1596.                         'boxwidth' => esc_html__( 'BoxWidth', 'themeum-core' ),
  1597.                         'fullwidth' => esc_html__( 'FullWidth', 'themeum-core' ),
  1598.                     )
  1599.                 ),
  1600.                 array(
  1601.                     'settings' => 'body_bg_color',
  1602.                     'label'    => esc_html__( 'Body background Color', 'themeum-core' ),
  1603.                     'type'     => 'color',
  1604.                     'priority' => 10,
  1605.                     'default'  => '#fff',
  1606.                 ),
  1607.                 array(
  1608.                     'settings' => 'body_bg_img',
  1609.                     'label'    => esc_html__( 'Body background image', 'themeum-core' ),
  1610.                     'type'     => 'image',
  1611.                     'priority' => 10,
  1612.                 ),
  1613.                 array(
  1614.                     'settings' => 'body_bg_attachment',
  1615.                     'label'    => esc_html__( 'Body Background Attachment', 'themeum-core' ),
  1616.                     'type'     => 'select',
  1617.                     'priority' => 10,
  1618.                     'default'  => 'fixed',
  1619.                     'choices'  => array(
  1620.                         'scroll' => esc_html__( 'Scroll', 'themeum-core' ),
  1621.                         'fixed' => esc_html__( 'Fixed', 'themeum-core' ),
  1622.                         'inherit' => esc_html__( 'Inherit', 'themeum-core' ),
  1623.                     )
  1624.                 ),
  1625.                 array(
  1626.                     'settings' => 'body_bg_repeat',
  1627.                     'label'    => esc_html__( 'Body Background Repeat', 'themeum-core' ),
  1628.                     'type'     => 'select',
  1629.                     'priority' => 10,
  1630.                     'default'  => 'no-repeat',
  1631.                     'choices'  => array(
  1632.                         'repeat' => esc_html__( 'Repeat', 'themeum-core' ),
  1633.                         'repeat-x' => esc_html__( 'Repeat Horizontally', 'themeum-core' ),
  1634.                         'repeat-y' => esc_html__( 'Repeat Vertically', 'themeum-core' ),
  1635.                         'no-repeat' => esc_html__( 'No Repeat', 'themeum-core' ),
  1636.                     )
  1637.                 ),
  1638.                 array(
  1639.                     'settings' => 'body_bg_size',
  1640.                     'label'    => esc_html__( 'Body Background Size', 'themeum-core' ),
  1641.                     'type'     => 'select',
  1642.                     'priority' => 10,
  1643.                     'default'  => 'cover',
  1644.                     'choices'  => array(
  1645.                         'cover' => esc_html__( 'Cover', 'themeum-core' ),
  1646.                         'contain' => esc_html__( 'Contain', 'themeum-core' ),
  1647.                     )
  1648.                 ),
  1649.                 array(
  1650.                     'settings' => 'body_bg_position',
  1651.                     'label'    => esc_html__( 'Body Background Position', 'themeum-core' ),
  1652.                     'type'     => 'select',
  1653.                     'priority' => 10,
  1654.                     'default'  => 'left top',
  1655.                     'choices'  => array(
  1656.                         'left top' => esc_html__('left top', 'themeum-core'),
  1657.                         'left center' => esc_html__('left center', 'themeum-core'),
  1658.                         'left bottom' => esc_html__('left bottom', 'themeum-core'),
  1659.                         'right top' => esc_html__('right top', 'themeum-core'),
  1660.                         'right center' => esc_html__('right center', 'themeum-core'),
  1661.                         'right bottom' => esc_html__('right bottom', 'themeum-core'),
  1662.                         'center top' => esc_html__('center top', 'themeum-core'),
  1663.                         'center center' => esc_html__('center center', 'themeum-core'),
  1664.                         'center bottom' => esc_html__('center bottom', 'themeum-core'),
  1665.                     )
  1666.                 ),
  1667.                 array(
  1668.                     'settings' => 'preset',
  1669.                     'label'    => esc_html__( 'Color Preset', 'themeum-core' ),
  1670.                     'type'     => 'radio_image',
  1671.                     'priority' => 10,
  1672.                     'transport'=> 'postMessage',
  1673.                     'default'  => '#32aad6',
  1674.                     'choices'  => array(
  1675.                         '#32aad6' => plugin_dir_url( __FILE__ ).'assets/presets/1.png',
  1676.                         '#f7941d' => plugin_dir_url( __FILE__ ).'assets/presets/2.png',
  1677.                         '#88cb2c' => plugin_dir_url( __FILE__ ).'assets/presets/3.png',
  1678.                         '#8177db' => plugin_dir_url( __FILE__ ).'assets/presets/4.png',
  1679.                         '#22c5be' => plugin_dir_url( __FILE__ ).'assets/presets/5.png',
  1680.                         '#e2b278' => plugin_dir_url( __FILE__ ).'assets/presets/6.png',
  1681.                     )
  1682.                 ),
  1683.                 array(
  1684.                     'settings' => 'custom_preset_en',
  1685.                     'label'    => esc_html__( 'Set Custom Color', 'themeum-core' ),
  1686.                     'type'     => 'switch',
  1687.                     'priority' => 10,
  1688.                     'default'  => true,
  1689.                 ),
  1690.                 array(
  1691.                     'settings' => 'major_color',
  1692.                     'label'    => esc_html__( 'Major Color', 'themeum-core' ),
  1693.                     'type'     => 'color',
  1694.                     'priority' => 10,
  1695.                     'default'  => '#32aad6',
  1696.                 ),
  1697.                 array(
  1698.                     'settings' => 'hover_color',
  1699.                     'label'    => esc_html__( 'Hover Color', 'themeum-core' ),
  1700.                     'type'     => 'color',
  1701.                     'priority' => 10,
  1702.                     'default'  => '#2695BC',
  1703.                 ),
  1704.  
  1705.                 array(
  1706.                     'settings' => 'bottom_color',
  1707.                     'label'    => esc_html__( 'Bottom background Color', 'themeum-core' ),
  1708.                     'type'     => 'color',
  1709.                     'priority' => 10,
  1710.                     'default'  => '',
  1711.                 ),
  1712.                 # button color section(new)
  1713.                 array(
  1714.                     'settings' => 'button_color_title',
  1715.                     'label'    => esc_html__( 'Button Color Settings', 'themeum-core' ),
  1716.                     'type'     => 'title',
  1717.                     'priority' => 10,
  1718.                 ),
  1719.                 array(
  1720.                     'settings' => 'button_bg_color',
  1721.                     'label'    => esc_html__( 'Background Color', 'themeum-core' ),
  1722.                     'type'     => 'color',
  1723.                     'priority' => 10,
  1724.                     'default'  => '#32aad6',
  1725.                 ),
  1726.  
  1727.                 array(
  1728.                     'settings' => 'button_hover_bg_color',
  1729.                     'label'    => esc_html__( 'Hover Background Color', 'themeum-core' ),
  1730.                     'type'     => 'color',
  1731.                     'priority' => 10,
  1732.                     'default'  => '#2695BC',
  1733.                 ),
  1734.                 array(
  1735.                     'settings' => 'button_text_color',
  1736.                     'label'    => esc_html__( 'Text Color', 'themeum-core' ),
  1737.                     'type'     => 'color',
  1738.                     'priority' => 10,
  1739.                     'default'  => '#fff',
  1740.                 ),
  1741.                 array(
  1742.                     'settings' => 'button_hover_text_color',
  1743.                     'label'    => esc_html__( 'Hover Text Color', 'themeum-core' ),
  1744.                     'type'     => 'color',
  1745.                     'priority' => 10,
  1746.                     'default'  => '#fff',
  1747.                 ),
  1748.                 # end button color section.
  1749.  
  1750.                 # navbar color section start.
  1751.                 array(
  1752.                     'settings' => 'menu_color_title',
  1753.                     'label'    => esc_html__( 'Menu Color Settings', 'themeum-core' ),
  1754.                     'type'     => 'title',
  1755.                     'priority' => 10,
  1756.                 ),
  1757.                 array(
  1758.                     'settings' => 'navbar_text_color',
  1759.                     'label'    => esc_html__( 'Text Color', 'themeum-core' ),
  1760.                     'type'     => 'color',
  1761.                     'priority' => 10,
  1762.                     'default'  => '',
  1763.                 ),
  1764.  
  1765.                 /*array(
  1766.                     'settings' => 'navbar_hover_text_color',
  1767.                     'label'    => esc_html__( 'Hover Text Color', 'themeum-core' ),
  1768.                     'type'     => 'color',
  1769.                     'priority' => 10,
  1770.                     'default'  => '',
  1771.                 ),*/
  1772.                 array(
  1773.                     'settings' => 'navbar_bracket_color',
  1774.                     'label'    => esc_html__( 'Bracket Color', 'themeum-core' ),
  1775.                     'type'     => 'color',
  1776.                     'priority' => 10,
  1777.                     'default'  => '#00aeef',
  1778.                 ),
  1779.                 array(
  1780.                     'settings' => 'sub_menu_color_title',
  1781.                     'label'    => esc_html__( 'Sub-Menu Color Settings', 'themeum-core' ),
  1782.                     'type'     => 'title',
  1783.                     'priority' => 10,
  1784.                 ),
  1785.                 array(
  1786.                     'settings' => 'sub_menu_bg',
  1787.                     'label'    => esc_html__( 'Background Color', 'themeum-core' ),
  1788.                     'type'     => 'color',
  1789.                     'priority' => 10,
  1790.                     'default'  => '#fff',
  1791.                 ),
  1792.                 array(
  1793.                     'settings' => 'sub_menu_text_color',
  1794.                     'label'    => esc_html__( 'Text Color', 'themeum-core' ),
  1795.                     'type'     => 'color',
  1796.                     'priority' => 10,
  1797.                     'default'  => '#000',
  1798.                 ),
  1799.                 array(
  1800.                     'settings' => 'sub_menu_border',
  1801.                     'label'    => esc_html__( 'Border Color', 'themeum-core' ),
  1802.                     'type'     => 'color',
  1803.                     'priority' => 10,
  1804.                     'default'  => '#eef0f2',
  1805.                 ),
  1806.                 array(
  1807.                     'settings' => 'sub_menu_bg_hover',
  1808.                     'label'    => esc_html__( 'Hover Background Color', 'themeum-core' ),
  1809.                     'type'     => 'color',
  1810.                     'priority' => 10,
  1811.                     'default'  => '#fbfbfc',
  1812.                 ),
  1813.                 array(
  1814.                     'settings' => 'sub_menu_text_color_hover',
  1815.                     'label'    => esc_html__( 'Hover Text Color', 'themeum-core' ),
  1816.                     'type'     => 'color',
  1817.                     'priority' => 10,
  1818.                     'default'  => '#000',
  1819.                 ),
  1820.                 // End of the navbar color section
  1821.                 array(
  1822.                     'settings' => 'sub_footer_widget_color_title',
  1823.                     'label'    => esc_html__( 'Footer Widget Area Color Settings', 'themeum-core' ),
  1824.                     'type'     => 'title',
  1825.                     'priority' => 10,
  1826.                 ),
  1827.                 array(
  1828.                     'settings' => 'footer_widget_bg_color',
  1829.                     'label'    => esc_html__( 'Background Color', 'themeum-core' ),
  1830.                     'type'     => 'color',
  1831.                     'priority' => 10,
  1832.                     'default'  => '',
  1833.                 ),
  1834.                 array(
  1835.                     'settings' => 'footer_widget_top_border_color',
  1836.                     'label'    => esc_html__( 'Top Border Color', 'themeum-core' ),
  1837.                     'type'     => 'color',
  1838.                     'priority' => 10,
  1839.                     'default'  => '#eaeaea',
  1840.                 ),
  1841.                 array(
  1842.                     'settings' => 'footer_widget_title_color',
  1843.                     'label'    => esc_html__( 'Widget Title Color', 'themeum-core' ),
  1844.                     'type'     => 'color',
  1845.                     'priority' => 10,
  1846.                     'default'  => '#000',
  1847.                 ),
  1848.                 array(
  1849.                     'settings' => 'footer_widget_text_color',
  1850.                     'label'    => esc_html__( 'Text Color', 'themeum-core' ),
  1851.                     'type'     => 'color',
  1852.                     'priority' => 10,
  1853.                     'default'  => '#000',
  1854.                 ),
  1855.                 array(
  1856.                     'settings' => 'footer_widget_link_color',
  1857.                     'label'    => esc_html__( 'Link Color', 'themeum-core' ),
  1858.                     'type'     => 'color',
  1859.                     'priority' => 10,
  1860.                     'default'  => '#000',
  1861.                 ),
  1862.                 array(
  1863.                     'settings' => 'footer_widget_link_color_hvr',
  1864.                     'label'    => esc_html__( 'Link Hover Color', 'themeum-core' ),
  1865.                     'type'     => 'color',
  1866.                     'priority' => 10,
  1867.                     'default'  => '#00aeef',
  1868.                 ),
  1869.                 // Copyright styling
  1870.                 array(
  1871.                     'settings' => 'footer_copyright_color_title',
  1872.                     'label'    => esc_html__( 'Footer Copyright Area Color Settings', 'themeum-core' ),
  1873.                     'type'     => 'title',
  1874.                     'priority' => 10,
  1875.                 ),
  1876.                 array(
  1877.                     'settings' => 'footer_color',
  1878.                     'label'    => esc_html__( 'Background Color', 'themeum-core' ),
  1879.                     'type'     => 'color',
  1880.                     'priority' => 10,
  1881.                     'default'  => '#202134',
  1882.                 ),
  1883.                 array(
  1884.                     'settings' => 'footer_copyright_text_color',
  1885.                     'label'    => esc_html__( 'Text Color', 'themeum-core' ),
  1886.                     'type'     => 'color',
  1887.                     'priority' => 10,
  1888.                     'default'  => '#fff',
  1889.                 ),
  1890.                 array(
  1891.                     'settings' => 'footer_copyright_link_color',
  1892.                     'label'    => esc_html__( 'Link Color', 'themeum-core' ),
  1893.                     'type'     => 'color',
  1894.                     'priority' => 10,
  1895.                     'default'  => '#00aeef',
  1896.                 ),
  1897.                 array(
  1898.                     'settings' => 'footer_copyright_link_color_hvr',
  1899.                     'label'    => esc_html__( 'Link Hover Color', 'themeum-core' ),
  1900.                     'type'     => 'color',
  1901.                     'priority' => 10,
  1902.                     'default'  => '#2695BC',
  1903.                 ),
  1904.  
  1905.                 array(
  1906.                     'settings' => 'footer_icon_color',
  1907.                     'label'    => esc_html__( 'Social Icon Color', 'themeum-core' ),
  1908.                     'type'     => 'color',
  1909.                     'priority' => 10,
  1910.                     'default'  => '#fff',
  1911.                 ),
  1912.                 array(
  1913.                     'settings' => 'footer_icon_color_hvr',
  1914.                     'label'    => esc_html__( 'Social Icon Hover Color', 'themeum-core' ),
  1915.                     'type'     => 'color',
  1916.                     'priority' => 10,
  1917.                     'default'  => '#00aeef',
  1918.                 ),
  1919.                
  1920.  
  1921.  
  1922.             )//fields
  1923.         ),//Layout & Styling
  1924.  
  1925.         array(
  1926.             'id'              => 'social_media_settings',
  1927.             'title'           => esc_html__( 'Social Media', 'themeum-core' ),
  1928.             'description'     => esc_html__( 'Social Media', 'themeum-core' ),
  1929.             'priority'        => 10,
  1930.             // 'active_callback' => 'is_front_page',
  1931.             'fields'         => array(
  1932.                 array(
  1933.                     'settings' => 'wp_facebook',
  1934.                     'label'    => esc_html__( 'Add Facebook URL', 'themeum-core' ),
  1935.                     'type'     => 'text',
  1936.                     'priority' => 10,
  1937.                     'default'  => '',
  1938.                 ),
  1939.                 array(
  1940.                     'settings' => 'wp_twitter',
  1941.                     'label'    => esc_html__( 'Add Twitter URL', 'themeum-core' ),
  1942.                     'type'     => 'text',
  1943.                     'priority' => 10,
  1944.                     'default'  => '',
  1945.                 ),
  1946.                 array(
  1947.                     'settings' => 'wp_google_plus',
  1948.                     'label'    => esc_html__( 'Add Goole Plus URL', 'themeum-core' ),
  1949.                     'type'     => 'text',
  1950.                     'priority' => 10,
  1951.                     'default'  => '',
  1952.                 ),
  1953.                 array(
  1954.                     'settings' => 'wp_pinterest',
  1955.                     'label'    => esc_html__( 'Add Pinterest URL', 'themeum-core' ),
  1956.                     'type'     => 'text',
  1957.                     'priority' => 10,
  1958.                     'default'  => '',
  1959.                 ),
  1960.                 array(
  1961.                     'settings' => 'wp_youtube',
  1962.                     'label'    => esc_html__( 'Add Youtube URL', 'themeum-core' ),
  1963.                     'type'     => 'text',
  1964.                     'priority' => 10,
  1965.                     'default'  => '',
  1966.                 ),
  1967.                 array(
  1968.                     'settings' => 'wp_linkedin',
  1969.                     'label'    => esc_html__( 'Add Linkedin URL', 'themeum-core' ),
  1970.                     'type'     => 'text',
  1971.                     'priority' => 10,
  1972.                     'default'  => '',
  1973.                 ),
  1974.                 array(
  1975.                     'settings' => 'wp_instagram',
  1976.                     'label'    => esc_html__( 'Add Instagram URL', 'themeum-core' ),
  1977.                     'type'     => 'text',
  1978.                     'priority' => 10,
  1979.                     'default'  => '',
  1980.                 ),
  1981.                 array(
  1982.                     'settings' => 'wp_dribbble',
  1983.                     'label'    => esc_html__( 'Add Dribbble URL', 'themeum-core' ),
  1984.                     'type'     => 'text',
  1985.                     'priority' => 10,
  1986.                     'default'  => '',
  1987.                 ),
  1988.                 array(
  1989.                     'settings' => 'wp_behance',
  1990.                     'label'    => esc_html__( 'Add Behance URL', 'themeum-core' ),
  1991.                     'type'     => 'text',
  1992.                     'priority' => 10,
  1993.                     'default'  => '',
  1994.                 ),
  1995.                 array(
  1996.                     'settings' => 'wp_flickr',
  1997.                     'label'    => esc_html__( 'Add Flickr URL', 'themeum-core' ),
  1998.                     'type'     => 'text',
  1999.                     'priority' => 10,
  2000.                     'default'  => '',
  2001.                 ),
  2002.                 array(
  2003.                     'settings' => 'wp_vk',
  2004.                     'label'    => esc_html__( 'Add Vk URL', 'themeum-core' ),
  2005.                     'type'     => 'text',
  2006.                     'priority' => 10,
  2007.                     'default'  => '',
  2008.                 ),
  2009.                 array(
  2010.                     'settings' => 'wp_skype',
  2011.                     'label'    => esc_html__( 'Add Skype URL', 'themeum-core' ),
  2012.                     'type'     => 'text',
  2013.                     'priority' => 10,
  2014.                     'default'  => '',
  2015.                 ),
  2016.             )//fields
  2017.         ),//social_media
  2018.  
  2019.         array(
  2020.             'id'              => 'coming_soon',
  2021.             'title'           => esc_html__( 'Coming Soon', 'themeum-core' ),
  2022.             'description'     => esc_html__( 'Coming Soon', 'themeum-core' ),
  2023.             'priority'        => 10,
  2024.             // 'active_callback' => 'is_front_page',
  2025.             'fields'         => array(
  2026.  
  2027.                 array(
  2028.                     'settings' => 'comingsoon_en',
  2029.                     'label'    => esc_html__( 'Enable Coming Soon', 'themeum-core' ),
  2030.                     'type'     => 'switch',
  2031.                     'priority' => 10,
  2032.                     'default'  => false,
  2033.                 ),
  2034.                 array(
  2035.                     'settings' => 'comingsoonbg',
  2036.                     'label'    => esc_html__( 'Upload Coming Soon Page Background', 'themeum-core' ),
  2037.                     'type'     => 'image',
  2038.                     'priority' => 10,
  2039.                 ),
  2040.                 array(
  2041.                     'settings' => 'comingsoon_date',
  2042.                     'label'    => esc_html__( 'Coming Soon date', 'themeum-core' ),
  2043.                     'type'     => 'date',
  2044.                     'priority' => 10,
  2045.                     'default'  => '2018-08-09',
  2046.                 ),
  2047.                 array(
  2048.                     'settings' => 'newsletter',
  2049.                     'label'    => esc_html__( 'Add mailchimp Form Shortcode Here', 'themeum-core' ),
  2050.                     'type'     => 'textarea',
  2051.                     'priority' => 10,
  2052.                     'default'  => '',
  2053.                 ),
  2054.                 array(
  2055.                     'settings' => 'comingsoon_facebook',
  2056.                     'label'    => esc_html__( 'Add Facebook URL', 'themeum-core' ),
  2057.                     'type'     => 'text',
  2058.                     'priority' => 10,
  2059.                     'default'  => '',
  2060.                 ),
  2061.                 array(
  2062.                     'settings' => 'comingsoon_twitter',
  2063.                     'label'    => esc_html__( 'Add Twitter URL', 'themeum-core' ),
  2064.                     'type'     => 'text',
  2065.                     'priority' => 10,
  2066.                     'default'  => '',
  2067.                 ),
  2068.                 array(
  2069.                     'settings' => 'comingsoon_google_plus',
  2070.                     'label'    => esc_html__( 'Add Google Plus URL', 'themeum-core' ),
  2071.                     'type'     => 'text',
  2072.                     'priority' => 10,
  2073.                     'default'  => '',
  2074.                 ),
  2075.                 array(
  2076.                     'settings' => 'comingsoon_pinterest',
  2077.                     'label'    => esc_html__( 'Add Pinterest URL', 'themeum-core' ),
  2078.                     'type'     => 'text',
  2079.                     'priority' => 10,
  2080.                     'default'  => '',
  2081.                 ),
  2082.                 array(
  2083.                     'settings' => 'comingsoon_youtube',
  2084.                     'label'    => esc_html__( 'Add Youtube URL', 'themeum-core' ),
  2085.                     'type'     => 'text',
  2086.                     'priority' => 10,
  2087.                     'default'  => '',
  2088.                 ),
  2089.                 array(
  2090.                     'settings' => 'comingsoon_linkedin',
  2091.                     'label'    => esc_html__( 'Add Linkedin URL', 'themeum-core' ),
  2092.                     'type'     => 'text',
  2093.                     'priority' => 10,
  2094.                     'default'  => '',
  2095.                 ),
  2096.                 array(
  2097.                     'settings' => 'comingsoon_dribbble',
  2098.                     'label'    => esc_html__( 'Add Dribbble URL', 'themeum-core' ),
  2099.                     'type'     => 'text',
  2100.                     'priority' => 10,
  2101.                     'default'  => '',
  2102.                 ),
  2103.                 array(
  2104.                     'settings' => 'comingsoon_instagram',
  2105.                     'label'    => esc_html__( 'Add Instagram URL', 'themeum-core' ),
  2106.                     'type'     => 'text',
  2107.                     'priority' => 10,
  2108.                     'default'  => '',
  2109.                 ),
  2110.             )//fields
  2111.         ),//coming_soon
  2112.         array(
  2113.             'id'              => '404_settings',
  2114.             'title'           => esc_html__( '404 Page', 'themeum-core' ),
  2115.             'description'     => esc_html__( '404 page background and text settings', 'themeum-core' ),
  2116.             'priority'        => 10,
  2117.             // 'active_callback' => 'is_front_page',
  2118.             'fields'         => array(
  2119.                 array(
  2120.                     'settings' => 'errorbg',
  2121.                     'label'    => esc_html__( 'Upload 404 Page Background Image', 'themeum-core' ),
  2122.                     'type'     => 'image',
  2123.                     'priority' => 10,
  2124.                 ),
  2125.                 array(
  2126.                     'settings' => '404_title',
  2127.                     'label'    => esc_html__( '404 Page Title', 'themeum-core' ),
  2128.                     'type'     => 'text',
  2129.                     'priority' => 10,
  2130.                     'default'  => esc_html__('Page not Found.', 'themeum-core')
  2131.                 ),
  2132.                 array(
  2133.                     'settings' => '404_description',
  2134.                     'label'    => esc_html__( '404 Page Description', 'themeum-core' ),
  2135.                     'type'     => 'textarea',
  2136.                     'priority' => 10,
  2137.                     'default'  => esc_html__('The page you are looking for was moved, removed, renamed or might never existed..', 'themeum-core')
  2138.                 ),
  2139.                 array(
  2140.                     'settings' => '404_btn_text',
  2141.                     'label'    => esc_html__( '404 Button Text', 'themeum-core' ),
  2142.                     'type'     => 'text',
  2143.                     'priority' => 10,
  2144.                     'default'  => esc_html__('Go Back Home', 'themeum-core')
  2145.                 ),
  2146.             )
  2147.         ),
  2148.         array(
  2149.             'id'              => 'blog_setting',
  2150.             'title'           => esc_html__( 'Blog Setting', 'themeum-core' ),
  2151.             'description'     => esc_html__( 'Blog Setting', 'themeum-core' ),
  2152.             'priority'        => 10,
  2153.             // 'active_callback' => 'is_front_page',
  2154.             'fields'         => array(
  2155.                 array(
  2156.                     'settings' => 'blog_column',
  2157.                     'label'    => esc_html__( 'Select Blog Column', 'themeum-core' ),
  2158.                     'type'     => 'select',
  2159.                     'priority' => 10,
  2160.                     'default'  => '12',
  2161.                     'choices'  => array(
  2162.                         '12' => esc_html( 'Column 1', 'themeum-core' ),
  2163.                         '6' => esc_html( 'Column 2', 'themeum-core' ),
  2164.                         '4' => esc_html( 'Column 3', 'themeum-core' ),
  2165.                         '3' => esc_html( 'Column 4', 'themeum-core' ),
  2166.                     )
  2167.                 ),
  2168.                 array(
  2169.                     'settings' => 'blog_date',
  2170.                     'label'    => esc_html__( 'Enable Blog Date', 'themeum-core' ),
  2171.                     'type'     => 'switch',
  2172.                     'priority' => 10,
  2173.                     'default'  => true,
  2174.                 ),
  2175.                 array(
  2176.                     'settings' => 'blog_author',
  2177.                     'label'    => esc_html__( 'Enable Blog Author', 'themeum-core' ),
  2178.                     'type'     => 'switch',
  2179.                     'priority' => 10,
  2180.                     'default'  => false,
  2181.                 ),
  2182.                 array(
  2183.                     'settings' => 'blog_category',
  2184.                     'label'    => esc_html__( 'Enable Blog Category', 'themeum-core' ),
  2185.                     'type'     => 'switch',
  2186.                     'priority' => 10,
  2187.                     'default'  => false,
  2188.                 ),
  2189.                 array(
  2190.                     'settings' => 'blog_comment',
  2191.                     'label'    => esc_html__( 'Enable Comment', 'themeum-core' ),
  2192.                     'type'     => 'switch',
  2193.                     'priority' => 10,
  2194.                     'default'  => true,
  2195.                 ),
  2196.                 array(
  2197.                     'settings' => 'blog_single_comment_en',
  2198.                     'label'    => esc_html__( 'Enable Single post comment', 'themeum-core' ),
  2199.                     'type'     => 'switch',
  2200.                     'priority' => 10,
  2201.                     'default'  => true,
  2202.                 ),
  2203.                 array(
  2204.                     'settings' => 'blog_tags',
  2205.                     'label'    => esc_html__( 'Enable single post tags', 'themeum-core' ),
  2206.                     'type'     => 'switch',
  2207.                     'priority' => 10,
  2208.                     'default'  => true,
  2209.                 ),
  2210.                 array(
  2211.                     'settings' => 'post_nav_en',
  2212.                     'label'    => esc_html__( 'Enable Post navigation', 'themeum-core' ),
  2213.                     'type'     => 'switch',
  2214.                     'priority' => 10,
  2215.                     'default'  => true,
  2216.                 ),
  2217.                 array(
  2218.                     'settings' => 'blog_intro_en',
  2219.                     'label'    => esc_html__( 'Enable post content', 'themeum-core' ),
  2220.                     'type'     => 'switch',
  2221.                     'priority' => 10,
  2222.                     'default'  => true,
  2223.                 ),
  2224.                 array(
  2225.                     'settings' => 'blog_post_text_limit',
  2226.                     'label'    => esc_html__( 'Post character Limit', 'themeum-core' ),
  2227.                     'type'     => 'text',
  2228.                     'priority' => 10,
  2229.                     'default'  => '150',
  2230.                 ),
  2231.                 array(
  2232.                     'settings' => 'blog_continue_en',
  2233.                     'label'    => esc_html__( 'Enable Blog Readmore', 'themeum-core' ),
  2234.                     'type'     => 'switch',
  2235.                     'priority' => 10,
  2236.                     'default'  => true,
  2237.                 ),
  2238.                 array(
  2239.                     'settings' => 'blog_continue',
  2240.                     'label'    => esc_html__( 'Continue Reading', 'themeum-core' ),
  2241.                     'type'     => 'text',
  2242.                     'priority' => 10,
  2243.                     'default'  => 'Read More',
  2244.                 ),
  2245.             )//fields
  2246.         ),//blog_setting
  2247.  
  2248.         array(
  2249.             'id'              => 'footer_setting',
  2250.             'title'           => esc_html__( 'Footer Setting', 'themeum-core' ),
  2251.             'description'     => esc_html__( 'Footer Setting', 'themeum-core' ),
  2252.             'priority'        => 10,
  2253.             // 'active_callback' => 'is_front_page',
  2254.             'fields'         => array(
  2255.                 array(
  2256.                     'settings' => 'bottom_style',
  2257.                     'label'    => esc_html__( 'Select Bottom Style', 'themeum-core' ),
  2258.                     'type'     => 'select',
  2259.                     'priority' => 10,
  2260.                     'default'  => 'solid',
  2261.                     'choices'  => array(
  2262.                         'solid' => esc_html( 'Solid Bottom', 'themeum-core' ),
  2263.                         'borderimage' => esc_html( 'Border Bottom', 'themeum-core' ),
  2264.                     )
  2265.                 ),
  2266.                 array(
  2267.                     'settings' => 'bottom_column',
  2268.                     'label'    => esc_html__( 'Select Bottom Column', 'themeum-core' ),
  2269.                     'type'     => 'select',
  2270.                     'priority' => 10,
  2271.                     'default'  => '3',
  2272.                     'choices'  => array(
  2273.                         '12' => esc_html( 'Column 1', 'themeum-core' ),
  2274.                         '6' => esc_html( 'Column 2', 'themeum-core' ),
  2275.                         '4' => esc_html( 'Column 3', 'themeum-core' ),
  2276.                         '3' => esc_html( 'Column 4', 'themeum-core' ),
  2277.                     )
  2278.                 ),
  2279.                 array(
  2280.                     'settings' => 'footer_share',
  2281.                     'label'    => esc_html__( 'Enable Footer Share', 'themeum-core' ),
  2282.                     'type'     => 'switch',
  2283.                     'priority' => 10,
  2284.                     'default'  => true,
  2285.                 ),
  2286.                 array(
  2287.                     'settings' => 'copyright_en',
  2288.                     'label'    => esc_html__( 'Enable Copyright Text', 'themeum-core' ),
  2289.                     'type'     => 'switch',
  2290.                     'priority' => 10,
  2291.                     'default'  => true,
  2292.                 ),
  2293.                 array(
  2294.                     'settings' => 'copyright_text',
  2295.                     'label'    => esc_html__( 'Copyright Text', 'themeum-core' ),
  2296.                     'type'     => 'textarea',
  2297.                     'priority' => 10,
  2298.                     'default'  => '',
  2299.                 ),
  2300.                 array(
  2301.                     'settings' => 'footer_widget_top_padding',
  2302.                     'label'    => esc_html__( 'Widget Area Top Padding (px)', 'themeum-core' ),
  2303.                     'type'     => 'number',
  2304.                     'priority' => 10,
  2305.                     'default'  => '85',
  2306.                 ),
  2307.                 array(
  2308.                     'settings' => 'footer_widget_bottom_padding',
  2309.                     'label'    => esc_html__( 'Widget Area Bottom Padding (px)', 'themeum-core' ),
  2310.                     'type'     => 'number',
  2311.                     'priority' => 10,
  2312.                     'default'  => '85',
  2313.                 ),
  2314.  
  2315.                 array(
  2316.                     'settings' => 'footer_copyright_top_padding',
  2317.                     'label'    => esc_html__( 'Copyright Top Padding (px)', 'themeum-core' ),
  2318.                     'type'     => 'number',
  2319.                     'priority' => 10,
  2320.                     'default'  => '26',
  2321.                 ),
  2322.                 array(
  2323.                     'settings' => 'footer_copyright_bottom_padding',
  2324.                     'label'    => esc_html__( 'Copyright Bottom Padding (px)', 'themeum-core' ),
  2325.                     'type'     => 'number',
  2326.                     'priority' => 10,
  2327.                     'default'  => '26',
  2328.                 ),
  2329.             )//fields
  2330.         ),//footer_setting
  2331.  
  2332.         array(
  2333.             'id'              => 'google_map',
  2334.             'title'           => esc_html__( 'Google Map Setting', 'themeum-core' ),
  2335.             'description'     => esc_html__( 'Google Map Setting', 'themeum-core' ),
  2336.             'priority'        => 10,
  2337.             // 'active_callback' => 'is_front_page',
  2338.             'fields'         => array(
  2339.                
  2340.                 array(
  2341.                     'settings' => 'google_map_api',
  2342.                     'label'    => esc_html__( 'Google Map API', 'themeum-core' ),
  2343.                     'type'     => 'text',
  2344.                     'priority' => 10,
  2345.                     'default'  => '',
  2346.                 ),
  2347.                
  2348.             )//fields
  2349.         ),//footer_setting
  2350.        
  2351.     ),
  2352. );//travelkit_panel_options
  2353.  
  2354.  
  2355. $framework = new THM_Customize( $panel_to_section );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement