base) ) { wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array()); }elseif(('mep_events_page_mep_event_import_page' == $current_screen->base)){ wp_enqueue_style('mep-welcome-style', plugin_dir_url(__DIR__) . 'inc/welcome/css/welcome.css', array()); }else{ return; } } //Add admin page to the menu add_action('admin_menu', 'mep_event_welcome_admin_menu'); function mep_event_welcome_admin_menu() { add_submenu_page('edit.php?post_type=mep_events', __('Welcome', 'mage-eventpress'), __('Welcome', 'mage-eventpress'), 'manage_options', 'mep_event_welcome_page', 'mep_event_welcome_page'); add_submenu_page('edit.php?post_type=mep_events', __('Quick Setup', 'mage-eventpress'), __('Quick Setup', 'mage-eventpress'), 'manage_options', 'mep_event_quick_setup_page', 'mep_event_quick_setup_page'); add_submenu_page('edit.php?post_type=mep_events', __('Dummy Import', 'mage-eventpress'), __('Dummy Import', 'mage-eventpress'), 'manage_options', 'mep_event_import_page', 'mep_event_import_page'); } function mep_event_quick_setup_page(){ require_once(dirname(__DIR__) . "/inc/quick_setup.php"); } function mep_event_welcome_page() { ?>
'; require_once(dirname(__DIR__) . "/inc/welcome/welcome.php"); echo '
'; break; case 'kwb': echo '
'; require_once(dirname(__DIR__) . "/inc/welcome/support.php"); echo '
'; break; case 'import': echo '
'; require_once(dirname(__DIR__) . "/inc/welcome/import.php"); echo '
'; break; default: echo '
'; require_once(dirname(__DIR__) . "/inc/welcome/welcome.php"); echo '
'; break; endswitch; ?>
'; require_once(dirname(__DIR__) . "/inc/welcome/import.php"); echo '
'; ?>