
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/**
 * Initialize the custom theme options.
 */
add_action( 'init', 'custom_theme_options' );

/**
 * Build the custom settings & update OptionTree.
 */
function custom_theme_options() {
  
  /* OptionTree is not loaded yet, or this is not an admin request */
  if ( ! function_exists( 'ot_settings_id' ) || ! is_admin() )
    return false;
    
  /**
   * Get a copy of the saved settings array. 
   */
  $saved_settings = get_option( ot_settings_id(), 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 Options', 'upscale' )
      ),
      array(
        'id'          => 'header_options',
        'title'       => esc_html__( 'Header Options', 'upscale' )
      ),
	  array(
        'id'          => 'navigation_options',
        'title'       => esc_html__( 'Menu Options', 'upscale' )
      ),
      array(
        'id'          => 'color_options',
        'title'       => esc_html__( 'Content Visuals', 'upscale' )
      ),
      array(
        'id'          => 'typography',
        'title'       => esc_html__( 'Typography', 'upscale' )
      ),
      array(
        'id'          => 'footer_options',
        'title'       => esc_html__( 'Footer', 'upscale' )
      ),
      array(
        'id'          => 'articles_section',
        'title'       => esc_html__( 'Single Post', 'upscale' )
      ),
      array(
        'id'          => 'blog_section',
        'title'       => esc_html__( 'Blog  Options', 'upscale' )
      ),
      array(
        'id'          => 'category_style_tab',
        'title'       => esc_html__( 'Categories', 'upscale' )
      ),
      array(
        'id'          => 'woocommerce',
        'title'       => esc_html__( 'WooCommerce', 'upscale' )
      ),
      array(
        'id'          => 'custom_css',
        'title'       => esc_html__( 'Custom CSS', 'upscale' )
      )
    ),
    'settings'        => array( 
      array(
        'id'          => 'accent_color',
        'label'       => esc_html__( 'Theme accent color', 'upscale' ),
        'desc'        => esc_html__( 'This will be general color scheme for your website. Click input field for color picker.', 'upscale' ),
        'std'         => '#db2531',
        'type'        => 'colorpicker_opacity',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'secondary_accent_color',
        'label'       => esc_html__( 'Theme secondary accent color', 'upscale' ),
        'desc'        => esc_html__( 'This will be secondary color for your website. Click input field for color picker.', 'upscale' ),
        'std'         => '#ec6f7a',
        'type'        => 'colorpicker_opacity',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'layout_style',
        'label'       => esc_html__( 'Layout style', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. Full width layout %1$s 2. Boxed layout', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => 'full-width',
        'type'        => 'radio-image',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'body_background',
        'label'       => esc_html__( 'Body background', 'upscale' ),
        'desc'        => esc_html__( 'Choose body background for boxed layout.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'layout_style:is(boxed)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'content_width',
        'label'       => esc_html__( 'Content width', 'upscale' ),
        'desc'        => esc_html__( 'This setting will apply selected layout width in pixels to your website.', 'upscale' ),
        'std'         => '1200',
        'type'        => 'text',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sticky_sidebar',
        'label'       => esc_html__( 'Sticky sidebar', 'upscale' ),
        'desc'        => esc_html__( 'If enabled, sidebar will always be visible while you scroll.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'scroll_to_top_button',
        'label'       => esc_html__( 'Scroll to top button', 'upscale' ),
        'desc'        => esc_html__( 'Enable or disable "To Top" button when you scroll down.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'srcset_for_images',
        'label'       => esc_html__( 'Enable srcset attribute for images', 'upscale' ),
        'desc'        => esc_html__( 'This will enable srcset for images and create two more image sizes. Read more in theme documentation.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'general',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'default_header_tab',
        'label'       => esc_html__( 'General', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'header_height',
        'label'       => esc_html__( 'Header height', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Set header height. Please add size units, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>70px</code>'),
        'std'         => '100px',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sticky_header',
        'label'       => esc_html__( 'Sticky header', 'upscale' ),
        'desc'        => esc_html__( 'Do you want a header to stick to top while you scroll?', 'upscale' ),
        'std'         => 'sticky_header_smart',
        'type'        => 'radio',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => 'sticky_header_smart',
            'label'       => esc_html__( 'Smart header (sticky only when scrolling up)', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'sticky_header',
            'label'       => esc_html__( 'Always sticky header', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'no_sticky',
            'label'       => esc_html__( 'Disable sticky header', 'upscale' ),
            'src'         => ''
          )
        )
      ),
      array(
        'id'          => 'header_style',
        'label'       => esc_html__( 'Header layout', 'upscale' ),
		'desc'        => '',
        'std'         => 'default',
        'type'        => 'radio-image',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ), 
      array(
        'id'          => 'header_width',
        'label'       => esc_html__( 'Full width header', 'upscale' ),
        'desc'        => esc_html__( 'If not active, header will be the same width as your chosen content width.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),	  
	  array(
        'id'          => 'menu_align',
        'label'       => esc_html__( 'Primary menu align', 'upscale' ),
		'desc'        => '',
        'std'         => 'left',
        'type'        => 'select',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'header_style:is(default)',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => 'left',
            'label'       => esc_html__( 'Left', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'right',
            'label'       => esc_html__( 'Right', 'upscale' ),
            'src'         => ''
          )
        )
      ),
      array(
        'id'          => 'header_bg',
        'label'       => esc_html__( 'Header background color', 'upscale' ),
        'desc'        => esc_html__( 'Choose your site header color.', 'upscale' ),
        'std'         => '#ffffff',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'header_border',
        'label'       => esc_html__( 'Header shadow line', 'upscale' ),
        'desc'        => esc_html__( 'Adds bottom shadow line to the default header.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'search_button',
        'label'       => esc_html__( 'Search button in menu', 'upscale' ),
        'desc'        => esc_html__( 'Enables or disables search from menu.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'cart_button',
        'label'       => esc_html__( 'WooCommerce cart button in menu', 'upscale' ),
        'desc'        => esc_html__( 'Do you want a smart WooCommerce cart icon in main menu?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'logo_tab',
        'label'       => esc_html__( 'Logo', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'logo',
        'label'       => esc_html__( 'Logo', 'upscale' ),
        'desc'        => esc_html__( 'Please choose an image file for your logo.', 'upscale' ),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'logo_retina',
        'label'       => esc_html__( 'Logo (Retina version @2x)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Retina logo should be %s the size of default logo keeping the aspect ratio!', '%s stands for the value. Do not delete it.' ,'upscale' ), '<code>2x</code>'),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'retina_logo_width',
        'label'       => esc_html__( 'Standard logo width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Please enter the STANDARD (1x) logo width. %1$s Remember to add %2$s value in the end. Example: %3$s', '%1$s stands for line break, %2$s and %3$s stand for example value.' ,'upscale' ), '<br/>', '<code>px</code>', '<code>100px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'retina_logo_height',
        'label'       => esc_html__( 'Standard logo height', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Please enter the STANDARD (1x) logo height. %1$s Remember to add %2$s value in the end. Example: %3$s', '%1$s stands for line break, %2$s and %3$s stand for example value.' ,'upscale' ), '<br/>', '<code>px</code>', '<code>100px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'logo_top',
        'label'       => esc_html__( 'Margin top', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Move your logo vertically with this option. Remember to add %1$s value after the number. For example: %2$s', '%1$s and %2$s stand for example value. Do not delete it.' ,'upscale' ), '<code>px</code>', '<code>25px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_header_tab',
        'label'       => esc_html__( 'Overlay Header', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_header_height',
        'label'       => esc_html__( 'Overlay header height', 'upscale' ),
		'desc'        => sprintf (esc_html_x('Set header height. Please add size units, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>70px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'detached_overlay_header',
        'label'       => esc_html__( 'Detached header?', 'upscale' ),
        'desc'        => esc_html__( 'Detaches header from top and applies boxed style to it.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'detached_overlay_header_background',
        'label'       => esc_html__( 'Deteached overlay header background color', 'upscale' ),
        'desc'        => esc_html__( 'White by default.', 'upscale' ),
        'std'         => '#ffffff',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'detached_overlay_header:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_header_bg',
        'label'       => esc_html__( 'Overlay header background color', 'upscale' ),
        'desc'        => esc_html__( 'Transparent by default.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'detached_overlay_header:not(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_sticky_menu_bg',
        'label'       => esc_html__( 'Sticky menu background color', 'upscale' ),
        'desc'        => esc_html__( 'Sticky menu background should contrast menu link color.', 'upscale' ),
        'std'         => '#ffffff',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'detached_overlay_header:not(on)',
        'operator'    => 'and'
      ), 
	  array(
        'id'          => 'overlay_logo',
        'label'       => esc_html__( 'Overlay header logo', 'upscale' ),
        'desc'        => esc_html__( 'Please choose an image file for your logo.', 'upscale' ),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'overlay_logo_retina',
        'label'       => esc_html__( 'Overlay header logo (Retina version @2x)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Retina logo should be %s the size of default logo keeping the aspect ratio!', '%s stands for the value. Do not delete it.' ,'upscale' ), '<code>2x</code>'),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_retina_logo_width',
        'label'       => esc_html__( 'Overlay header logo width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Please enter the STANDARD (1x) overlay logo width. %1$s Remember to add %2$s value in the end. Example: %3$s', '%1$s stands for line break, %2$s and %3$s stand for example value.' ,'upscale' ), '<br/>', '<code>px</code>', '<code>100px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'overlay_retina_logo_height',
        'label'       => esc_html__( 'Overlay header logo height', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Please enter the STANDARD (1x) overlay logo height. %1$s Remember to add %2$s value in the end. Example: %3$s', '%1$s stands for line break, %2$s and %3$s stand for example value.' ,'upscale' ), '<br/>', '<code>px</code>', '<code>100px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_logo_top',
        'label'       => esc_html__( 'Overlay header logo margin top', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Move your logo vertically with this option. Remember to add %1$s value after the number. For example: %2$s', '%1$s and %2$s stand for example value. Do not delete it.' ,'upscale' ), '<code>px</code>', '<code>25px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'top_bar_tab',
        'label'       => esc_html__( 'Top Bar', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'top_bar',
        'label'       => esc_html__( 'Top bar', 'upscale' ),
        'desc'        => esc_html__( 'Top bar appears above the header. If activated, new widget areas appear in Appearance/Widgets - "Top Bar Sidebar Left" and "Top Bar Sidebar Right".', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'top_bar_bg',
        'label'       => esc_html__( 'Background color', 'upscale' ),
        'desc'        => esc_html__( 'Click input field for color picker or enter your custom value.', 'upscale' ),
        'std'         => '#f8f7f6',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'top_bar:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'top_bar_text_color',
        'label'       => esc_html__( 'Text and link color', 'upscale' ),
        'desc'        => esc_html__( 'Click input field for color picker or enter your custom value.', 'upscale' ),
        'std'         => '#222222',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'top_bar:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'top_bar_link_hover',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Click input field for color picker or enter your custom value.', 'upscale' ),
        'std'         => '#222222',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'top_bar:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_header_tab',
        'label'       => esc_html__( 'Mobile Header', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_menu_background',
        'label'       => esc_html__( 'Mobile menu background color', 'upscale' ),
        'desc'        => esc_html__( 'Choose background color for mobile menu.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_menu_toggle_color',
        'label'       => esc_html__( 'Mobile menu toggle color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for mobile menu toggle icon.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_logo',
        'label'       => esc_html__( 'Mobile logo', 'upscale' ),
        'desc'        => esc_html__( 'Please choose an image file for your logo.', 'upscale' ),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_logo_retina',
        'label'       => esc_html__( 'Mobile Logo (Retina version @2x)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Retina logo should be %s the size of default logo keeping the aspect ratio!', '%s stands for the value. Do not delete it.' ,'upscale' ), '<code>2x</code>'),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_retina_logo_width',
        'label'       => esc_html__( 'Mobile logo width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Please enter the STANDARD (1x) logo width. %1$s Remember to add %2$s value in the end. Example: %3$s', '%1$s stands for line break, %2$s and %3$s stand for example value.' ,'upscale' ), '<br/>', '<code>px</code>', '<code>100px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mobile_retina_logo_height',
        'label'       => esc_html__( 'Mobile logo height', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Please enter the STANDARD (1x) logo height. %1$s Remember to add %2$s value in the end. Example: %3$s', '%1$s stands for line break, %2$s and %3$s stand for example value.' ,'upscale' ), '<br/>', '<code>px</code>', '<code>100px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'header_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),	
      array(
        'id'          => 'navigation_tab',
        'label'       => esc_html__( 'Header Menu', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
		'condition'   => '',
        'operator'    => 'and'
      ),	  
      array(
        'id'          => 'default_menu_link',
        'label'       => esc_html__( 'Menu link color', 'upscale' ),
        'desc'        => esc_html__( 'Click input field for color picker or enter your custom value.', 'upscale' ),
        'std'         => '#bcbebf',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'default_menu_link_h',
        'label'       => esc_html__( 'Menu link hover & active color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty to use "Theme accent color".', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'show_submenu_styles',
        'label'       => esc_html__( 'Show submenu options?', 'upscale' ),
        'desc'        => esc_html__( 'Enable submenu styling.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'submenu_section_info',
        'label'       => esc_html__( 'Submenu section info', 'upscale' ),
        'desc'        => esc_html__( '<div class="section-title">Submenu options</div>', 'upscale' ),
        'std'         => '',
        'type'        => 'textblock',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'submenu_background',
        'label'       => esc_html__( 'Submenu background color', 'upscale' ),
        'desc'        => esc_html__( 'Color background color for submenu.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'submenu_link_color',
        'label'       => esc_html__( 'Submenu link color', 'upscale' ),
        'desc'        => esc_html__( 'Color for links in submenu.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'submenu_link_bg_color',
        'label'       => esc_html__( 'Submenu link hover & active background color', 'upscale' ),
        'desc'        => esc_html__( 'Background color for submenu link hover.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'megamenu_section_info',
        'label'       => esc_html__( 'Megamenu section info', 'upscale' ),
		'desc'        => '<div class="section-title">'. esc_html__( 'Mega-menu options', 'upscale' ) .'</div>',
        'std'         => '',
        'type'        => 'textblock',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'megamenu_bg',
        'label'       => esc_html__( 'Background', 'upscale' ),
        'desc'        => esc_html__( 'You can either use color or upload a background image. Leave blank for default setting.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'megamenu_title_color',
        'label'       => esc_html__( 'Megamenu title color', 'upscale' ),
        'desc'        => esc_html__( 'Color for column title inside megamenu.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'megamenu_active_item_color',
        'label'       => esc_html__( 'Megamenu active item color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty to use "Theme accent color".', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'megamenu_separator_color',
        'label'       => esc_html__( 'Megamenu column separator color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty for default color.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'show_submenu_styles:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_menu_navigation_tab',
        'label'       => esc_html__( 'Overlay Header Menu', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
		'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_menu_link',
        'label'       => esc_html__( 'Overlay header menu link color', 'upscale' ),
        'desc'        => esc_html__( 'Click input field for color picker or enter your custom value.', 'upscale' ),
        'std'         => '#444444',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'overlay_menu_link_h',
        'label'       => esc_html__( 'Overlay header menu link hover & active color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty to use "Theme accent color".', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),     
	  array(
        'id'          => 'side_navigation_tab',
        'label'       => esc_html__( 'Side Menu', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
		'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'side_navigation_bg',
        'label'       => esc_html__( 'Background', 'upscale' ),
        'desc'        => esc_html__( 'You can either use color or upload a background image. Leave blank for default setting.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'side_navigation_border',
        'label'       => esc_html__( 'Border color', 'upscale' ),
        'desc'        => esc_html__( 'Choose side border color for side navigation.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'side_navigation_link',
        'label'       => esc_html__( 'Link and text color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for side navigation links and text.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'side_navigation_link_hover',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Choose hover color for side navigation links.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),	  
	  array(
        'id'          => 'overlay_navigation_tab',
        'label'       => esc_html__( 'Fullscreen Overlay Menu', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
		'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_navigation_bg',
        'label'       => esc_html__( 'Background', 'upscale' ),
        'desc'        => esc_html__( 'You can either use color or upload a background image. Leave blank for default setting.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_navigation_link',
        'label'       => esc_html__( 'Link and text color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for overlay navigation links and text.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_navigation_link_hover',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Choose hover color for overlay navigation links.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'navigation_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),	  
      array(
        'id'          => 'global_color_section',
        'label'       => esc_html__( 'Global', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'body_text_color',
        'label'       => esc_html__( 'Body text color', 'upscale' ),
        'desc'        => esc_html__( 'General color for all body content.', 'upscale' ),
        'std'         => '#666677',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'headings_color',
        'label'       => esc_html__( 'Headings (H1, H2, H3, H4, H5, H6)', 'upscale' ),
        'desc'        => esc_html__( 'Color for heading tags. Applies for all heading elements, if different color is not specified in element styling.', 'upscale' ),
        'std'         => '#222',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'link_color',
        'label'       => esc_html__( 'Link color', 'upscale' ),
        'desc'        => esc_html__( 'Global link color.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'link_hover_color',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Global link hover color.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'theme_button_color',
        'label'       => esc_html__( 'Theme button color', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Choose color for general theme buttons. %1$s Leave empty for "Theme accent Color"', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'theme_button_hover_color',
        'label'       => esc_html__( 'Theme button hover color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for theme buttons in hover state.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'button_text_color',
        'label'       => esc_html__( 'Button Text Color', 'upscale' ),
        'desc'        => esc_html__( 'Text color inside theme buttons.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_heading_tab',
        'label'       => esc_html__( 'Page Heading', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_paddings',
        'label'       => esc_html__( 'Title area paddings', 'upscale' ),
		'desc'        => sprintf (esc_html_x('Set custom paddings for title area. Use shorthand format and add size units, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>40px 30px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_breadcrumbs_position',
        'label'       => esc_html__( 'Breadcrumbs position', 'upscale' ),
        'desc'        => esc_html__( 'Choose display type for breadcrumbs. If your titles tend to be long, it is better to use stacked layout.', 'upscale' ),
        'std'         => '',
        'type'        => 'select',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => '',
            'label'       => esc_html__( 'Inline', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'excerpt',
            'label'       => esc_html__( 'Stacked', 'upscale' ),
            'src'         => ''
          )
        )
      ),
	  array(
        'id'          => 'page_title_text_color',
        'label'       => esc_html__( 'Title color', 'upscale' ),
        'desc'        => esc_html__( 'Choose text color for page title.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_background_color',
        'label'       => esc_html__( 'Background color', 'upscale' ),
        'desc'        => esc_html__( 'Choose background color for page title area.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_background_gradient',
        'label'       => esc_html__( 'Enable gradient background', 'upscale' ),
        'desc'        => esc_html__( 'Enables left to right gradient background for page title area.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_background_gradient_start',
        'label'       => esc_html__( 'Gradient start color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color at gradient start.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'page_title_background_gradient:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_background_gradient_end',
        'label'       => esc_html__( 'Gradient end color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color at gradient end.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'page_title_background_gradient:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_background_image_switch',
        'label'       => esc_html__( 'Enable background image', 'upscale' ),
        'desc'        => esc_html__( 'Enables background image for title area.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'page_title_background_image',
        'label'       => esc_html__( 'Title area background image', 'upscale' ),
        'desc'        => esc_html__( 'Choose background image for the title area.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'page_title_background_image_switch:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sidebar_tab',
        'label'       => esc_html__( 'Sidebar', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sidebar_text_color',
        'label'       => esc_html__( 'Text color', 'upscale' ),
        'desc'        => esc_html__( 'Choose text color for sidebar widget content.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sidebar_link_color',
        'label'       => esc_html__( 'Link color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for links in sidebar.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sidebar_link_hover_color',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty to use "Theme accent color".', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sidebar_title_color',
        'label'       => esc_html__( 'Widget title color', 'upscale' ),
        'desc'        => esc_html__( 'Color for widget titles in sidebar.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'sidebar_title_border_color',
        'label'       => esc_html__( 'Title border color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for sidebar title bottom border.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sidebar_divider_color',
        'label'       => esc_html__( 'Widget divider color', 'upscale' ),
        'desc'        => esc_html__( 'Choose border line color separating list items in sidebar.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'color_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'custom_fonts_tab',
        'label'       => esc_html__( 'Custom fonts', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'add_google_fonts',
        'label'       => esc_html__( 'Add Google fonts', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. Click "Add Google Font". %1$s 2. Choose your font and options. %1$s 3. Save the options. %1$s 4. Assign your new font to elements below.', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => '',
        'type'        => 'google-fonts',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'body_font',
        'label'       => esc_html__( 'Body font', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'menu_font',
        'label'       => esc_html__( 'Menu font', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'overlay_side_menu_font',
        'label'       => esc_html__( 'Overlay or side menu font', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'heading_font',
        'label'       => esc_html__( 'Heading font', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'single_post_font',
        'label'       => esc_html__( 'Single post font', 'upscale' ),
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'widget_font',
        'label'       => esc_html__( 'Widget title font', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'typography',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'font_size_tab',
        'label'       => esc_html__( 'Font sizes', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'body_size',
        'label'       => esc_html__( 'Body', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'General body font size. %1$s Remember to add %2$s px %3$s value after the number. For example: %2$s 16px %3$s', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '14px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'single_post_text_font_size',
        'label'       => esc_html__( 'Single post', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Single post content font size. %1$s Remember to add %2$s px %3$s value after the number. For example: %2$s 16px %3$s', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '14px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'menu_font_size',
        'label'       => esc_html__( 'Menu in header bar', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'General menu font size. %1$s Remember to add %2$s px %3$s value after the number. For example: %2$s 13px %3$s', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '13px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'side_overlay_menu_font_size',
        'label'       => esc_html__( 'Overlay or side menu (optional)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Choose size for overlay or side menu, depending on what you use. %1$s Remember to add %2$s px %3$s value after the number. For example: %2$s 13px %3$s', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'sub_menu_font_size',
        'label'       => esc_html__( 'Sub menu', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Submenu link font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '11px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'h1',
        'label'       => esc_html__( 'H1', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Heading 1 tag font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '30px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'h2',
        'label'       => esc_html__( 'H2', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Heading 2 tag font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '24px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'h3',
        'label'       => esc_html__( 'H3', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Heading 3 tag font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '20px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'h4',
        'label'       => esc_html__( 'H4', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Heading 4 tag font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '18px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'h5',
        'label'       => esc_html__( 'H5', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Heading 5 tag font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '16px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'h6',
        'label'       => esc_html__( 'H6', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Heading 6 tag font size. %1$s Remember to add %2$s px %3$s value after the number.', '%1$s stands for line break, %2$s and %3$s stand for <code> tags' ,'upscale' ), '<br/>', '<code>', '</code>'),
        'std'         => '14px',
        'type'        => 'text',
        'section'     => 'typography',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_tab',
        'label'       => esc_html__( 'Footer', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_columns',
        'label'       => esc_html__( 'Column count', 'upscale' ),
        'desc'        => esc_html__( 'Choose column count for your footer.', 'upscale' ),
        'std'         => 'vc_col-sm-3',
        'type'        => 'select',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => 'vc_col-sm-12',
            'label'       => esc_html__( '1', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'vc_col-sm-6',
            'label'       => esc_html__( '2', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'vc_col-sm-4',
            'label'       => esc_html__( '3', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'vc_col-sm-3',
            'label'       => esc_html__( '4', 'upscale' ),
            'src'         => ''
          )
        )
      ),
      array(
        'id'          => 'footer_column_1_width',
        'label'       => esc_html__( 'Footer column 1 width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Enter custom width for first footer column. Please enter percentage, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>50%</code>'),
        'std'         => '20%',
        'type'        => 'text',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'footer_columns:not(vc_col-sm-12)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_column_2_width',
        'label'       => esc_html__( 'Footer column 2 width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Enter custom width for second footer column. Please enter percentage, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>50%</code>'),
        'std'         => '20%',
        'type'        => 'text',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'footer_columns:not(vc_col-sm-12)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_column_3_width',
        'label'       => esc_html__( 'Footer column 3 width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Enter custom width for third footer column. Please enter percentage, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>50%</code>'),
        'std'         => '20%',
        'type'        => 'text',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'footer_columns:not(vc_col-sm-12),footer_columns:not(vc_col-sm-6)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_column_4_width',
        'label'       => esc_html__( 'Footer column 4 width', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Enter custom width for fourth footer column. Please enter percentage, e.g., %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>50%</code>'),
        'std'         => '40%',
        'type'        => 'text',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'footer_columns:is(vc_col-sm-3)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_bg',
        'label'       => esc_html__( 'Background', 'upscale' ),
        'desc'        => esc_html__( 'You can either use color or upload a background image. Leave blank for default setting.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_text_color',
        'label'       => esc_html__( 'Text color', 'upscale' ),
        'desc'        => esc_html__( 'Choose text color for your footer widget content.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_link',
        'label'       => esc_html__( 'Link color', 'upscale' ),
        'desc'        => esc_html__( 'Will apply color to all links located in footer widgets.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_link_hover',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty to use "Theme accent color".', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'footer_widget_title',
        'label'       => esc_html__( 'Widget title color', 'upscale' ),
        'desc'        => esc_html__( 'Color for widget titles in footer.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'copyright_tab',
        'label'       => esc_html__( 'Copyright', 'upscale' ),
        'desc'        => '',
        'std'         => '',
        'type'        => 'tab',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	   array(
        'id'          => 'copyright_text_align',
        'label'       => esc_html__( 'Text align', 'upscale' ),
        'desc'        => esc_html__( 'Text align for widgets in copyright area.', 'upscale' ),
        'std'         => 'center',
        'type'        => 'select',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => 'left',
            'label'       => esc_html__( 'Left', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'center',
            'label'       => esc_html__( 'Center', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'right',
            'label'       => esc_html__( 'Right', 'upscale' ),
            'src'         => ''
          )
        )
      ),
      array(
        'id'          => 'copyright_bg',
        'label'       => esc_html__( 'Background', 'upscale' ),
        'desc'        => esc_html__( 'You can either use color or upload a background image. Leave blank for default setting.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'copyright_separator_color',
        'label'       => esc_html__( 'Separator color', 'upscale' ),
        'desc'        => esc_html__( 'Choose color for copyright area separator.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'copyright_text_color',
        'label'       => esc_html__( 'Text color', 'upscale' ),
        'desc'        => esc_html__( 'Choose text color for your copyright area widget content.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'copyright_link',
        'label'       => esc_html__( 'Link color', 'upscale' ),
        'desc'        => esc_html__( 'Color for links located in your copyright area widgets.', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'copyright_link_hover',
        'label'       => esc_html__( 'Link hover color', 'upscale' ),
        'desc'        => esc_html__( 'Leave empty to use "Theme accent color".', 'upscale' ),
        'std'         => '',
        'type'        => 'colorpicker_opacity',
        'section'     => 'footer_options',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_layout',
        'label'       => esc_html__( 'Default post layout', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. Full width content %1$s 2. Content / Right sidebar %1$s 3. Content / Left sidebar', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => 'single-right-sidebar.php',
        'type'        => 'radio-image',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'mnky_post_width',
        'label'       => esc_html__( 'Set different width for paragraphs', 'upscale' ),
        'desc'        => esc_html__( 'Specify maximum width for text paragraphs without affecting other content , e.g., images.', 'upscale' ),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),	  
	   array(
        'id'          => 'read_more_open_top',
        'label'       => esc_html__( 'Open read more links from top', 'upscale' ),
        'desc'        => esc_html__( 'Makes read more link open post at the top', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_author',
        'label'       => esc_html__( 'Post author in meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display author in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_date',
        'label'       => esc_html__( 'Post date in meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display date in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_comments',
        'label'       => esc_html__( 'Comments link in meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display comment count in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_links',
        'label'       => esc_html__( 'Previous &amp; next post link', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display next and previous post links on single blog post page?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_tags',
        'label'       => esc_html__( 'Post tags after content', 'upscale' ),
        'desc'        => esc_html__( 'Display post tags on single post page?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'author_description',
        'label'       => esc_html__( 'Post author description after content', 'upscale' ),
        'desc'        => esc_html__( 'When ON, author info box will only appear for those post authors who have "Biographical Info" field filled!', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'articles_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'blog_layout',
        'label'       => esc_html__( 'Blog page layout', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. Full width content %1$s 2. Content / Right sidebar %1$s 3. Content / Left sidebar', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => 'right-sidebar',
        'type'        => 'radio-image',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'archive_post_style',
        'label'       => esc_html__( 'Post style', 'upscale' ),
        'desc'        => esc_html__( 'Choose your post style.', 'upscale' ),
        'std'         => '1',
        'type'        => 'select',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => '1',
            'label'       => esc_html__( 'Default', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => '2',
            'label'       => esc_html__( 'Image overlay', 'upscale' ),
            'src'         => ''
          )         
        )
      ),
      array(
        'id'          => 'archive_post_layout',
        'label'       => esc_html__( 'Post layout', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. One column %1$s 2. Two column', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => 'layout-one-column',
        'type'        => 'radio-image',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'or'
      ),
      array(
        'id'          => 'blog_title',
        'label'       => esc_html__( 'Blog title', 'upscale' ),
        'desc'        => esc_html__( 'Choose whether to display or hide blog title.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'blog_pre_content_area',
        'label'       => esc_html__( 'Pre-content area', 'upscale' ),
        'desc'        => esc_html__( 'Activates additional area before page title and main content.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'blog_pre_content_height',
        'label'       => esc_html__( 'Height (optional)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Pre-content area height. Example: %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>250px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'child-options child-first',
        'condition'   => 'blog_pre_content_area:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'blog_pre_content_responsive_height',
        'label'       => esc_html__( 'Responsive height (optional)', 'upscale' ),
        'desc'        => esc_html__( 'Enables auto height in responsive mode.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'child-options',
        'condition'   => 'blog_pre_content_area:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'blog_pre_content_width',
        'label'       => esc_html__( 'Max width (optional)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Pre-content area max width. Example: %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>1200px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'child-options',
        'condition'   => 'blog_pre_content_area:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'blog_pre_content_paddings',
        'label'       => esc_html__( 'Paddings (optional)', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Pre-content area paddings. Example: %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>40px</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'child-options',
        'condition'   => 'blog_pre_content_area:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'blog_pre_content_bg',
        'label'       => esc_html__( 'Background', 'upscale' ),
        'desc'        => esc_html__( 'Set custom background color or image.', 'upscale' ),
        'std'         => '',
        'type'        => 'background',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'child-options',
        'condition'   => 'blog_pre_content_area:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'blog_pre_content_html',
        'label'       => esc_html__( 'Custom HTML', 'upscale' ),
        'desc'        => esc_html__( 'Insert any custom code you wish. Shortcodes allowed.', 'upscale' ),
        'std'         => '',
        'type'        => 'textarea-simple',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'child-options child-last',
        'condition'   => 'blog_pre_content_area:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'exclude_from_blog',
        'label'       => esc_html__( 'Exclude category from blog', 'upscale' ),
        'desc'        => esc_html__( 'This option will exclude selected category posts from blog and search pages.', 'upscale' ),
        'std'         => '',
        'type'        => 'category-checkbox',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'blog_offset',
        'label'       => esc_html__( 'Offset', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Number of post to displace or pass over. Example (to pass two posts enter): %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>2</code>'),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'content_type',
        'label'       => esc_html__( 'Content type', 'upscale' ),
        'desc'        => esc_html__( 'Choose what to display on blog index pages. Note that only \'Full Content\' respects WordPress \'read more\' tag.', 'upscale' ),
        'std'         => 'full_content',
        'type'        => 'select',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => 'none',
            'label'       => esc_html__( 'None', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'excerpt',
            'label'       => esc_html__( 'Excerpt', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => 'full_content',
            'label'       => esc_html__( 'Full content', 'upscale' ),
            'src'         => ''
          )
        )
      ),
	  array(
        'id'          => 'default_post_image',
        'label'       => esc_html__( 'Default post image', 'upscale' ),
        'desc'        => esc_html__( 'This is the default image applied to all posts that do not have featured image set.', 'upscale' ),
        'std'         => '',
        'type'        => 'upload',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'ot-upload-attachment-id',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'blog_social_share',
        'label'       => esc_html__( 'Blog social sharing', 'upscale' ),
        'desc'        => esc_html__( 'Enable social sharing in blog view. More details in documentation.', 'upscale' ),
        'std'         => 'off',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'blog_social_share_custom_code',
        'label'       => esc_html__( 'Custom social sharing shortcode', 'upscale' ),
		'desc'        => esc_html__( 'Add your custom social sharing shortcode.', 'upscale' ),
        'std'         => '',
        'type'        => 'text',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
		'condition'   => 'blog_social_share:is(on)',
        'operator'    => 'and'
      ),
	  array(
        'id'          => 'post_image_blog',
        'label'       => esc_html__( 'Post image', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display post featured image? Works with default post style.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_review_rating',
        'label'       => esc_html__( 'Post review rating (stars)', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display star rating in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_category_blog',
        'label'       => esc_html__( 'Post category in blog meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display category in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_author_blog',
        'label'       => esc_html__( 'Post author in blog meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display author in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_date_blog',
        'label'       => esc_html__( 'Post date in blog meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display date in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'post_comments_blog',
        'label'       => esc_html__( 'Post comments in blog meta', 'upscale' ),
        'desc'        => esc_html__( 'Do you want to display comment count in post meta fields?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'blog_section',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'category_styles',
        'label'       => esc_html__( 'Category style', 'upscale' ),
        'desc'        => esc_html__( 'Style any category different from default.', 'upscale' ),
        'std'         => '',
        'type'        => 'list-item',
        'section'     => 'category_style_tab',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => 'category-styles',
        'condition'   => '',
        'operator'    => 'and',
        'settings'    => array( 
          array(
            'id'          => 'cs_select',
            'label'       => esc_html__( 'Select category', 'upscale' ),
            'desc'        => esc_html__( 'Choose category to style.', 'upscale' ),
            'std'         => '',
            'type'        => 'category-select',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'and'
          ),
          array(
            'id'          => 'category_title',
            'label'       => esc_html__( 'Category title', 'upscale' ),
            'desc'        => esc_html__( 'Choose whether to display or hide category page title.', 'upscale' ),
            'std'         => 'on',
            'type'        => 'on-off',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'and'
          ),
          array(
            'id'          => 'cat_post_style',
            'label'       => esc_html__( 'Post style', 'upscale' ),
            'desc'        => esc_html__( 'Choose custom post style.', 'upscale' ),
            'std'         => '',
            'type'        => 'select',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'and',
            'choices'     => array( 
              array(
                'value'       => 'default',
                'label'       => esc_html__( 'Inherit from blog settings', 'upscale' ),
                'src'         => ''
              ),
			  array(
                'value'       => '1',
                'label'       => esc_html__( 'Default', 'upscale' ),
                'src'         => ''
              ),
              array(
                'value'       => '2',
                'label'       => esc_html__( 'Image overlay', 'upscale' ),
                'src'         => ''
              )  
            )
          ),
          array(
            'id'          => 'cat_post_layout',
            'label'       => esc_html__( 'Post layout', 'upscale' ),
			'desc'        => sprintf (esc_html_x( '1. One column %1$s 2. Two column', '%1$s stands for line break' ,'upscale' ), '<br/>'),
            'std'         => 'layout-one-column',
            'type'        => 'radio-image',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'or'
          ),
          array(
            'id'          => 'cat_layout',
            'label'       => esc_html__( 'Category page layout', 'upscale' ),
			'desc'        => sprintf (esc_html_x( '1. Full width content %1$s 2. Content / Right sidebar %1$s 3. Content / Left sidebar', '%1$s stands for line break' ,'upscale' ), '<br/>'),
            'std'         => 'right-sidebar',
            'type'        => 'radio-image',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'and'
          ),
		  array(
			'id'          => 'cat_content_type',
			'label'       => esc_html__( 'Content type', 'upscale' ),
			'desc'        => esc_html__( 'Choose what to display on blog index pages. Note that only \'Full Content\' respects WordPress \'read more\' tag.', 'upscale' ),
			'std'         => 'full_content',
			'type'        => 'select',
			'rows'        => '',
			'post_type'   => '',
			'taxonomy'    => '',
			'min_max_step'=> '',
			'class'       => '',
			'condition'   => '',
			'operator'    => 'and',
			'choices'     => array( 
			  array(
				'value'       => 'default',
				'label'       => esc_html__( 'Default (Blog settings)', 'upscale' ),
				'src'         => ''
			  ),			  
			  array(
				'value'       => 'none',
				'label'       => esc_html__( 'None', 'upscale' ),
				'src'         => ''
			  ),
			  array(
				'value'       => 'excerpt',
				'label'       => esc_html__( 'Excerpt', 'upscale' ),
				'src'         => ''
			  ),
			  array(
				'value'       => 'full_content',
				'label'       => esc_html__( 'Full content', 'upscale' ),
				'src'         => ''
			  )
			)
		  ),		  
          array(
            'id'          => 'cat_offset',
            'label'       => esc_html__( 'Offset', 'upscale' ),
			'desc'        => sprintf (esc_html_x( 'Number of post to displace or pass over. Example (to pass two posts enter): %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>2</code>'),
            'std'         => '',
            'type'        => 'text',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'and'
          ),
		  array(
			'id'          => 'cat_social_share',
			'label'       => esc_html__( 'Social sharing from blog options', 'upscale' ),
			'desc'        => esc_html__( 'Enable social sharing settings set in blog options. ', 'upscale' ),
			'std'         => 'on',
			'type'        => 'on-off',
			'rows'        => '',
			'post_type'   => '',
			'taxonomy'    => '',
			'min_max_step'=> '',
			'class'       => '',
			'condition'   => '',
			'operator'    => 'and'
		  ),
          array(
            'id'          => 'cat_pre_content_area',
            'label'       => esc_html__( 'Pre-content area', 'upscale' ),
            'desc'        => esc_html__( 'Activates additional area before page title and main content.', 'upscale' ),
            'std'         => 'off',
            'type'        => 'on-off',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => '',
            'condition'   => '',
            'operator'    => 'and'
          ),
          array(
            'id'          => 'cat_pre_content_height',
            'label'       => esc_html__( 'Height (optional)', 'upscale' ),
			'desc'        => sprintf (esc_html_x( 'Pre-content area height. Example: %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>250px</code>'),
            'std'         => '',
            'type'        => 'text',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => 'child-options child-first',
            'condition'   => 'cat_pre_content_area:is(on)',
            'operator'    => 'and'
          ),
		  array(
            'id'          => 'cat_pre_content_responsive_height',
            'label'       => esc_html__( 'Responsive height (optional)', 'upscale' ),
            'desc'        => esc_html__( 'Enables auto height in responsive mode.', 'upscale' ),
            'std'         => 'off',
            'type'        => 'on-off',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => 'child-options',
            'condition'   => 'cat_pre_content_area:is(on)',
            'operator'    => 'and'
          ),
          array(
            'id'          => 'cat_pre_content_width',
            'label'       => esc_html__( 'Max width (optional)', 'upscale' ),
			'desc'        => sprintf (esc_html_x( 'Pre-content area max width. Example: %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>1200px</code>'),
            'std'         => '',
            'type'        => 'text',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => 'child-options',
            'condition'   => 'cat_pre_content_area:is(on)',
            'operator'    => 'and'
          ),
		  array(
			'id'          => 'cat_pre_content_paddings',
			'label'       => esc_html__( 'Paddings (optional)', 'upscale' ),
			'desc'        => sprintf (esc_html_x( 'Pre-content area paddings. Example: %s', '%s stands for example value. Do not delete it.' ,'upscale' ), '<code>40px</code>'),
			'std'         => '',
			'type'        => 'text',
			'rows'        => '',
			'post_type'   => '',
			'taxonomy'    => '',
			'min_max_step'=> '',
			'class'       => 'child-options',
			'condition'   => 'cat_pre_content_area:is(on)',
			'operator'    => 'and'
		  ),		  
          array(
            'id'          => 'cat_pre_content_bg',
            'label'       => esc_html__( 'Background', 'upscale' ),
            'desc'        => esc_html__( 'Set custom background color or image.', 'upscale' ),
            'std'         => '',
            'type'        => 'background',
            'rows'        => '',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => 'child-options',
            'condition'   => 'cat_pre_content_area:is(on)',
            'operator'    => 'and'
          ),
          array(
            'id'          => 'cat_pre_content_html',
            'label'       => esc_html__( 'Custom HTML', 'upscale' ),
            'desc'        => esc_html__( 'Insert any custom code you wish. Shortcodes are allowed.', 'upscale' ),
            'std'         => '',
            'type'        => 'textarea-simple',
            'rows'        => '10',
            'post_type'   => '',
            'taxonomy'    => '',
            'min_max_step'=> '',
            'class'       => 'child-options child-last',
            'condition'   => 'cat_pre_content_area:is(on)',
            'operator'    => 'and'
          )
        )
      ),
      array(
        'id'          => 'cart_widget',
        'label'       => esc_html__( 'Display cart content on hover', 'upscale' ),
        'desc'        => esc_html__( 'Display cart content on icon hover (ON) or just lead to cart page on click (OFF)?', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => 'cart_button:is(on)',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'catalog_layout',
        'label'       => esc_html__( 'Product archive page (shop) layout', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. Full width content %1$s 2. Content / Right sidebar %1$s 3. Content / Left sidebar', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => 'full-width',
        'type'        => 'radio-image',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'woo_title',
        'label'       => esc_html__( 'WooCommerce product page title', 'upscale' ),
        'desc'        => esc_html__( 'Enable or disable title for main WooCommerce shop page.', 'upscale' ),
        'std'         => 'on',
        'type'        => 'on-off',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'woo_custom_header',
        'label'       => esc_html__( 'Custom HTML after header in WooCommerce product page', 'upscale' ),
        'desc'        => esc_html__( 'Add any custom html content to appear on top of the shop page.', 'upscale' ),
        'std'         => '',
        'type'        => 'textarea-simple',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'product_layout',
        'label'       => esc_html__( 'Single product page layout', 'upscale' ),
		'desc'        => sprintf (esc_html_x( '1. Full width content %1$s 2. Content / Right sidebar %1$s 3. Content / Left sidebar', '%1$s stands for line break' ,'upscale' ), '<br/>'),
        'std'         => 'full-width',
        'type'        => 'radio-image',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'woo_columns',
        'label'       => esc_html__( 'Product column count', 'upscale' ),
        'desc'        => esc_html__( 'Choose column count for main product catalog page.', 'upscale' ),
        'std'         => '3',
        'type'        => 'select',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and',
        'choices'     => array( 
          array(
            'value'       => '3',
            'label'       => esc_html__( '3 columns', 'upscale' ),
            'src'         => ''
          ),
          array(
            'value'       => '4',
            'label'       => esc_html__( '4 columns', 'upscale' ),
            'src'         => ''
          )
        )
      ),
      array(
        'id'          => 'woo_product_count',
        'label'       => esc_html__( 'Products per page', 'upscale' ),
        'desc'        => esc_html__( 'Choose how many products to display on product catalog page.', 'upscale' ),
        'std'         => '12',
        'type'        => 'text',
        'section'     => 'woocommerce',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      ),
      array(
        'id'          => 'custom_css',
        'label'       => esc_html__( 'Custom CSS', 'upscale' ),
		'desc'        => sprintf (esc_html_x( 'Add any of your custom CSS here: %1$s %2$s Have fun!', '%1$s stands for line break, %2$s stand for example code' ,'upscale' ), '<br/>', '<pre><code>.page-id-10 #site-header {background: none;}</code></pre>'),
        'std'         => '',
        'type'        => 'textarea-simple',
        'section'     => 'custom_css',
        'rows'        => '',
        'post_type'   => '',
        'taxonomy'    => '',
        'min_max_step'=> '',
        'class'       => '',
        'condition'   => '',
        'operator'    => 'and'
      )
    )
  );
  
  /* allow settings to be filtered before saving */
  $custom_settings = apply_filters( ot_settings_id() . '_args', $custom_settings );
  
  /* settings are not the same update the DB */
  if ( $saved_settings !== $custom_settings ) {
    update_option( ot_settings_id(), $custom_settings ); 
  }
  
  /* Lets OptionTree know the UI Builder is being overridden */
  global $ot_has_custom_theme_options;
  $ot_has_custom_theme_options = true;
  
}