diff --git a/lib/Config/Menu.php b/lib/Config/Menu.php index b40fa60b53..0072f29d73 100644 --- a/lib/Config/Menu.php +++ b/lib/Config/Menu.php @@ -165,6 +165,20 @@ class Menu { 'settings' ) ); + + // Only show this page in menu if the Premium plugin is not activated + add_submenu_page( + License::getLicense() ? true : $main_page_slug, + $this->setPageTitle(__('Premium', 'mailpoet')), + __('Premium', 'mailpoet'), + Env::$required_permission, + 'mailpoet-premium', + array( + $this, + 'premium' + ) + ); + add_submenu_page( 'admin.php?page=mailpoet-subscribers', $this->setPageTitle(__('Import', 'mailpoet')), @@ -299,6 +313,16 @@ class Menu { $this->displayPage('update.html', $data); } + function premium() { + $data = array( + 'subscriber_count' => Subscriber::getTotalSubscribers(), + 'sub_menu' => 'mailpoet-newsletters' + ); + + $this->displayPage('premium.html', $data); + } + + function settings() { if($this->subscribers_over_limit) return $this->displaySubscriberLimitExceededTemplate(); diff --git a/views/premium.html b/views/premium.html new file mode 100644 index 0000000000..8c85f0d7fa --- /dev/null +++ b/views/premium.html @@ -0,0 +1,130 @@ +<% extends 'layout.html' %> + +<% block content %> + +
<%= __("Detailed statistics, actionable insights, awesome deliverability, plus great support!") %>
+ +<%= __("Which links get the most clicks? Which subscribers opened your emails? With MailPoet's stats program, it's easy to find out. Need even more details? Integrating with Google Analytics is as easy as 1-2-3.") %>
+<%= __("The MailPoet Sending Service's delivery rate is over 98%: one of the best in the industry! Our in-house sending service is constantly monitored, tweaked, and improved to make sure that your emails arrive successfully.") %>
++ | <%= __("MailPoet") %> | +<%= __("Web host") %> | +<%= __("Third party") %> | +
<%= __("Speed") %> | +<%= __("50,000 / hour") %> | +<%= __("300 / hour") %> | +<%= __("2,000 / hour") %> | +
<%= __("Daily email limits") %> | +<%= __("None") %> | +<%= __("Yes") %> | +<%= __("Depends") %> | +
<%= __("Personal deliverability support") %> | +<%= __("Yes!") %> | +<%= __("No") %> | +<%= __("No") %> | +
<%= __("SPF and DKIM Signatures") %> | +<%= __("No need!") %> | +<%= __("Update your DNS") %> | +<%= __("Depends") %> | +
<%= __("Double opt-in") %> | +<%= __("Enforced") %> | +<%= __("Not enforced") %> | +<%= __("Depends") %> | +
+ + <%= __("View full comparison table") %> + + | ++ | + | + |
<%= __("Spammers are ineligible to use the MailPoet Sending Service. We reserve the right to cancel any sending plan if we detect more than 5% hard bounces. [link]Customers are required to clean their lists before joining MailPoet[/link].") + |replace({ + '[link]': '', + '[/link]': '' + }) + |raw + %>
+<%= __("Want to send autoresponders and welcome emails to your subscribers? In MailPoet, it’s easy as 1-2-3. Create welcome emails, educational courses, and other automatic email newsletters.") %>
+<%= __("We pride ourselves on giving nearly round-the-clock support. Our remote team spans several continents, hemispheres, and time-zones! If you’ve got a problem, we will help you fix it!") %>
+<%= __("Our plans start at just $10 per month. Each plan offers unlimited emails. Pricing scales up with the size of your list.") %>
+<%= __("Don't need to use our sending service? Not a problem; we understand. You can also [link]buy the Premium[/link] features separately. Prices start at $100 per year for 1 website, $249 for 4 sites and $499 for an unlimited number of sites.") + |replace({ + '[link]': '', + '[/link]': '' + }) + |raw + %>
+