my_theme = wp_get_theme(); // Get theme data object. if ( 'Ascend' === $this->my_theme->get( 'Name' ) || 'ascend' === $this->my_theme->get( 'Template' ) ) { $this->theme_name = 'Ascend'; $this->theme_title = 'Ascend Theme'; } elseif ( 'Virtue' === $this->my_theme->get( 'Name' ) || 'virtue' === $this->my_theme->get( 'Template' ) ) { $this->theme_name = 'Virtue'; $this->theme_title = 'Virtue Theme'; } elseif ( 'Pinnacle' === $this->my_theme->get( 'Name' ) || 'pinnacle' === $this->my_theme->get( 'Template' ) ) { $this->theme_name = 'Pinnacle'; $this->theme_title = 'Pinnacle Theme'; } else { $this->theme_name = 'Not Kadence'; $this->theme_title = 'Not Kadence'; } if ( 'Not Kadence' !== $this->theme_name ) { add_action( 'admin_menu', array( $this, 'add_menu' ) ); add_action( 'tgmpa_register', array( $this, 'register_importer' ), 30 ); add_filter( 'plugin_action_links_virtue-toolkit/virtue_toolkit.php', array( $this, 'add_settings_link' ) ); } add_action( 'wp_ajax_kadence_import_plugin', array( $this, 'ajax_install_import_plugin' ), 10, 0 ); add_action( 'admin_init', array( $this, 'load_tgmpa_installer' ), 1 ); } } /** * Load Installer */ public function load_tgmpa_installer() { if ( class_exists( 'TGM_Plugin_Activation' ) ) { $this->tgmpa = isset( $GLOBALS['tgmpa'] ) ? $GLOBALS['tgmpa'] : TGM_Plugin_Activation::get_instance(); } } /** * Add option page menu */ public function add_menu() { $page = add_theme_page( __( 'Getting Started with: ', 'virtue-toolkit' ) . $this->theme_name, esc_html__( 'Getting Started', 'virtue-toolkit' ), 'manage_options', 'kadence_welcome_page', array( $this, 'config_page' ) ); add_action( 'admin_print_styles-' . $page, array( $this, 'css_scripts' ) ); } /** * Loads admin style sheets */ public function css_scripts() { wp_enqueue_style( 'toolkit-welcome-css', VIRTUE_TOOLKIT_URL . '/welcome/toolkit-welcome.css', array(), $this->version, 'all' ); wp_enqueue_script( 'toolkit-welcome-js', VIRTUE_TOOLKIT_URL . '/welcome/toolkit-welcome.js', array( 'jquery' ), $this->version, true ); wp_localize_script( 'toolkit-welcome-js', 'toolkit_welcome_params', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'wpnonce' => wp_create_nonce( 'install-plugin_kadence-importer' ), ) ); } /** * Loads config page */ public function config_page() { if ( 'Not Kadence' === $this->theme_name ) { ?>
Build Custom layouts for your products in WooCommerce using the amazing Elementor page building experience. You can work inside one product or build templates that you can assign to multiple products.
Learn More
This plugin lets you easily customize the default transactional WooCommerce email templates. Edit the design using the native WordPress customizer for instant visual edits. Customize the text (including body text) or each email template in WooCommerce without editing code.
Learn More
Build Custom layouts for your products in WooCommerce using the amazing Elementor page building experience. You can work inside one product or build templates that you can assign to multiple products.
Learn More
This plugin lets you easily customize the default transactional WooCommerce email templates. Edit the design using the native WordPress customizer for instant visual edits. Customize the text (including body text) or each email template in WooCommerce without editing code.
Learn More