type ) {
default:
case 'heading':
echo '' . $this->title . '';
break;
case 'custom_message' :
echo '
' . $this->description . '
';
break;
case 'hr' :
echo '
';
break;
}
}
}
// Home Page Settings
$wp_customize->add_section('section_default_home', array(
'title' => __('One click Homepage Setup', 'shopline'),
'priority' => 1,
));
$wp_customize->add_setting('default_home', array(
'sanitize_callback' => 'shopline_sanitize_text',
));
$wp_customize->add_control( new shopline_Control( $wp_customize, 'default_home',
array(
'section' => 'section_default_home',
'type' => 'custom_message',
'description' => wp_kses_post( 'Click button to set theme default home page. You can modify this page from customize panel. Check this doc : View Documentation. Activating homepage...It may take few seconds...','shopline' ).$obj->active_plugin()
)));
// Genral Settings
$wp_customize->get_section('title_tagline')->title = esc_html__('General Settings', 'shopline');
$wp_customize->get_section('title_tagline')->priority = 3;
}
add_action('customize_register','shopline_customize_register');
?>