theme_name = $theme->Name; $this->theme_version = $theme->Version; /* Enqueue Styles & Scripts for Welcome Page */ add_action('admin_enqueue_scripts', array($this, 'welcome_styles_and_scripts')); /* Hide Notice */ add_filter('wp_loaded', array($this, 'hide_admin_notice'), 10); /* Create a Welcome Page */ add_action('wp_loaded', array($this, 'admin_notice'), 20); add_action('aspace_theme_name_after', array($this, 'aspace_theme_name')); add_action('aspace_theme_version_after', array($this, 'aspace_theme_version')); add_action('after_switch_theme', array($this, 'erase_hide_notice')); } public function aspace_theme_name() { $theme = wp_get_theme(); return $theme->name; } public function aspace_theme_version() { $theme = wp_get_theme(); return $theme->version; } /** Trigger Welcome Message Notification */ public function admin_notice() { $hide_notice = get_option('aspace_hide_notice'); if (!$hide_notice) { add_action('admin_notices', array($this, 'admin_notice_content')); } } /** Welcome Message Notification */ public function admin_notice_content() { $screen = get_current_screen(); if ('appearance_page_aspace-welcome' === $screen->id || (isset($screen->parent_file) && 'plugins.php' === $screen->parent_file && 'update' === $screen->id) || 'theme-install' === $screen->id) { return; } $slug = $filename = 'aspace-demo-importer'; ?>
version, $this->theme_name); ?>
version, $this->theme_name); ?>
The Aspace Theme Option Module is installed and activated.In the documentation below you will find an easy way to build a great looking landing page using a drag-and-drop content builder plugin.