From a8c7615013ffa92182712e3a1a495dab7dd7037e Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Wed, 1 Aug 2018 13:21:18 +0200 Subject: [PATCH] Remove welcome page The welcome page will be replaced by a new welcome wizard [MAILPOET-1439] --- assets/img/welcome_template/mailpoet-logo.png | Bin 2925 -> 0 bytes lib/Config/Menu.php | 40 ------ views/welcome.html | 118 ------------------ 3 files changed, 158 deletions(-) delete mode 100644 assets/img/welcome_template/mailpoet-logo.png delete mode 100644 views/welcome.html diff --git a/assets/img/welcome_template/mailpoet-logo.png b/assets/img/welcome_template/mailpoet-logo.png deleted file mode 100644 index b991c61ebbbb6c0175a6c6d03e2102139bf252f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2925 zcmV-z3zGDSP)i zlH54{3`7Jb2Q0)AhuFW2bA^m^D9c?g>ZB5Mu=(XO%`cyVpM#8gF2)rT=PIKfm`BOF;gANa<9#Io8Wi9&F=>w5(4Kz?|Lf8=3u|#o}Y5c zRIaJ8xjqY1tchD5XHoVP%5e}R+k7_)zP)UIqd_DjE`l7ZzL>s+`ms}{Q<}v-RyBwalga4;A&v1lQSaxv%xdXt`@FZdoO{%>O~4_h2cf5;Y(9d!epS3s_C z;Z&ibZ&R!eZD(4sOHrnPKSudn0R_@%lzFyDbE~x|%9%o0(?B2au7hx%q;Il=aF2tp z3)kqxbXC5$Ty`NYfx8^)e2ox)gu?f!u%?7oGVOguTAmQ+S%vRtFQTOHO&oc@AXL2F z|J%Y%KUj;RJjw3QpUEBy>?2UEX)4nh`#zNq^Y_uzNk8ct(QhP&>6!vf{C2{iaaAlQ z&x;*4F)S0}Y*zfWwbF_*pmF*kqTr#pi!wNmMa7;c_>=@(z!(?hQzH0uXL=($QE&Xc zn)z&QNr(L4pfG-IWGdg;ga2<+I~}p#6(-{9fIHY z1FodJ5w(H&h$8(eIL5SN3d)#vNs;#ixFx2dWcn&y-{IN?1Rvj`?d$#n$AjPXF>6;3Q>~H8V znJ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12dk1g^7EFd!cNpl)n_$`ZJ;i$NRd&=u1o2}&9D(XBQ{ zT`BCGPX{I7NP@i;%E1s@oeTlx3D$ZX;q#wPJ*3p7sev?hppi!5Wt;%fRMBwa0I#%g)1|8Z~u95+Wsg4_Q9 XQe)d{t700000NkvXXu0mjf3+0RL 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 %> - -
-

<%= __('Greetings, humans.') %>

- -

<%= __('The new MailPoet. Simply better. And with regular updates.') %>

- - - <% set random = random(2) %> - -
style="display: none;"<% endif %>> -

<%= __('Coming this Fall to a WordPress plugin page near you') %>

-

<%= __('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."') %>

-
-
style="display: none;"<% endif %>> -

<%= __('But first, watch this video') %>

-

<%= __("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...") %>

-
-
style="display: none;"<% endif %>> -

<%= __('Explanatory videos are boring, we know') %>

-

<%= __("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.") %>

-
- -
-
- -
-
- -
- -
-
-

<%= __('Documentation Is One Click Away') %>

-

<%= __('Simply click on the blue circle in the bottom right corner of any of the MailPoet pages to access our documentation.') %> <%= __('Voilà!') %> -

-
-

<%= __('Sharing is Caring') %>

-

<%= __("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') %> → -

- -

-
-
- -
- - - -
- - - -<% endblock %>