process_save(); $screen = get_current_screen(); add_action("wu_edit_{$screen->id}_after_normal", array($this, 'display_preview_window')); } // end page_loaded; /** * Adds the preview window. * * @since 2.0.0 * @return void */ public function display_preview_window() { wu_get_template('base/edit/editor-customizer', array( 'preview_iframe_url' => $this->get_preview_url(), 'preview_height' => $this->preview_height, )); } // end display_preview_window; /** * Registers the necessary scripts and styles for this admin page. * * @since 2.0.0 * @return void */ public function register_scripts() { parent::register_scripts(); wp_enqueue_script('wu-customizer', wu_get_asset('customizer.js', 'js'), array('jquery', 'wu-vue', 'wu-block-ui')); wp_enqueue_style('wp-color-picker'); wp_enqueue_script('wp-color-picker'); wp_enqueue_media(); } // end register_scripts; /** * Checkout_Forms have titles. * * @since 2.0.0 * @return boolean */ public function has_title() { return false; } // end has_title; /** * Not needed. * * @since 2.0.0 * @return void */ public function get_object() {} // end get_object; } // end class Customizer_Admin_Page;