diff --git a/assets/img/welcome_template/mailpoet-logo.png b/assets/img/welcome_template/mailpoet-logo.png deleted file mode 100644 index b991c61ebb..0000000000 Binary files a/assets/img/welcome_template/mailpoet-logo.png and /dev/null differ diff --git a/lib/Config/Menu.php b/lib/Config/Menu.php index cb721e830e..15b92111c0 100644 --- a/lib/Config/Menu.php +++ b/lib/Config/Menu.php @@ -278,19 +278,6 @@ class Menu { ) ); - // Welcome page - add_submenu_page( - true, - $this->setPageTitle(__('Welcome', 'mailpoet')), - __('Welcome', 'mailpoet'), - AccessControl::PERMISSION_ACCESS_PLUGIN_ADMIN, - 'mailpoet-welcome', - array( - $this, - 'welcome' - ) - ); - // Update page add_submenu_page( true, @@ -323,33 +310,6 @@ class Menu { remove_action('admin_print_styles', 'print_emoji_styles'); } - function welcome() { - if((bool)(defined('DOING_AJAX') && DOING_AJAX)) return; - - global $wp; - $current_url = home_url(add_query_arg($wp->query_string, $wp->request)); - $redirect_url = - (!empty($_GET['mailpoet_redirect'])) - ? urldecode($_GET['mailpoet_redirect']) - : wp_get_referer(); - - if( - $redirect_url === $current_url - or - strpos($redirect_url, 'mailpoet') === false - ) { - $redirect_url = admin_url('admin.php?page=' . self::MAIN_PAGE_SLUG); - } - - $data = array( - 'settings' => Setting::getAll(), - 'current_user' => wp_get_current_user(), - 'redirect_url' => $redirect_url, - 'sub_menu' => self::MAIN_PAGE_SLUG - ); - $this->displayPage('welcome.html', $data); - } - function migration() { $mp2_migrator = new MP2Migrator($this->access_control); $mp2_migrator->init(); diff --git a/views/welcome.html b/views/welcome.html deleted file mode 100644 index ca386af575..0000000000 --- a/views/welcome.html +++ /dev/null @@ -1,118 +0,0 @@ -<% extends 'layout.html' %> - -<% block content %> - -
<%= __('The new MailPoet. Simply better. And with regular updates.') %>
-<%= __('The highly-anticipated sequel to Dead Poets Society, Introduction to MailPoet will keep you on the edge of your seat. "Five out of five stars," says Rafael Ehlers, MailPoet Support Manager. "A must-watch for aspiring email poets."') %>
-<%= __("Wait a second. Don't click that big blue button just yet. Yeah, we're talking to you. Before you do anything, you should really watch this video. It won't change your life, but it will save you (and our support team) a ton of time. And what is life without time? So, maybe it is life-changing, after all...") %>
-<%= __("But this video is really important! We promise. Over the course of three minutes, you'll learn how to send your first newsletter, manage your lists, make billions of dollars and live happily ever after. That's right – it's that good. So get watching.") %>
-<%= __('Simply click on the blue circle in the bottom right corner of any of the MailPoet pages to access our documentation.') %> <%= __('Voilà!') %> -
<%= __("By sharing your data anonymously with us, you can help us understand how people use MailPoet and what sort of features they like and don't like.") %> <%= __('Find out more') %> →
-
-
-