esc_html__( 'Facebook', 'bootstrap-coach' ), 'twitter' => esc_html__( 'Twitter', 'bootstrap-coach' ), 'pinterest' => esc_html__( 'Pinterest', 'bootstrap-coach' ), 'instagram' => esc_html__( 'Instagram', 'bootstrap-coach' ), 'youtube' => esc_html__( 'Youtube', 'bootstrap-coach' ), 'linkedin' => esc_html__( 'LinkedIn', 'bootstrap-coach' ), 'tripadvisor' => esc_html__( 'Tripadvisor', 'bootstrap-coach' ), ); return $social_media; } add_action( 'customize_register', 'bootstrap_coach_customize_social_media' ); function bootstrap_coach_customize_social_media( $wp_customize ) { $wp_customize->add_section( 'bootstrap_coach_social_media', array( 'title' => esc_html__( 'Social Media', 'bootstrap-coach' ), 'description' => esc_html__( 'Social Media', 'bootstrap-coach' ), 'panel' => 'bootstrap_coach_header_panel', 'priority' => 9, ) ); $wp_customize->add_setting( new Bootstrap_Coach_Repeater_Setting( $wp_customize, 'bootstrap_coach_social_media', array( 'sanitize_callback' => array( 'Bootstrap_Coach_Repeater_Setting', 'sanitize_repeater_setting' ), ) ) ); $wp_customize->add_control( new Bootstrap_Coach_Control_Repeater( $wp_customize, 'bootstrap_coach_social_media', array( 'section' => 'bootstrap_coach_social_media', 'settings' => 'bootstrap_coach_social_media', 'label' => esc_html__( 'Social Media', 'bootstrap-coach' ), 'row_label' => array( 'type' => 'field', 'value' => esc_html__( 'Social Media', 'bootstrap-coach' ), 'field' => 'social_media_repeater_class', ), 'fields' => array( 'social_media_repeater_class' => array( 'type' => 'select', 'label' => esc_html__( 'Select Social Media', 'bootstrap-coach' ), 'default' => 'facebook', 'choices' => bootstrap_coach_social_media() ), 'social_media_link' => array( 'type' => 'url', 'label' => esc_html__( 'Social Media Links', 'bootstrap-coach' ), ), ), ) ) ); $wp_customize->selective_refresh->add_partial( 'bootstrap_coach_social_media', array( 'selector' => '.social-icons', 'render_callback' => '', ) ); }