<?php

if ( ! class_exists( 'OT_Loader' )){
	function ot_get_option() {
		return false;
	}

	function get_option_tree() {
		return false;
	}
}

/**
 * Initialize the custom theme options.
 */
add_action( 'admin_init', 'custom_theme_options' );

/**
 * Build the custom settings & update OptionTree.
 */
function custom_theme_options() {
  /**
   * Get a copy of the saved settings array. 
   */
  $saved_settings = get_option( 'option_tree_settings', array() );
  
  /**
   * Custom settings array that will eventually be 
   * passes to the OptionTree Settings API Class.
   */
  $custom_settings = array( 
    'contextual_help' => array( 
      'sidebar'       => ''
    ),
    'sections'        => array( 
      array(
        'id'          => 'general',
        'title'       => esc_html__('General Config','froday'),
      ),
	  
      array(
        'id'          => 'header_settings',
        'title'       => esc_html__('Header Settings','froday'),
      ),

	  array(
        'id'          => 'coupon_settings',
        'title'       => esc_html__('Coupon Settings','froday'),
      ),

	  array(
        'id'          => 'shop_settings',
        'title'       => esc_html__('Shop Settings','froday'),
      ), 
	  
      array(
        'id'          => 'color_settings',
        'title'       => esc_html__('Color Settings','froday'),
      ),

      array(
        'id'          => 'blog_settings',
        'title'       => esc_html__('Blog Settings','froday'),
      ), 	  
	  
      array(
        'id'          => 'google_fonts',
        'title'       => esc_html__('Google Fonts','froday'),
      ),

      array(
        'id'          => 'typography',
        'title'       => esc_html__('Typography','froday'),
      ),
	  
	  array(
		'id'          => 'map_settings',
		'title'       => esc_html__('Map Settings','froday'),
	  ),
	  
      array(
        'id'          => 'copyright',
        'title'       => esc_html__('Footer / Copyright','froday'),
      )	  
	
    ),
    'settings'        => array(
	
      array(
        'label'       => esc_html__( 'Logo', 'froday' ),
        'id'          => 'tab_logo',
        'type'        => 'tab',
        'section'     => 'general'
      ),
	  array(
        'id'          => 'froday_logo',
        'label'       => esc_html__('Logo Image','froday'),
        'desc'        => esc_html__('Upload your own logo.','froday'),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),
	  
      array(
        'id'          => 'froday_logo_size',
        'label'       => esc_html__( 'Logo Size', 'froday' ),
        'desc'        => esc_html__( 'You can set logo width.', 'froday' ),
        'std'         => '250',
        'type'        => 'numeric-slider',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '50,400,1',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	 
	  array(
        'id'          => 'froday_logotext',
        'label'       => esc_html__('Logo Text','froday'),
        'desc'        => esc_html__('Add Logo Text','froday'),
        'std'         => 'froday',
        'type'        => 'text',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),	
	  
	  array(
		'label'       => esc_html__( 'Top Header', 'froday' ),
		'id'          => 'tab_top_header',
		'type'        => 'tab',
		'section'     => 'header_settings'
	  ),
	  
	  array(
        'id'          => 'froday_top_header',
        'label'       => esc_html__( 'On/Off Top Header', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Top Header','froday' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

	  array(
        'id'          => 'froday_top_header_bg',
        'label'       => esc_html__('Background','froday'),
        'desc'        => esc_html__('Set background color.','froday'),
        'std'         => '#e9ebee',
        'type'        => 'colorpicker',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

	  array(
        'id'          => 'froday_top_header_color',
        'label'       => esc_html__('Font Color','froday'),
        'desc'        => esc_html__('Set font color.','froday'),
        'std'         => '#333',
        'type'        => 'colorpicker',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

      array(
        'id'          => 'froday_top_header_font_size',
        'label'       => esc_html__( 'Font Size', 'froday' ),
        'desc'        => esc_html__( 'Set font size.', 'froday' ),
        'std'         => '12',
        'type'        => 'numeric-slider',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '1,100,1',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  
	  array(
		'label'       => esc_html__( 'Middle Header', 'froday' ),
		'id'          => 'tab_middle_header',
		'type'        => 'tab',
		'section'     => 'header_settings'
	  ),
	  
	  array(
        'id'          => 'froday_middle_header_bg',
        'label'       => esc_html__('Background','froday'),
        'desc'        => esc_html__('Set background color.','froday'),
        'std'         => '#fff',
        'type'        => 'colorpicker',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

	  array(
        'id'          => 'froday_middle_header_search',
        'label'       => esc_html__( 'On/Off Search Form', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Search Form on Middle Header','froday' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'id'          => 'froday_middle_header_search_size',
        'label'       => esc_html__( 'Font Size', 'froday' ),
        'desc'        => esc_html__( 'Set font size for search box.', 'froday' ),
        'std'         => '12',
        'type'        => 'numeric-slider',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '1,100,1',
        'class'       => '',
		'condition'   => 'froday_middle_header_search:is(on)',
        'operator'    => 'and'
      ),
	  
	  array(
        'id'          => 'froday_middle_header_cart',
        'label'       => esc_html__( 'On/Off Cart', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Cart on Middle Header','froday' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  
	  array(
		'label'       => esc_html__( 'Bottom Header', 'froday' ),
		'id'          => 'tab_bottom_header',
		'type'        => 'tab',
		'section'     => 'header_settings'
	  ),

	  array(
        'id'          => 'froday_bottom_header_bg',
        'label'       => esc_html__('Background','froday'),
        'desc'        => esc_html__('Set background color.','froday'),
        'std'         => '#314555',
        'type'        => 'colorpicker',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

	  array(
        'id'          => 'froday_bottom_header_color',
        'label'       => esc_html__('Font Color','froday'),
        'desc'        => esc_html__('Set font color.','froday'),
        'std'         => '#fff',
        'type'        => 'colorpicker',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

      array(
        'id'          => 'froday_bottom_header_font_size',
        'label'       => esc_html__( 'Font Size', 'froday' ),
        'desc'        => esc_html__( 'Set menu font size.', 'froday' ),
        'std'         => '13',
        'type'        => 'numeric-slider',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '1,100,1',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

	  
	  array(
        'id'          => 'froday_bottom_header_button',
        'label'       => esc_html__( 'On/Off Button', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Bottom on Bottom Header','froday' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  
      array(
        'id'          => 'froday_bottom_header_button_text',
        'label'       => esc_html__('Button Text','froday'),
        'desc'        => esc_html__('Set a text for the button','froday'),
        'std'         => esc_html__('Get Quote','froday'),
        'type'        => 'text',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => '',
		'condition'   => 'froday_bottom_header_button:is(on)'
      ),
	  
      array(
        'id'          => 'froday_bottom_header_button_url',
        'label'       => esc_html__('Button URL','froday'),
        'desc'        => esc_html__('Set a url for the button','froday'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => '',
		'condition'   => 'froday_bottom_header_button:is(on)'
      ),
	  
	  array(
        'id'          => 'froday_coupon_subscribe_title',
        'label'       => esc_html__('Subscribe Title','froday'),
        'desc'        => esc_html__('Add subscribe title. The settings will be applied in archive(category) page.','froday'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'coupon_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),
	  
	  array(
        'id'          => 'froday_coupon_subscribe_subtitle',
        'label'       => esc_html__('Subscribe Subtitle','froday'),
        'desc'        => esc_html__('Add subscribe subtitle. The settings will be applied in archive(category) page.','froday'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'coupon_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),
	  
	  array(
        'id'          => 'froday_coupon_subscribe_form_id',
        'label'       => esc_html__('Subscribe Form Id','froday'),
        'desc'        => esc_html__('You can find the form id in Dashboard > Mailchimp For Wp > Form. The settings will be applied in archive(category) page.','froday'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'coupon_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),
	  
	  array(
		'label'       => esc_html__( 'Layouts', 'froday' ),
		'id'          => 'tab_shop_layouts',
		'type'        => 'tab',
		'section'     => 'shop_settings'
	  ),
	  
      array(
        'id'          => 'woocommerce_shop_layout',
        'label'       => esc_html__( 'Shop Layout', 'froday' ),
        'desc'        => esc_html__( ' Left Sidebar - Right Sidebar - Full Width', 'froday' ),
        'std'         => 'full-width',
        'type'        => 'radio-image',
        'section'     => 'shop_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

	  array(
        'id'          => 'froday_shop_single_share',
        'label'       => esc_html__( 'On/Off Social Share', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Social Share buttons which are in product detail page.','froday' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'shop_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

	  array(
		'label'       => esc_html__( 'Category Background', 'froday' ),
		'id'          => 'tab_category_background',
		'type'        => 'tab',
		'section'     => 'shop_settings'
	  ),

      array(
        'id'          => 'froday_cat_list_item',
        'label'       => esc_html__( 'Category Items', 'froday' ),
        'desc'        => esc_html__( 'You can set background image or color for each shop category.', 'froday' ),
        'std'         => '',
        'type'        => 'list-item',
        'section'     => 'shop_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'settings'    => array( 
			  array(
				'id'          => 'froday_category_select',
				'label'       => esc_html__( 'Select Category', 'froday' ),
				'desc'        => esc_html__( 'Select a category from the list.', 'froday' ),
				'std'         => '',
				'type'        => 'taxonomy-select',
				'section'     => 'shop_settings',
				'rows'        => '',
				'post_type'   => '',
				'taxonomy'    => 'product_cat',
				'min_max_step'=> '',
				'class'       => '',
				'condition'   => '',
				'operator'    => 'and'
			  ),
			  
			  array(
				'id'          => 'froday_category_bg',
				'label'       => esc_html__( 'Background', 'froday' ),
				'desc'        => esc_html__( 'Set a background image.', 'froday' ),
				'std'         => '',
				'type'        => 'background',
				'section'     => 'shop_settings',
				'rows'        => '',
				'post_type'   => '',
				'taxonomy'    => '',
				'min_max_step'=> '',
				'class'       => '',
				'condition'   => '',
				'operator'    => 'and'
			  ),
        )
      ),

	  array(
		'label'       => esc_html__( 'Translation', 'froday' ),
		'id'          => 'tab_translation',
		'type'        => 'tab',
		'section'     => 'shop_settings'
	  ),

	  array(
        'id'          => 'froday_translate_enable_countdown',
        'label'       => esc_html__( 'On/Off Translation', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Translation for countdown','froday' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'shop_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

	  array(
		'id'          => 'froday_translate_week_countdown',
		'label'       => esc_html__('Translate Week','froday' ),
		'desc'        => esc_html__('Translate the text: Week.','froday' ),
		'std'         => esc_html__('Week','froday'),
		'type'        => 'text',
		'section'     => 'shop_settings',
		'rows'        => '',
		'post_type'   => '',
		'taxonomy'    => '',
		'class'       => '',
		'condition'   => 'froday_translate_enable_countdown:is(on)',
	  ),

	  array(
		'id'          => 'froday_translate_weeks_plural_countdown',
		'label'       => esc_html__('Translate Weeks','froday' ),
		'desc'        => esc_html__('Translate the text: Weeks.','froday' ),
		'std'         => esc_html__('Weeks','froday'),
		'type'        => 'text',
		'section'     => 'shop_settings',
		'rows'        => '',
		'post_type'   => '',
		'taxonomy'    => '',
		'class'       => '',
		'condition'   => 'froday_translate_enable_countdown:is(on)',
	  ),

	  array(
		'id'          => 'froday_translate_day_countdown',
		'label'       => esc_html__('Translate Day','froday' ),
		'desc'        => esc_html__('Translate the text: Day.','froday' ),
		'std'         => esc_html__('Day','froday'),
		'type'        => 'text',
		'section'     => 'shop_settings',
		'rows'        => '',
		'post_type'   => '',
		'taxonomy'    => '',
		'class'       => '',
		'condition'   => 'froday_translate_enable_countdown:is(on)',
	  ),

	  array(
		'id'          => 'froday_translate_days_plural_countdown',
		'label'       => esc_html__('Translate Days','froday' ),
		'desc'        => esc_html__('Translate the text: Days.','froday' ),
		'std'         => esc_html__('Days','froday'),
		'type'        => 'text',
		'section'     => 'shop_settings',
		'rows'        => '',
		'post_type'   => '',
		'taxonomy'    => '',
		'class'       => '',
		'condition'   => 'froday_translate_enable_countdown:is(on)',
	  ),

	  array(
		'id'          => 'froday_translate_expired_countdown',
		'label'       => esc_html__('Translate Expired','froday' ),
		'desc'        => esc_html__('Translate the text: This offer has expired!.','froday' ),
		'std'         => esc_html__('This offer has expired!','froday'),
		'type'        => 'text',
		'section'     => 'shop_settings',
		'rows'        => '',
		'post_type'   => '',
		'taxonomy'    => '',
		'class'       => '',
		'condition'   => 'froday_translate_enable_countdown:is(on)',
	  ),

	  array(
		'label'       => esc_html__( 'Taxonomy', 'froday' ),
		'id'          => 'tab_shop_taxonomy',
		'type'        => 'tab',
		'section'     => 'shop_settings'
	  ),
		
	  array(
		'id'          => 'froday_store_taxonomy',
		'label'       => esc_html__('Store Taxonomy Slug','froday' ),
		'desc'        => esc_html__('Change taxonomy slug.When you save the changes you need to Dashboard > Settings > Permalinks and Click Save Changes button.','froday' ),
		'std'         => esc_html__('','froday'),
		'type'        => 'text',
		'section'     => 'shop_settings',
		'rows'        => '',
		'post_type'   => '',
		'taxonomy'    => '',
		'class'       => '',
	  ),

	  array(
        'id'          => 'froday_main_color',
        'label'       => esc_html__('Color','froday'),
        'desc'        => esc_html__('Set a color for the theme','froday'),
        'std'         => '#2ed87b',
        'type'        => 'colorpicker',
        'section'     => 'color_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),
	  
	  array(
        'id'          => 'froday_main_color_hover',
        'label'       => esc_html__('Hover Color','froday'),
        'desc'        => esc_html__('Set a color for the hover color','froday'),
        'std'         => '#25c76f',
        'type'        => 'colorpicker',
        'section'     => 'color_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

	  array(
		'label'       => esc_html__( 'Layouts', 'froday' ),
		'id'          => 'tab_layouts',
		'type'        => 'tab',
		'section'     => 'blog_settings'
	  ),
	  
      array(
        'id'          => 'layout_set',
        'label'       => esc_html__( 'Blog Layout', 'froday' ),
        'desc'        => esc_html__( ' Left Sidebar - Right Sidebar - Full Width', 'froday' ),
        'std'         => 'right-sidebar',
        'type'        => 'radio-image',
        'section'     => 'blog_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),	  

	  array(
		'label'       => esc_html__( 'Related Posts', 'froday' ),
		'id'          => 'tab_related_posts',
		'type'        => 'tab',
		'section'     => 'blog_settings'
	  ),
	  
	  array(
        'id'          => 'froday_related_posts',
        'label'       => esc_html__( 'On/Off Related Posts', 'froday' ),
        'desc'        => esc_html__('Disable or Enable Related Posts in Detail Page','froday' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'blog_settings',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  
	  
	 array(
	    'id'          => 'body_google_fonts',
	    'label'       => esc_html__('Google Fonts','froday' ),
	    'desc'        => esc_html__('Add Google Font and after the save settings follow these steps Dashboard > Appearance > Theme Options > Typography','froday' ),
	    'std'         => '',
	    'type'        => 'google-fonts',
	    'section'     => 'google_fonts',
	    'rows'        => '',
	    'post_type'   => '',
	    'taxonomy'    => '',
	    'min_max_step'=> '',
	    'class'       => '',
	    'condition'   => '',
	    'operator'    => 'and'
	),

      array(
        'label'       => esc_html__( 'General', 'froday' ),
        'id'          => 'tab_general',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'tipigrof',
        'label'       => esc_html__( 'Body Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.', 'froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'H1 Title', 'froday' ),
        'id'          => 'tab_h1title',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'h1_tipigrof',
        'label'       => esc_html__( 'H1 Title Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.', 'froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'H2 Title', 'froday' ),
        'id'          => 'tab_h2title',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'h2_tipigrof',
        'label'       => esc_html__( 'H2 Title Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.', 'froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'H3 Title', 'froday' ),
        'id'          => 'tab_h3title',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'h3_tipigrof',
        'label'       => esc_html__( 'H3 Title Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.', 'froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'H4 Title', 'froday' ),
        'id'          => 'tab_h4title',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'h4_tipigrof',
        'label'       => esc_html__( 'H4 Title Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.', 'froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'H5 Title', 'froday' ),
        'id'          => 'tab_h5title',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'h5_tipigrof',
        'label'       => esc_html__( 'H5 Title Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.', 'froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'H6 Title', 'froday' ),
        'id'          => 'tab_h6title',
        'type'        => 'tab',
        'section'     => 'typography'
      ),


      array(
        'id'          => 'h6_tipigrof',
        'label'       => esc_html__( 'H6 Title Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.','froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),

      array(
        'label'       => esc_html__( 'P(Content)', 'froday' ),
        'id'          => 'tab_pcontent',
        'type'        => 'tab',
        'section'     => 'typography'
      ),

      array(
        'id'          => 'p_tipigrof',
        'label'       => esc_html__( 'P(Content) Typography', 'froday' ),
        'desc'        => esc_html__('The Typography option type is for adding typography styles to your site.','froday' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	
	  array(
			'id'          => 'froday_mapapi',
			'label'       => esc_html__('Google Map Api Key','froday' ),
			'desc'        => esc_html__('Add your google map api key','froday' ),
			'std'         => '',
			'type'        => 'text',
			'section'     => 'map_settings',
			'rows'        => '',
			'post_type'   => '',
			'taxonomy'    => '',
			'class'       => ''
	  ),	

      array(
        'label'       => esc_html__( 'General', 'froday' ),
        'id'          => 'tab__footer_general',
        'type'        => 'tab',
        'section'     => 'copyright'
      ),
	  
      array(
        'id'          => 'froday_copyright',
        'label'       => esc_html__('Footer Copyright','froday'),
        'desc'        => esc_html__('Footer Copyright','froday'),
        'std'         => esc_html__('Copyright 2020.KlbTheme . All rights reserved','froday'),
        'type'        => 'text',
        'section'     => 'copyright',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

      array(
        'label'       => esc_html__( 'Payment Image', 'froday' ),
        'id'          => 'payment_imagefoter',
        'type'        => 'tab',
        'section'     => 'copyright'
      ),

      array(
        'id'          => 'froday_footer_images',
        'label'       => esc_html__('Set Images','froday'),
        'desc'        => esc_html__('Create Payment Images','froday'),
        'std'         => '',
        'type'        => 'list-item',
        'section'     => 'copyright',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => '',
        'settings'    => array(

          array(
            'id'          => 'froday_footer_payment_image',
            'label'       => esc_html__('Image','froday'),
            'desc'        => esc_html__('Upload an image','froday'),
            'std'         => '',
            'type'        => 'upload',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'class'       => ''
          )
        )
      ),

      array(
        'label'       => esc_html__( 'Colors', 'froday' ),
        'id'          => 'footer_color',
        'type'        => 'tab',
        'section'     => 'copyright'
      ),

      array(
        'id'          => 'froday_footer_top_bg_color',
        'label'       => esc_html__('Footer Top Background','froday'),
        'desc'        => esc_html__('Footer Bottom Background Color','froday'),
        'std'         => '#314555',
        'type'        => 'colorpicker',
        'section'     => 'copyright',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

      array(
        'id'          => 'froday_footer_top_font_color',
        'label'       => esc_html__('Footer Top Font Color','froday'),
        'desc'        => esc_html__('Footer Bottom Font Color','froday'),
        'std'         => '#d4d4d4',
        'type'        => 'colorpicker',
        'section'     => 'copyright',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),


      array(
        'id'          => 'froday_footer_bg_color',
        'label'       => esc_html__('Footer Background','froday'),
        'desc'        => esc_html__('Footer Bottom Background Color','froday'),
        'std'         => '#1e2b35',
        'type'        => 'colorpicker',
        'section'     => 'copyright',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

      array(
        'id'          => 'froday_footer_font_color',
        'label'       => esc_html__('Footer Font Color','froday'),
        'desc'        => esc_html__('Footer Bottom Font Color','froday'),
        'std'         => '#647d89',
        'type'        => 'colorpicker',
        'section'     => 'copyright',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'class'       => ''
      ),

	
    )
  );
  
  /* allow settings to be filtered before saving */
  $custom_settings = apply_filters( 'option_tree_settings_args', $custom_settings );
  
  /* settings are not the same update the DB */
  if ( $saved_settings !== $custom_settings ) {
    update_option( 'option_tree_settings', $custom_settings ); 
  }
  
}