add_section( 'attorney_footer_section' , array( 'title' => __( 'Footer', 'attorney' ), 'priority' => 32, 'description' => __( 'Please fill these data so they show on the header of the website', 'attorney' ), ) ); $wp_customize->add_setting( 'attorney_footer_show_logo_or_firm_name', array( 'sanitize_callback' => 'wp_filter_nohtml_kses' ) ); $wp_customize->add_control( 'attorney_footer_show_logo_or_firm_name', array( 'label' => esc_html__( 'Select whether you want to show the logo or the firm name on the header', 'attorney' ), 'section' => 'attorney_footer_section', 'type' => 'select', 'choices' => array( 'logo' => esc_html__('Show Logo','attorney'), 'name' => esc_html__('Show Firm Name','attorney'), ) ) ); $wp_customize->add_setting( 'attorney_footer_number_of_menus', array( 'sanitize_callback' => 'wp_filter_nohtml_kses' ) ); $wp_customize->add_control( 'attorney_footer_number_of_menus', array( 'label' => esc_html__( 'How many menus should we show on the footer', 'attorney' ), 'section' => 'attorney_footer_section', 'type' => 'select', 'choices' => array( '0' => esc_html__('0','attorney'), '1' => esc_html__('1','attorney'), '2' => esc_html__('2','attorney'), ) ) ); $wp_customize->add_setting( 'attorney_footer_first_menu_name', array ( 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( 'attorney_footer_first_menu_name', array( 'label' => __( 'First Footer Menu\'s Title', 'attorney' ), 'section' => 'attorney_footer_section', 'settings' => 'attorney_footer_first_menu_name', 'priority' => 101, ) ); $wp_customize->add_setting( 'attorney_footer_second_menu_name', array ( 'sanitize_callback' => 'wp_filter_nohtml_kses', ) ); $wp_customize->add_control( 'attorney_footer_second_menu_name', array( 'label' => __( 'Second Footer Menu\'s Title', 'attorney' ), 'section' => 'attorney_footer_section', 'settings' => 'attorney_footer_second_menu_name', 'priority' => 101, ) ); } endif; add_action('customize_register', 'attorney_theme_customize_footer');