BLOGASM_THEME_URI . '/inc/libraries/kirki/' ); } add_filter( 'kirki/config', 'blogasm_kirki_configuration' ); /*-------------------------------------------------------------- # Blogasm Kirki Config --------------------------------------------------------------*/ Kirki::add_config( 'blogasm_config', array( 'capability' => 'edit_theme_options', 'option_type' => 'theme_mod', ) ); /** * A proxy function. Automatically passes-on the config-id. * * @param array $args The field arguments. */ function blogasm_add_field( $args ) { Kirki::add_field( 'blogasm_config', $args ); } // Panels require BLOGASM_THEME_DIR . '/inc/framework/customizer/panel/social.php'; require BLOGASM_THEME_DIR . '/inc/framework/customizer/panel/header.php'; require BLOGASM_THEME_DIR . '/inc/framework/customizer/panel/archive.php'; require BLOGASM_THEME_DIR . '/inc/framework/customizer/panel/sidebar.php'; require BLOGASM_THEME_DIR . '/inc/framework/customizer/panel/footer.php'; /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function blogasm_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; # customize site identiry title and panel $wp_customize->get_section( 'title_tagline' )->title = esc_html__( 'Site Title & Tagline', 'blogasm' ); $wp_customize->get_section( 'title_tagline' )->panel = 'blogasm_header_panel'; /** * Upsell customizer section. * * @since 1.0.4 * @access public */ class Blogasm_Upsell_Section extends WP_Customize_Section { /** * The type of customize section being rendered. * * @since 1.0.4 * @access public * @var string */ public $type = 'upsell'; /** * Custom button text to output. * * @since 1.0.4 * @access public * @var string */ public $pro_text = ''; /** * Custom pro button URL. * * @since 1.0.4 * @access public * @var string */ public $pro_url = ''; /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0.4 * @access public * @return void */ public function json() { $json = parent::json(); $json['pro_text'] = $this->pro_text; $json['pro_url'] = esc_url( $this->pro_url ); return $json; } /** * Outputs the Underscore.js template. * * @since 1.0.4 * @access public * @return void */ protected function render_template() { ?>