did some sniff sniff
This commit is contained in:
@@ -16,24 +16,45 @@ function sophia_after_dark_customize_register( $wp_customize ) {
|
||||
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
||||
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
||||
$wp_customize->get_section( 'title_tagline' )->panel = 'sophia_after_dark_general_panel';
|
||||
$wp_customize->get_section( 'title_tagline' )->priority = '5'; $wp_customize->get_section( 'background_image' )->panel = 'sophia_after_dark_general_panel';
|
||||
$wp_customize->get_section( 'background_image' )->priority = '15';
|
||||
$wp_customize->get_section( 'static_front_page' )->panel = 'sophia_after_dark_general_panel';
|
||||
$wp_customize->get_section( 'static_front_page' )->priority = '20';
|
||||
$wp_customize->get_section( 'header_image' )->panel = 'sophia_after_dark_header_panel';
|
||||
$wp_customize->get_section( 'header_image' )->priority = '5';
|
||||
$wp_customize->get_section( 'header_image' )->description = __( 'Header Image for only Innerpages', 'sophia-after-dark' );
|
||||
$wp_customize->add_setting('sophia_after_dark_home_og_image', array('default' => '','sanitize_callback' => 'esc_url_raw','type' => 'option',));
|
||||
$wp_customize->add_setting('sophia_after_dark_home_og_user', array('default' => 1,'sanitize_callback' => 'absint','type' => 'option',));
|
||||
$wp_customize->get_section( 'title_tagline' )->priority = '5';
|
||||
$wp_customize->get_section( 'background_image' )->panel = 'sophia_after_dark_general_panel';
|
||||
$wp_customize->get_section( 'background_image' )->priority = '15';
|
||||
$wp_customize->get_section( 'static_front_page' )->panel = 'sophia_after_dark_general_panel';
|
||||
$wp_customize->get_section( 'static_front_page' )->priority = '20';
|
||||
$wp_customize->get_section( 'header_image' )->panel = 'sophia_after_dark_header_panel';
|
||||
$wp_customize->get_section( 'header_image' )->priority = '5';
|
||||
$wp_customize->get_section( 'header_image' )->description = __( 'Header Image for only Innerpages', 'sophia-after-dark' );
|
||||
$wp_customize->add_setting(
|
||||
'sophia_after_dark_home_og_image',
|
||||
array(
|
||||
'default' => '',
|
||||
'sanitize_callback' => 'esc_url_raw',
|
||||
'type' => 'option',
|
||||
)
|
||||
);
|
||||
$wp_customize->add_setting(
|
||||
'sophia_after_dark_home_og_user',
|
||||
array(
|
||||
'default' => 1,
|
||||
'sanitize_callback' => 'absint',
|
||||
'type' => 'option',
|
||||
)
|
||||
);
|
||||
if ( isset( $wp_customize->selective_refresh ) ) {
|
||||
$wp_customize->selective_refresh->add_partial( 'blogname', array(
|
||||
'selector' => '.site-title a',
|
||||
'render_callback' => 'sophia_after_dark_customize_partial_blogname',
|
||||
) );
|
||||
$wp_customize->selective_refresh->add_partial( 'blogdescription', array(
|
||||
'selector' => '.site-description',
|
||||
'render_callback' => 'sophia_after_dark_customize_partial_blogdescription',
|
||||
) );
|
||||
$wp_customize->selective_refresh->add_partial(
|
||||
'blogname',
|
||||
array(
|
||||
'selector' => '.site-title a',
|
||||
'render_callback' => 'sophia_after_dark_customize_partial_blogname',
|
||||
)
|
||||
);
|
||||
$wp_customize->selective_refresh->add_partial(
|
||||
'blogdescription',
|
||||
array(
|
||||
'selector' => '.site-description',
|
||||
'render_callback' => 'sophia_after_dark_customize_partial_blogdescription',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -87,7 +108,7 @@ add_action( 'customize_controls_enqueue_scripts', 'sophia_after_dark_customize_b
|
||||
/**
|
||||
* Add Kirki required file for custom fields
|
||||
*/
|
||||
#require get_template_directory() . '/inc/customizer/sad-customizer-additional-open-graph.php';
|
||||
// require get_template_directory() . '/inc/customizer/sad-customizer-additional-open-graph.php';
|
||||
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-custom-classes.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-panels.php';
|
||||
@@ -99,4 +120,4 @@ require get_template_directory() . '/inc/customizer/sad-customizer-header-panel-
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-front-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-additional-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-design-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-footer-panel-options.php';
|
||||
require get_template_directory() . '/inc/customizer/sad-customizer-footer-panel-options.php';
|
||||
|
||||
Reference in New Issue
Block a user