add_section( 'biz_vektor_calmly', array( 'title' => __('', 'biz-vektor'), 'priority' => 1000, ) ); $wp_customize->add_setting( 'biz_vektor_theme_options_calmly[theme_plusKeyColor]', array('default' => '','type'=> 'option','capability' => 'edit_theme_options', ) ); // Create section UI $wp_customize->add_control( new WP_Customize_Color_Control($wp_customize, 'keyColor', array( 'label' => _x('Keycolor', 'Calmly color setting', 'biz-vektor'), 'section' => 'biz_vektor_calmly', 'settings' => 'biz_vektor_theme_options_calmly[theme_plusKeyColor]', ))); } } /*-------------------------------------------*/ /* Admin page _ Add link bottom of pulldown /*-------------------------------------------*/ add_filter('themePlusSettingNavi','themePlusSettingNaviCalmly'); function themePlusSettingNaviCalmly(){ global $themePlusSettingNavi; if (is_calmly()){ $themePlusSettingNavi = '
[ » '.__('Set the color from theme customizer', 'biz-vektor').' ]
'; } return $themePlusSettingNavi; } /*-------------------------------------------*/ /* Print head /*-------------------------------------------*/ add_action( 'wp_head','calmlyWpHead'); function calmlyWpHead(){ if (is_calmly()){ $calmlyOptions = biz_vektor_get_theme_options_calmly(); ?>