Skip to content

Commit

Permalink
reorganizing the cornerstone customizer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed May 29, 2015
1 parent 65a1312 commit 9bba75a
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 252 deletions.
56 changes: 56 additions & 0 deletions inc/customizer-colors.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php
$wp_customize->add_setting( 'h1_color' , array(
'default' => 'inherit',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'h1_color', array(
'label' => __( 'Header 1 Color', 'cornerstone' ),
'section' => 'colors',
'settings' => 'h1_color',
) ) );
$wp_customize->add_setting( 'h2_color' , array(
'default' => 'inherit',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'h2_color', array(
'label' => __( 'Header 2 Color', 'cornerstone' ),
'section' => 'colors',
'settings' => 'h2_color',
) ) );
$wp_customize->add_setting( 'text_color' , array(
'default' => 'inherit',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'text_color', array(
'label' => __( 'Text Color', 'cornerstone' ),
'section' => 'colors',
'settings' => 'text_color',
) ) );
$wp_customize->add_setting( 'a_color' , array(
'default' => 'inherit',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'a_color', array(
'label' => __( 'Link Color', 'cornerstone' ),
'section' => 'colors',
'settings' => 'a_color',
) ) );
$wp_customize->add_setting( 'ahover_color' , array(
'default' => 'inherit',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'ahover_color', array(
'label' => __( 'Link Hover Color', 'cornerstone' ),
'section' => 'colors',
'settings' => 'ahover_color',
) ) );
$wp_customize->add_setting( 'avisited_color' , array(
'default' => 'inherit',
'transport' => 'refresh',
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'avisited_color', array(
'label' => __( 'Link Visited Color', 'cornerstone' ),
'section' => 'colors',
'settings' => 'avisited_color',
) ) );
?>
Loading

0 comments on commit 9bba75a

Please sign in to comment.