- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php
r42343 r43571 19 19 20 20 $wp_customize->selective_refresh->add_partial( 21 'blogname', array( 21 'blogname', 22 array( 22 23 'selector' => '.site-title a', 23 24 'render_callback' => 'twentyseventeen_customize_partial_blogname', … … 25 26 ); 26 27 $wp_customize->selective_refresh->add_partial( 27 'blogdescription', array( 28 'blogdescription', 29 array( 28 30 'selector' => '.site-description', 29 31 'render_callback' => 'twentyseventeen_customize_partial_blogdescription', … … 35 37 */ 36 38 $wp_customize->add_setting( 37 'colorscheme', array( 39 'colorscheme', 40 array( 38 41 'default' => 'light', 39 42 'transport' => 'postMessage', … … 43 46 44 47 $wp_customize->add_setting( 45 'colorscheme_hue', array( 48 'colorscheme_hue', 49 array( 46 50 'default' => 250, 47 51 'transport' => 'postMessage', … … 51 55 52 56 $wp_customize->add_control( 53 'colorscheme', array( 57 'colorscheme', 58 array( 54 59 'type' => 'radio', 55 60 'label' => __( 'Color Scheme', 'twentyseventeen' ), … … 66 71 $wp_customize->add_control( 67 72 new WP_Customize_Color_Control( 68 $wp_customize, 'colorscheme_hue', array( 73 $wp_customize, 74 'colorscheme_hue', 75 array( 69 76 'mode' => 'hue', 70 77 'section' => 'colors', … … 78 85 */ 79 86 $wp_customize->add_section( 80 'theme_options', array( 87 'theme_options', 88 array( 81 89 'title' => __( 'Theme Options', 'twentyseventeen' ), 82 90 'priority' => 130, // Before Additional CSS. … … 85 93 86 94 $wp_customize->add_setting( 87 'page_layout', array( 95 'page_layout', 96 array( 88 97 'default' => 'two-column', 89 98 'sanitize_callback' => 'twentyseventeen_sanitize_page_layout', … … 93 102 94 103 $wp_customize->add_control( 95 'page_layout', array( 104 'page_layout', 105 array( 96 106 'label' => __( 'Page Layout', 'twentyseventeen' ), 97 107 'section' => 'theme_options', … … 118 128 for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) { 119 129 $wp_customize->add_setting( 120 'panel_' . $i, array( 130 'panel_' . $i, 131 array( 121 132 'default' => false, 122 133 'sanitize_callback' => 'absint', … … 126 137 127 138 $wp_customize->add_control( 128 'panel_' . $i, array( 139 'panel_' . $i, 140 array( 129 141 /* translators: %d is the front page section number */ 130 142 'label' => sprintf( __( 'Front Page Section %d Content', 'twentyseventeen' ), $i ), … … 138 150 139 151 $wp_customize->selective_refresh->add_partial( 140 'panel_' . $i, array( 152 'panel_' . $i, 153 array( 141 154 'selector' => '#panel' . $i, 142 155 'render_callback' => 'twentyseventeen_front_page_section',
Note: See TracChangeset
for help on using the changeset viewer.