' . esc_html__( 'Absolute Weaver Theme Support Plugin required for Save/Restore', 'absolute-weaver' ) . ''; echo '

' . wp_kses_post( absolute_weaver_markdown( __( 'Please install the free *Absolute Weaver Theme Support Plugin* from the WordPress Plugin repository to enable saving and restoring your theme settings to your own computer. This will allow you to save different versions of your designs, or transfer them to other sites.', 'absolute-weaver' ) ) ) . '

'; echo '' . esc_html( $this->label ) . ''; } static public function process_save( $wp_customize ) { } static private function _absolute_weaver_filter_strip_default( $var ) { if ( ! is_string( $var ) ) { return true; } return strlen( $var ) && $var != 'default'; } static private function _save_settings( $wp_customize, $ext ) { // Note: a $_REQUEST based nonce has been verified before this function called } static public function enqueue_scripts() { // Register // no-op } } } if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Absolute_Weaver_Restore_WV_Settings' ) ) { class Absolute_Weaver_Restore_WV_Settings extends WP_Customize_Control { public $description = ''; static private $wvrx_error = ''; /** */ public function render_content() { echo '' . esc_html( $this->label ) . ''; } static public function process_restore( $wp_customize ) { } static private function _restore( $wp_customize ) { } static public function reset_options( $contents, $ext ) { return true; } static public function enqueue_scripts() { } static public function controls_print_scripts() { if ( self::$wvrx_error ) { echo ''; } } } } } else { // there is a plugin // do_action( 'absolute_weaver_ts_load_save', array( ABSOLUTE_WEAVER_VERSION ) ); } if ( class_exists( 'WP_Customize_Control' ) && ! class_exists( 'Absolute_Weaver_Load_WA_Subtheme' ) ) { class Absolute_Weaver_Load_WA_Subtheme extends WP_Customize_Control { public $description = ''; static private $wvrx_error = ''; /** */ public function render_content() { $cur_theme = absolute_weaver_getopt( 'theme_filename' ); echo '' . esc_html( $this->label ) . ''; if ( '' !== $this->description ) { echo '' . esc_html( $this->description ) . ''; } $theme_list = array( 'absolutely', 'ajax', 'arctic-white', 'black-and-white', 'blank', 'cosmic-latte', 'full-width-dark', 'go-basic-traditional', 'go-basic-full', 'go-basic-stretched', 'go-blue', 'go-green', 'kitchen-sink', 'magazine', 'pioneer', 'plain-full-width', 'raw', 'transparent-dark', 'transparent-light', ); ?>

' . "\n"; } else { echo "
\n"; } } wp_nonce_field( 'wvrx_select_subtheme', 'wvrx-upload-subtheme' ); ?>

$val ) { if ( isset( $key[0] ) && $key[0] == '_' ) // these are non-theme specific settings { $new_opts[ $key ] = $val; } // keep } foreach ( $opts as $key => $val ) { // now, add theme settings from loaded settings if ( isset( $key[0] ) && $key[0] != '_' ) { $new_opts[ $key ] = $val; } // and add rest from restore } $new_opts['style_date'] = date( 'Y-m-d-H:i:s' ); $new_opts['theme_filename'] = $theme; remove_theme_mod( 'absolute_weaver_settings' ); set_theme_mod( 'absolute_weaver_settings', $new_opts ); $absolute_weaver_opts_cache = $new_opts; // and this loads the new settings into our cache absolute_weaver_save_generated_style(); do_action( 'absolute_weaver_save_mcecss' ); // theme support plugin saved editor css in file do_action( 'absolute_weaver_save_gutenberg_css' ); do_action( 'absolute_weaver_update_additional_css' ); return true; } static public function enqueue_scripts() { // Register wp_register_style( 'wvrx-ldth-css', get_template_directory_uri() . '/inc/admin/customizer/load-subthemes/load-subthemes' . ABSOLUTE_WEAVER_MINIFY . '.css', array(), ABSOLUTE_WEAVER_VERSION ); wp_register_script( 'wvrx-ldth-js', get_template_directory_uri() . '/inc/admin/customizer/load-subthemes/load-subthemes' . ABSOLUTE_WEAVER_MINIFY . '.js', array( 'jquery' ), ABSOLUTE_WEAVER_VERSION, true ); // Localize wp_localize_script( 'wvrx-ldth-js', 'WVRXl10n', array( 'emptyImport' => esc_html__( 'Please choose a file to import.', 'absolute-weaver' ), ) ); // Config wp_localize_script( 'wvrx-ldth-js', 'WVRXConfig', array( 'customizerURL' => admin_url( 'customize.php' ), 'exportNonce' => wp_create_nonce( 'wvrx-settings-saving' ), ) ); // Enqueue wp_enqueue_style( 'wvrx-ldth-css' ); wp_enqueue_script( 'wvrx-ldth-js' ); } static public function controls_print_scripts() { if ( self::$wvrx_error ) { echo ''; } } } }