ATENTO_THEME_URI . '/inc/libraries/kirki/' ); } add_filter( 'kirki/config', 'atento_kirki_configuration' ); /*-------------------------------------------------------------- # Atento Kirki Config --------------------------------------------------------------*/ Kirki::add_config( 'atento_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 atento_add_field( $args ) { Kirki::add_field( 'atento_config', $args ); } require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/hero.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/global.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/header.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/archive.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/post.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/page.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/footer.php'; require ATENTO_THEME_DIR . '/inc/framework/customizer/panel/theme-info.php'; /** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function atento_customize_register( $wp_customize ) { $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; // Remove $wp_customize->remove_control( 'display_header_text' ); $wp_customize->remove_control( 'header_textcolor' ); $wp_customize->remove_section( 'background_image' ); /** * Upsell customizer section. * * @since 1.0.3 * @access public */ class Atento_Upsell_Section extends WP_Customize_Section { /** * The type of customize section being rendered. * * @since 1.0.3 * @access public * @var string */ public $type = 'upsell'; /** * Custom button text to output. * * @since 1.0.3 * @access public * @var string */ public $pro_text = ''; /** * Custom pro button URL. * * @since 1.0.3 * @access public * @var string */ public $pro_url = ''; /** * Add custom parameters to pass to the JS via JSON. * * @since 1.0.3 * @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.3 * @access public * @return void */ protected function render_template() { ?>