Advertisement
Guest User

Untitled

a guest
Aug 9th, 2012
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.47 KB | None | 0 0
  1. // Link color
  2.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color1]', array(
  3.             'default'           => $themeOptions['link_color1'],
  4.             'type'              => 'option',
  5.             'sanitize_callback' => 'sanitize_hex_color',
  6.             'capability'        => 'edit_theme_options',
  7.             'transport'         => 'postMessage'
  8.         ) );
  9.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color1]', array(
  10.             'label'    => __( 'Link color1', 'tonal' ),
  11.             'section'  => 'colors',
  12.             'settings' => 'tonal_'.$themeslug.'_settings[link_color1]',
  13.             'choices'  => '#ffffff'
  14.         ) ) );
  15.        
  16.         // Link color
  17.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color2]', array(
  18.             'default'           => $themeOptions['link_color2'],
  19.             'type'              => 'option',
  20.             'sanitize_callback' => 'sanitize_hex_color',
  21.             'capability'        => 'edit_theme_options',
  22.             'transport'         => 'postMessage'
  23.         ) );
  24.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color2]', array(
  25.             'label'    => __( 'Link color2', 'tonal' ),
  26.             'section'  => 'colors',
  27.             'settings' => 'tonal_'.$themeslug.'_settings[link_color2]',
  28.             'choices'  => '#ffffff'
  29.         ) ) );
  30.        
  31.         // Link color
  32.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color3]', array(
  33.             'default'           => $themeOptions['link_color3'],
  34.             'type'              => 'option',
  35.             'sanitize_callback' => 'sanitize_hex_color',
  36.             'capability'        => 'edit_theme_options',
  37.             'transport'         => 'postMessage'
  38.         ) );
  39.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color3]', array(
  40.             'label'    => __( 'Link color3', 'tonal' ),
  41.             'section'  => 'colors',
  42.             'settings' => 'tonal_'.$themeslug.'_settings[link_color3]',
  43.             'choices'  => '#ffffff'
  44.         ) ) );
  45.        
  46.         // Link color
  47.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color4]', array(
  48.             'default'           => $themeOptions['link_color4'],
  49.             'type'              => 'option',
  50.             'sanitize_callback' => 'sanitize_hex_color',
  51.             'capability'        => 'edit_theme_options',
  52.             'transport'         => 'postMessage'
  53.         ) );
  54.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color4]', array(
  55.             'label'    => __( 'Link color4', 'tonal' ),
  56.             'section'  => 'colors',
  57.             'settings' => 'tonal_'.$themeslug.'_settings[link_color4]',
  58.             'choices'  => '#ffffff'
  59.         ) ) );
  60.        
  61.         // Link color
  62.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color5]', array(
  63.             'default'           => $themeOptions['link_color5'],
  64.             'type'              => 'option',
  65.             'sanitize_callback' => 'sanitize_hex_color',
  66.             'capability'        => 'edit_theme_options',
  67.             'transport'         => 'postMessage'
  68.         ) );
  69.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color5]', array(
  70.             'label'    => __( 'Link color5', 'tonal' ),
  71.             'section'  => 'colors',
  72.             'settings' => 'tonal_'.$themeslug.'_settings[link_color5]',
  73.             'choices'  => '#ffffff'
  74.         ) ) );
  75.        
  76.         // Link color
  77.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color6]', array(
  78.             'default'           => $themeOptions['link_color6'],
  79.             'type'              => 'option',
  80.             'sanitize_callback' => 'sanitize_hex_color',
  81.             'capability'        => 'edit_theme_options',
  82.             'transport'         => 'postMessage'
  83.         ) );
  84.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color6]', array(
  85.             'label'    => __( 'Link color6', 'tonal' ),
  86.             'section'  => 'colors',
  87.             'settings' => 'tonal_'.$themeslug.'_settings[link_color6]',
  88.             'choices'  => '#ffffff'
  89.         ) ) );
  90.        
  91.         // Link color
  92.         $wp_customize->add_setting( 'tonal_'.$themeslug.'_settings[link_color7]', array(
  93.             'default'           => $themeOptions['link_color7'],
  94.             'type'              => 'option',
  95.             'sanitize_callback' => 'sanitize_hex_color',
  96.             'capability'        => 'edit_theme_options',
  97.             'transport'         => 'postMessage'
  98.         ) );
  99.         $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'tonal_'.$themeslug.'_settings[link_color7]', array(
  100.             'label'    => __( 'Link color7', 'tonal' ),
  101.             'section'  => 'colors',
  102.             'settings' => 'tonal_'.$themeslug.'_settings[link_color7]',
  103.             'choices'  => '#ffffff'
  104.         ) ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement