Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color1]', array(
- 'default' => $themeOptions['link_color1'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color1]', array(
- 'label' => __( 'Link color1', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color1]',
- 'choices' => '#ffffff'
- ) ) );
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color2]', array(
- 'default' => $themeOptions['link_color2'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color2]', array(
- 'label' => __( 'Link color2', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color2]',
- 'choices' => '#ffffff'
- ) ) );
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color3]', array(
- 'default' => $themeOptions['link_color3'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color3]', array(
- 'label' => __( 'Link color3', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color3]',
- 'choices' => '#ffffff'
- ) ) );
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color4]', array(
- 'default' => $themeOptions['link_color4'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color4]', array(
- 'label' => __( 'Link color4', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color4]',
- 'choices' => '#ffffff'
- ) ) );
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color5]', array(
- 'default' => $themeOptions['link_color5'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color5]', array(
- 'label' => __( 'Link color5', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color5]',
- 'choices' => '#ffffff'
- ) ) );
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color6]', array(
- 'default' => $themeOptions['link_color6'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color6]', array(
- 'label' => __( 'Link color6', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color6]',
- 'choices' => '#ffffff'
- ) ) );
- // Link color
- $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color7]', array(
- 'default' => $themeOptions['link_color7'],
- 'type' => 'option',
- 'sanitize_callback' => 'sanitize_hex_color',
- 'capability' => 'edit_theme_options',
- 'transport' => 'postMessage'
- ) );
- $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color7]', array(
- 'label' => __( 'Link color7', 'tonal' ),
- 'section' => 'colors',
- 'settings' => 'tonal_'.$themeslug.'_settings[link_color7]',
- 'choices' => '#ffffff'
- ) ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement