add_panel(
'general',
array(
'title' => __( 'General', 'bizzboss' ),
'description' => __('styling options','bizzboss'),
'priority' => 20,
)
);
$wp_customize->add_section( 'bizzboss_general_section' , array(
'title' => __( 'General Settings', 'bizzboss' ),
'priority' => 30,
'capability' => 'edit_theme_options',
'panel' => 'general'
) );
$wp_customize->add_section( 'bizzboss_preloader_section' , array(
'title' => __( 'Preloader', 'bizzboss' ),
'priority' => 32,
'capability' => 'edit_theme_options',
) );
$wp_customize->add_section( 'bizzboss_social_section' , array(
'title' => __( 'Social Links', 'bizzboss' ),
'description' => __( 'In first input box, you need to add FONT AWESOME shortcode which you can find here and in second input box, you need to add your social media profile URL.' ,'bizzboss'),
'priority' => 35,
'capability' => 'edit_theme_options',
) );
$wp_customize->add_section( 'bizzboss_theme_documentation_section' , array(
'title' => __( 'Theme Documentation', 'bizzboss' ),
'description' => __( 'Click here to theme documentation page.' ,'bizzboss'),
'priority' => 150,
'capability' => 'edit_theme_options',
) );
$wp_customize->add_setting( 'bizzboss_theme_documentation_link', array(
'sanitize_callback' => 'bizzboss_sanitize_text',
) );
$wp_customize->add_control( 'bizzboss_theme_documentation_link', array(
'section' => 'bizzboss_theme_documentation_section',
'type' => 'select',
) );
$wp_customize->get_section('background_image')->panel = 'general';
$wp_customize->get_control('header_textcolor')->label = __( 'Primary Color', 'bizzboss' );
$wp_customize->get_control('background_color')->label = __( 'Background Color', 'bizzboss' );
$wp_customize->get_section('header_image')->panel = 'general';
$wp_customize->get_section('static_front_page')->panel = 'general';
$wp_customize->get_section('title_tagline')->panel = 'general';
$wp_customize->add_setting(
'secondary_color',
array(
'default' => '2c3e50',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'bizzboss_sanitize_text',
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'secondary_color',
array(
'label' => __('Secondary Color ','bizzboss'),
'section' => 'colors',
'settings' => 'secondary_color',
)
)
);
$wp_customize->add_setting(
'preloader',
array(
'default' => '1',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'bizzboss_sanitize_radio',
'priority' => 2,
)
);
$wp_customize->add_control(
'preloader',
array(
'section' => 'bizzboss_preloader_section',
'label' => __('Preloader','bizzboss'),
'type' => 'radio',
'choices' => array(
"1" => __( "On ", 'bizzboss' ),
"2" => __( "Off", 'bizzboss' ),
),
)
);
$wp_customize->add_setting( 'bizzboss_blogpage_title', array(
'default' => __('Recent Article','bizzboss'),
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_blogpage_title', array(
'label' => __('Blog Page Title','bizzboss'),
'section' => 'bizzboss_general_section',
'type' => 'text',
) );
$wp_customize->add_setting(
'page_title_area',
array(
'default' => '1',
'capability' => 'edit_theme_options',
'sanitize_callback' => 'bizzboss_sanitize_radio',
'priority' => 2,
)
);
$wp_customize->add_control(
'page_title_area',
array(
'section' => 'bizzboss_general_section',
'label' => __('Page Title','bizzboss'),
'type' => 'radio',
'choices' => array(
"1" => __( "Show", 'bizzboss' ),
"2" => __( "Hide", 'bizzboss' ),
),
)
);
$wp_customize->add_setting( 'bizzboss_facebook_icon', array(
'default' => '',
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_facebook_icon', array(
'label' => __('Social Link-1 :','bizzboss'),
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('fa-facebook','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_facebook_url', array(
'default' => '',
'sanitize_callback' => 'esc_url_raw',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_facebook_url', array(
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('http://facebook.com', 'bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_twitter_icon', array(
'default' => '',
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_twitter_icon', array(
'label' => __('Social Link-2 :','bizzboss'),
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('fa-twitter','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_twitter_url', array(
'default' => '',
'sanitize_callback' => 'esc_url_raw',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_twitter_url', array(
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('http://twitter.com','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_gplus_icon', array(
'default' => '',
'sanitize_callback' => 'esc_url_raw',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_gplus_icon', array(
'label' => __('Social Link-3 :','bizzboss'),
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('fa-google-plus','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_gplus_url', array(
'default' => '',
'sanitize_callback' => 'esc_url_raw',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_gplus_url', array(
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('http://plus.google.com','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_insta_icon', array(
'default' => '',
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_insta_icon', array(
'label' => __('Social Link-4 :','bizzboss'),
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('fa-instagram','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_insta_url', array(
'default' => '',
'sanitize_callback' => 'esc_url_raw',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_insta_url', array(
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('http://instagram.com','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_pinter_icon', array(
'default' => '',
'sanitize_callback' => 'sanitize_text_field',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_pinter_icon', array(
'label' => __('Social Link-5 :','bizzboss'),
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('fa-linkedin','bizzboss')
),
) );
$wp_customize->add_setting( 'bizzboss_pinter_url', array(
'default' => '',
'sanitize_callback' => 'esc_url_raw',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'bizzboss_pinter_url', array(
'section' => 'bizzboss_social_section',
'type' => 'text',
'input_attrs' => array(
'placeholder' => __('http://linkedin.com','bizzboss')
),
) );
}
add_action( 'customize_register', 'bizzboss_theme_customizer' );
function bizzboss_custom_css()
{ ?>