display('Name'), esc_html__('About', 'education-master') . ' ' . $theme->display('Name'), 'activate_plugins', 'edm-welcome', array( $this, 'welcome_screen' )); add_action('admin_print_styles-' . $page, array($this, 'enqueue_styles')); } /** * Enqueue styles. */ public function enqueue_styles() { global $education_master_version; wp_enqueue_style('edm-welcome-admin', get_template_directory_uri() . '/core/admin/css/welcome-admin.css', array(), $education_master_version); } /** * Add admin notice. */ public function admin_notice() { global $education_master_version, $pagenow; wp_enqueue_style('edm-message', get_template_directory_uri() . '/core/admin/css/admin-notices.css', array(), $education_master_version); // Let's bail on theme activation. if ('themes.php' == $pagenow && isset($_GET['activated'])) { add_action('admin_notices', array($this, 'welcome_notice')); update_option('education_master_admin_notice_welcome', 1); // No option? Let run the notice wizard again.. } elseif (!get_option('education_master_admin_notice_welcome')) { add_action('admin_notices', array($this, 'welcome_notice')); } } /** * Hide a notice if the GET variable is set. */ public static function hide_notices() { if (isset($_GET['edm-hide-notice']) && isset($_GET['_education_master_notice_nonce'])) { if (!wp_verify_nonce(wp_unslash($_GET['_education_master_notice_nonce']), 'education_master_hide_notices_nonce')) { wp_die(esc_html__('Action failed. Please refresh the page and retry.', 'education-master')); } if (!current_user_can('manage_options')) { wp_die(esc_html__('Cheatin’ huh?', 'education-master')); } $hide_notice = sanitize_text_field(wp_unslash($_GET['edm-hide-notice'])); update_option('education_master_admin_notice_' . $hide_notice, 1); } } /** * Show welcome notice. */ public function welcome_notice() { ?>

', ''); ?>

display('Name')); ?>

display('Description')); ?>

{$current_tab . '_screen'}(); } // Fallback to about screen. return $this->about_screen(); } /** * Output the about screen. */ public function about_screen() { $theme = wp_get_theme(get_template()); ?>
intro(); ?>

display('Name'); ?>

display('Name'); ?>

|
intro(); ?>

get_contents($changelog_file); $changelog_list = $this->parse_changelog($changelog); echo wp_kses_post($changelog_list); } ?>
intro(); ?>

'; foreach ($changes as $index => $line) { $changelog .= wp_kses_post(preg_replace('~(=\s*Version\s*(\d+(?:\.\d+)+)\s*=|$)~Uis', '${1}', $line)); } $changelog .= ''; } return wp_kses_post($changelog); } /** * Output the supported plugins screen. */ public function supported_plugins_screen() { ?>
intro(); ?>