add_control( new bgbn_Customize_Misc_Control( $wp_customize, $control_prefix . $setting_id, array( 'section' => $section, 'type' => 'text', 'description' => __( 'Enter the complete URL to your profile for each service below that you would like to share.', 'bgbn' ), 'priority' => $priority->add() ) ) ); // Facebook $setting_id = $setting_prefix . '-facebook'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Facebook', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Twitter $setting_id = $setting_prefix . '-twitter'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Twitter', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Google + $setting_id = $setting_prefix . '-google-plus-square'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Google +', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // LinkedIn $setting_id = $setting_prefix . '-linkedin'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'LinkedIn', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Instagram $setting_id = $setting_prefix . '-instagram'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Instagram', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Flickr $setting_id = $setting_prefix . '-flickr'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Flickr', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // YouTube $setting_id = $setting_prefix . '-youtube'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'YouTube', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Vimeo $setting_id = $setting_prefix . '-vimeo-square'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Vimeo', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Pinterest $setting_id = $setting_prefix . '-pinterest'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => 'Pinterest', // brand names not translated 'type' => 'text', 'priority' => $priority->add() ) ); // Custom alternate $setting_id = $setting_prefix . '-custom-alternate'; $wp_customize->add_control( new bgbn_Customize_Misc_Control( $wp_customize, $control_prefix . $setting_id, array( 'section' => $section, 'type' => 'text', 'description' => sprintf( __( 'If you would like to add a social profile that is not listed above, or change the order of the icons, use %s.', 'bgbn' ), sprintf( '%s', __( 'this alternate method', 'bgbn' ) ) ), 'priority' => $priority->add() ) ) ); // Email $setting_id = $setting_prefix . '-email'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'sanitize_email', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Email', 'bgbn' ), 'type' => 'text', 'priority' => $priority->add() ) ); // RSS Heading $setting_id = $setting_prefix . '-rss-heading'; $wp_customize->add_control( new bgbn_Customize_Misc_Control( $wp_customize, $control_prefix . $setting_id, array( 'section' => $section, 'type' => 'heading', 'label' => __( 'Default RSS', 'bgbn' ), 'priority' => $priority->add() ) ) ); // Hide RSS $setting_id = $setting_prefix . '-hide-rss'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'absint' ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Hide default RSS feed link', 'bgbn' ), 'type' => 'checkbox', 'priority' => $priority->add() ) ); // Custom RSS $setting_id = $setting_prefix . '-custom-rss'; $wp_customize->add_setting( $setting_id, array( 'default' => bgbn_get_default( $setting_id ), 'type' => 'theme_mod', 'sanitize_callback' => 'esc_url_raw', ) ); $wp_customize->add_control( $control_prefix . $setting_id, array( 'settings' => $setting_id, 'section' => $section, 'label' => __( 'Custom RSS URL (replaces default)', 'bgbn' ), 'type' => 'text', 'priority' => $priority->add() ) ); } endif;