Customize Colors tab. */ function bitwallet_theme_customize_register( $wp_customize ) { // Header Links Colors $wp_customize->add_setting( 'header_links_colors', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_links_colors', array( 'section' => 'colors', 'label' => esc_html__( 'Header Links Colors', 'bitwallet' ), ) ) ); // Header Background Color $wp_customize->add_setting( 'header_background_color', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array( 'section' => 'colors', 'label' => esc_html__( 'Header Background Color', 'bitwallet' ), ) ) ); // Primary Color $wp_customize->add_setting( 'primary_color', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_color', array( 'section' => 'colors', 'label' => esc_html__( 'Primary Color', 'bitwallet' ), ) ) ); // Primary Hover Color $wp_customize->add_setting( 'primary_hover_color', array( 'default' => '', 'transport' => 'refresh', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'primary_hover_color', array( 'section' => 'colors', 'label' => esc_html__( 'Primary Hover Color', 'bitwallet' ), ) ) ); $posts_list = array(); $args = array('post_type' => 'post','posts_per_page' => -1); $posts = get_posts( $args ); foreach($posts as $post) { $posts_list[$post->post_title] = $post->post_title; } $wp_customize->add_section( 'homepage_slider' , array( 'title' => __('Homepage slider','bitwallet'), 'priority' => 50, ) ); /* First post slide */ $wp_customize->add_setting( 'first_post_slide', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'first_post_slide', array( 'type' => 'select', 'section' => 'homepage_slider', // Add a default or your own section 'label' => esc_html__( 'First post slide' ,'bitwallet'), 'choices' => $posts_list, ) ); /* Second post slide */ $wp_customize->add_setting( 'second_post_slide', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'second_post_slide', array( 'type' => 'select', 'section' => 'homepage_slider', // Add a default or your own section 'label' => esc_html__( 'Second post slide' ,'bitwallet'), 'choices' => $posts_list, ) ); /* Third post slide */ $wp_customize->add_setting( 'third_post_slide', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'third_post_slide', array( 'type' => 'select', 'section' => 'homepage_slider', // Add a default or your own section 'label' => esc_html__( 'Third post slide' ,'bitwallet'), 'choices' => $posts_list, ) ); /* Uncheck to show slider */ $wp_customize->add_setting( 'themecheck_checkbox_setting_id', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'themecheck_checkbox_setting_id', array( 'type' => 'checkbox', 'section' => 'homepage_slider', // Add a default or your own section 'label' => esc_html__( 'Uncheck to show slider' ,'bitwallet'), ) ); /* Footer */ $wp_customize->add_section( 'footer_section' , array( 'title' => __('Footer','bitwallet'), 'priority' => 50, ) ); /* Column 1 */ /* Title 1 */ $wp_customize->add_setting( 'footer_title1_id', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_title1_id', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => __( 'Footer Title first column' ,'bitwallet'), ) ); /* Textarea description */ $wp_customize->add_setting( 'footer_description', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_description', array( 'type' => 'textarea', 'section' => 'footer_section', 'label' => esc_html__( 'Description first column' ,'bitwallet'), ) ); /* Column 2 */ $wp_customize->add_setting( 'footer_title2_id', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_title2_id', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer Title second column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_widget_column2', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_widget_column2', array( 'type' => 'select', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Select Widget second column' ,'bitwallet'), 'choices' => array( 'WP_Widget_Archives' => esc_html__( 'WP Widget Archives','bitwallet'), 'WP_Widget_Calendar' => esc_html__( 'WP Widget Calendar','bitwallet'), 'WP_Widget_Categories' => esc_html__( 'WP Widget Categories','bitwallet'), 'WP_Widget_Meta' => esc_html__( 'WP Widget Meta','bitwallet'), 'WP_Widget_Pages' => esc_html__( 'WP Widget Pages','bitwallet'), 'WP_Widget_Recent_Comments' => esc_html__( 'WP Widget Recent Comments','bitwallet'), 'WP_Widget_Recent_Posts' => esc_html__( 'WP Widget Recent Posts','bitwallet'), 'WP_Widget_Search' => esc_html__( 'WP Widget Search ','bitwallet'), 'WP_Widget_Tag_Cloud' => esc_html__( 'WP Widget Tag Cloud ','bitwallet'), ), ) ); /* Column 3 */ $wp_customize->add_setting( 'footer_title3_id', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_title3_id', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer Title third column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_widget_column3', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_widget_column3', array( 'type' => 'select', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Select Widget third column' ,'bitwallet'), 'choices' => array( 'WP_Widget_Archives' => esc_html__( 'WP Widget Archives','bitwallet'), 'WP_Widget_Calendar' => esc_html__( 'WP Widget Calendar','bitwallet'), 'WP_Widget_Categories' => esc_html__( 'WP Widget Categories','bitwallet'), 'WP_Widget_Meta' => esc_html__( 'WP Widget Meta','bitwallet'), 'WP_Widget_Pages' => esc_html__( 'WP Widget Pages','bitwallet'), 'WP_Widget_Recent_Comments' => esc_html__( 'WP Widget Recent Comments','bitwallet'), 'WP_Widget_Recent_Posts' => esc_html__( 'WP Widget Recent Posts','bitwallet'), 'WP_Widget_Search' => esc_html__( 'WP Widget Search ','bitwallet'), 'WP_Widget_Tag_Cloud' => esc_html__( 'WP Widget Tag Cloud ','bitwallet'), ), ) ); /* Column 4 */ $wp_customize->add_setting( 'footer_title4_id', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_title4_id', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer Title fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_social_description', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_social_description', array( 'type' => 'textarea', 'section' => 'footer_section', 'label' => esc_html__( 'Description fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_phone', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_phone', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer phone fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_email', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_email', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer email fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_facebook', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_facebook', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer facebook link fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_twitter', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_twitter', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer twitter link fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_linkedin', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_linkedin', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer linkedin link fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_telegram', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_telegram', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer telegram link fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_google', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_google', array( 'type' => 'text', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer google link fourth column' ,'bitwallet'), ) ); $wp_customize->add_setting( 'footer_copyright', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'esc_attr', ) ); $wp_customize->add_control( 'footer_copyright', array( 'type' => 'textarea', 'section' => 'footer_section', // Add a default or your own section 'label' => esc_html__( 'Footer copyright fourth column' ,'bitwallet'), ) ); } add_action( 'customize_register', 'bitwallet_theme_customize_register' );