|
@@ 212-224 (lines=13) @@
|
| 209 |
|
) ) ); |
| 210 |
|
|
| 211 |
|
// Featured Images: Archive |
| 212 |
|
if ( true === $fi_archive ) { |
| 213 |
|
$wp_customize->add_setting( 'jetpack_content_featured_images_archive', array( |
| 214 |
|
'default' => $fi_archive_default, |
| 215 |
|
'type' => 'option', |
| 216 |
|
'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
| 217 |
|
) ); |
| 218 |
|
|
| 219 |
|
$wp_customize->add_control( 'jetpack_content_featured_images_archive', array( |
| 220 |
|
'section' => 'jetpack_content_options', |
| 221 |
|
'label' => esc_html__( 'Display on blog and archives', 'jetpack' ), |
| 222 |
|
'type' => 'checkbox', |
| 223 |
|
) ); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
// Featured Images: Post |
| 227 |
|
if ( true === $fi_post ) { |
|
@@ 227-239 (lines=13) @@
|
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
// Featured Images: Post |
| 227 |
|
if ( true === $fi_post ) { |
| 228 |
|
$wp_customize->add_setting( 'jetpack_content_featured_images_post', array( |
| 229 |
|
'default' => $fi_post_default, |
| 230 |
|
'type' => 'option', |
| 231 |
|
'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
| 232 |
|
) ); |
| 233 |
|
|
| 234 |
|
$wp_customize->add_control( 'jetpack_content_featured_images_post', array( |
| 235 |
|
'section' => 'jetpack_content_options', |
| 236 |
|
'label' => esc_html__( 'Display on single posts', 'jetpack' ), |
| 237 |
|
'type' => 'checkbox', |
| 238 |
|
) ); |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
// Featured Images: Page |
| 242 |
|
if ( true === $fi_page ) { |
|
@@ 242-254 (lines=13) @@
|
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
// Featured Images: Page |
| 242 |
|
if ( true === $fi_page ) { |
| 243 |
|
$wp_customize->add_setting( 'jetpack_content_featured_images_page', array( |
| 244 |
|
'default' => $fi_page_default, |
| 245 |
|
'type' => 'option', |
| 246 |
|
'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
| 247 |
|
) ); |
| 248 |
|
|
| 249 |
|
$wp_customize->add_control( 'jetpack_content_featured_images_page', array( |
| 250 |
|
'section' => 'jetpack_content_options', |
| 251 |
|
'label' => esc_html__( 'Display on pages', 'jetpack' ), |
| 252 |
|
'type' => 'checkbox', |
| 253 |
|
) ); |
| 254 |
|
} |
| 255 |
|
} |
| 256 |
|
} |
| 257 |
|
add_action( 'customize_register', 'jetpack_content_options_customize_register' ); |