WYSIJA_view_back_premium

The MailPoet Newsletters WYSIJA view back premium class.

Defined (1)

The class is defined in the following location(s).

/views/back/premium.php  
  1. class WYSIJA_view_back_premium extends WYSIJA_view_back{ 
  2. function __construct() { 
  3. $this->skip_header =true; 
  4.  
  5.  
  6. function defaultDisplay($data) { 
  7. $model_config = WYSIJA::get('config', 'model'); 
  8. $time_install = $model_config->getValue('installed_time'); 
  9.  
  10. // we display the even installed_time with kim's version and the odd with ben's 
  11. if($time_install % 2 == 0) $this->premium_kim(); 
  12. else $this->premium_ben(); 
  13.  
  14.  
  15. function premium_kim() { 
  16. ?> 
  17.  
  18. <div class="wrap about-wrap"> 
  19.  
  20. <h1><?php echo __('The Sweeter Experience of our Premium', WYSIJA ); ?></h1> 
  21. <hr> 
  22. <div class="changelog"> 
  23. <h2 class="about-headline-callout"><?php _e( 'All Your Stats in a Single Dashboard', WYSIJA ); ?></h2> 
  24. <img class="about-overview-img" src="http://ps.w.org/wysija-newsletters/assets/premium_va/stats-dashboard.png" /> 
  25.  
  26. <p style="text-align:center"><a target="_blank" href="http://www.mailpoet.com/wp-content/uploads/2014/04/stats-page-screenshot.png"><?php _e( 'View full screenshot', WYSIJA) ?></a> (new tab).</p> 
  27.  
  28. <div class="feature-section col three-col about-updates"> 
  29. <div class="col-1"> 
  30. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/stat1.png" /> 
  31. <h3><?php _e( 'Have fun improving', WYSIJA ); ?></h3> 
  32. <p><?php _e( 'See your top newsletters, top subscribers, top links, top lists, and top domains on one screen. Can you beat your past newsletters?', WYSIJA ); ?></p> 
  33. </div> 
  34. <div class="col-2"> 
  35. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/stat3.png" /> 
  36. <h3><?php _e( 'Increase your subscribers', WYSIJA ); ?></h3> 
  37. <p><?php _e( 'Does my sidebar form get more subscribers than the one in the footer? It\'s time to find out.', WYSIJA ); ?></p> 
  38. </div> 
  39. <div class="col-3 last-feature"> 
  40. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/stat2.png" /> 
  41. <h3><?php _e( 'Compare past & present', WYSIJA ); ?></h3> 
  42. <p><?php _e( 'Are you doing better now than 3 months ago? Select a date range to reveal changes in your results.', WYSIJA ); ?></p> 
  43. </div> 
  44. </div> 
  45. </div> <!-- div changelog --> 
  46.  
  47. <hr> 
  48.  
  49. <div class="changelog"> 
  50. <div class="feature-section col two-col"> 
  51. <div> 
  52. <h3><?php _e( 'Reach their inboxes', WYSIJA ); ?></h3> 
  53.  
  54. <p><?php echo str_replace(array('[link]', '[/link]'), array('<a href="http://www.mail-tester.com/?utm_source=mailpoet&utm_campaign=premiumpage" target="_blank">', '</a>'), __('Get your spam score in 1 click while you\'re designing your newsletter thanks to [link]mail-tester[/link], our own popular in-house tool.', WYSIJA)); ?></p> 
  55.  
  56. <h4><?php _e( 'Spam filters love DKIM', WYSIJA ); ?></h4> 
  57.  
  58. <p><?php echo str_replace(array('[link]', '[/link]'), array('<a href=http://support.mailpoet.com/knowledgebase/guide-to-dkim-in-wysija/?utm_source=wpadmin&utm_campaign=premiumpage" target="_blank">', '</a>'), __('Add a DKIM signature to your newsletters to increase the deliverability of your newsletters. [link]Read the setup guide.[/link]', WYSIJA)); ?></p> 
  59.  
  60. </div> 
  61. <div class="last-feature about-colors-img"> 
  62. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/reach-inbox.png" /> 
  63. </div> 
  64. </div> 
  65. </div> 
  66.  
  67.  
  68. <hr> 
  69. <div class="changelog"> 
  70. <div class="feature-section col three-col about-updates"> 
  71. <div class="col-1"> 
  72. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/configuration.png" /> 
  73. <h3><?php _e( 'Let us configure it', WYSIJA ); ?></h3> 
  74. <p><?php _e( 'Our international and friendly team will help you optimize your settings in details, and make sure you\'re all good to go. We answer questions under 10h on average. Pretty fast!', WYSIJA ); ?></p> 
  75. </div> 
  76. <div class="col-2"> 
  77. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/auto-bounce.png" /> 
  78. <h3><?php _e( 'Automate the boring stuff', WYSIJA ); ?></h3> 
  79.  
  80. <p><?php echo str_replace(array('[link]', '[/link]'), array('<a href="http://support.wysija.com/knowledgebase/automated-bounce-handling-install-guide/?utm_source=wpadmin&utm_campaign=premiumpage" target="_blank">', '</a>'), __('Let the plugin remove the <strong>bounced and invalid addresses</strong> automatically. [link]See the guide.[/link]', WYSIJA)); ?></p> 
  81.  
  82. <p><?php _e( 'Moreover, MailPoet checks every 15 minutes your site, <strong>just like a "cron" job</strong>, to make sure your emails are being sent on time. No setup involved!', WYSIJA ); ?></p> 
  83.  
  84. </div> 
  85. <div class="col-3 last-feature"> 
  86. <img src="http://ps.w.org/wysija-newsletters/assets/premium_va/meow.png" /> 
  87. <h3><?php _e( '30 day money back', WYSIJA ); ?></h3> 
  88. <p><?php _e( 'A great way to try the Premium. No one should be locked in, ever.', WYSIJA ); ?></p> 
  89. <p><?php _e( 'The kitten is just to fill the blank space. He looks hungry, no? We love kittens.', WYSIJA ); ?></p> 
  90. </div> 
  91. </div> 
  92. </div> 
  93.  
  94.  
  95. <hr> 
  96.  
  97. <div class="changelog"> 
  98. <div class="feature-section col two-col"> 
  99. <div> 
  100. <h3><?php _e( 'No more limits of 2000 subscribers', WYSIJA ); ?></h3> 
  101. <p><?php _e('The free version blocks the sending of your newsletters when you have 2000 confirmed subscribers. The Premium removes this limit.', WYSIJA); ?></p> 
  102. </div> 
  103. </div> 
  104. </div> 
  105.  
  106. <hr> 
  107.  
  108. <div class="changelog"> 
  109. <div class="feature-section col two-col"> 
  110. <div> 
  111. <h3><?php _e( 'And more...', WYSIJA ); ?></h3> 
  112.  
  113. <ul> 
  114. <li><?php _e('Find out what happens to your subscribers once they arrive on your site, thanks to Google Analytics campaign tracking', WYSIJA); ?></li> 
  115. <li><?php _e('Detailed stats for each subscriber', WYSIJA); ?></li> 
  116. <li><?php _e('Stats of clicked links for each newsletter', WYSIJA); ?></li> 
  117. </ul> 
  118.  
  119. </div> 
  120. </div> 
  121. </div> 
  122.  
  123. <div id="prices_table"> 
  124. <div class="fullwidth" id="prices_main"> 
  125. <div class="fullwidth" id="prices_names"> 
  126. <div class="one-third blogger"> 
  127. <h3><?php _e('Blogger', WYSIJA) ?></h3> 
  128. </div> 
  129. <div class="one-third freelance"> 
  130. <h3><?php _e('Freelance', WYSIJA) ?></h3> 
  131. </div> 
  132. <div class="one-third agency"> 
  133. <h3><?php _e('Agency', WYSIJA) ?></h3> 
  134. </div> 
  135. <div class="clearfix"></div> 
  136. </div><!-- /#prices_names --> 
  137. <?php 
  138. $prices = $this->get_prices(); 
  139. ?> 
  140. <div class="fullwidth" id="prices_cost"> 
  141. <div class="one-third blogger"> 
  142. <p class="dollars"><?php echo $prices['blogger'] ?></p> 
  143. <p class="per_year"><?php _e('per year', WYSIJA) ?></p> 
  144. </div> 
  145. <div class="one-third frelance"> 
  146. <p class="dollars"><?php echo $prices['freelancer'] ?></p> 
  147. <p class="per_year"><?php _e('per year', WYSIJA) ?></p> 
  148. </div> 
  149. <div class="one-third agency"> 
  150. <p class="dollars"><?php echo $prices['agency'] ?></p> 
  151. <p class="per_year"><?php _e('per year', WYSIJA) ?></p> 
  152. </div> 
  153. <div class="clearfix"></div> 
  154. </div><!-- /#prices_cost --> 
  155. <div class="fullwidth" id="prices_description"> 
  156. <div class="one-third blogger"> 
  157. <span><?php _e('Single Site', WYSIJA) ?></span> 
  158. </div> 
  159. <div class="one-third frelance"> 
  160. <span><?php _e('Four Sites', WYSIJA) ?></span> 
  161. </div> 
  162. <div class="one-third agency"> 
  163. <span><?php _e('Unlimited Sites', WYSIJA) ?></span> 
  164. <p><?php _e('Multisite ready.', WYSIJA) ?></p> 
  165. </div> 
  166. <div class="clearfix"></div> 
  167. </div><!-- /#prices_description --> 
  168. <div class="clearfix"></div> 
  169. </div><!-- /#prices_main --> 
  170. </div><!-- /#prices_table --> 
  171. <br> 
  172. <br> 
  173. <?php 
  174. $helper_licence = WYSIJA::get('licence', 'helper'); 
  175. $url_checkout = $helper_licence->get_url_checkout('a_buy_now'); 
  176. ?> 
  177. <a class="buy-button" target="_blank" href="<?php echo $url_checkout; ?>" title="3 steps checkout"><span><?php _e('Buy Now', WYSIJA) ?></span></a> 
  178. <div class="clearfix"></div> 
  179. <div class="wysija-premium-actions-kim"> 
  180. <?php echo $this->messages(); ?> 
  181. <p><?php _e('Already paid?', WYSIJA); ?> <a class="button-primary wysija-premium-activate" href="javascript:;"><?php echo __('Activate now', WYSIJA); ?></a></p> 
  182. </div> 
  183. <div class="clearfix"></div> 
  184. <p><?php echo str_replace(array('[link]', '[/link]'), array('<a href="http://www.mailpoet.com/contact/?utm_source=wpadmin&utm_campaign=premiumpage" target="_blank">', '</a>'), __('Got a sales question? [link]Get in touch[/link].', WYSIJA)); ?></p> 
  185.  
  186. </div><!-- /#about-wrap --> 
  187.  
  188. <?php 
  189.  
  190.  
  191. function premium_ben() { 
  192. $helper_licence = WYSIJA::get('licence', 'helper'); 
  193. $arrayPremiumBullets = array( 
  194. array( 
  195. 'key' => 'more_stats',  
  196. 'title' => __('Monitor everything with more stats', WYSIJA),  
  197. 'desc' => __('Looking for answers? Why such and such campaign worked so well? Which is your most efficient subscription form? Get a clear picture with our brand new stats dashboard! [link]Get the stats dashboard in Premium.[/link]', WYSIJA),  
  198. 'class' => 'new',  
  199. 'link' => $helper_licence->get_url_checkout('b_more_stats'),  
  200. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/stat-dash.jpg',  
  201. ),  
  202. array( 
  203. 'key' => 'bounce_service',  
  204. 'title' => __('Clean automatically your mailing list', WYSIJA),  
  205. 'desc' => __('Send like a PRO and keep your server\'s sending reputation HIGH. Thanks to our advanced list cleaning tool, you can finally avoid sending to old or invalid email addresses. [link]Keep your list clean with Premium.[/link]', WYSIJA),  
  206. 'link' => $helper_licence->get_url_checkout('b_bounce_service'),  
  207. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/automated-bounce.jpg',  
  208. ),  
  209. array( 
  210. 'key' => 'cron_service',  
  211. 'title' => __('Send at a higher frequency', WYSIJA),  
  212. 'desc' => __('Did you know? It\'s better to send fewer emails at higher frequencies. Become Premium and we\'ll ping your site each 15 minutes making sure your emails are sent smoothly at this frequency. [link]Send better with Premium.[/link]', WYSIJA),  
  213. 'link' => $helper_licence->get_url_checkout('b_cron_service'),  
  214. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/scheduled-on-time.jpg',  
  215. ),  
  216. array( 
  217. 'key' => 'no_more_2000_limit',  
  218. 'title' => __('Forget about limits', WYSIJA),  
  219. 'desc' => __('Remove the 2000 subscribers limit of the free version, and send to as many subscribers as you wish. [link]Get rid of that limit![/link]', WYSIJA),  
  220. 'link' => $helper_licence->get_url_checkout('b_no_more_2000_limit'),  
  221. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/no-limit.jpg',  
  222. ),  
  223. array( 
  224. 'key' => 'more_user_stats',  
  225. 'title' => __('Investigate your top subscribers', WYSIJA),  
  226. 'desc' => __('Discover which links are the top hits in each newsletter. Find out which subscribers are your number one fans and get advanced details about them. [link]Get more data with Premium.[/link]', WYSIJA),  
  227. 'link' => $helper_licence->get_url_checkout('b_more_user_stats'),  
  228. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/subscriber-stats.jpg',  
  229. ),  
  230. array( 
  231. 'key' => 'faster_support',  
  232. 'title' => __('Get faster support', WYSIJA),  
  233. 'desc' => __('Skip the queue, go straight to our priority inbox. [link]Get faster support with Premium.[/link]', WYSIJA),  
  234. 'link' => $helper_licence->get_url_checkout('b_faster_support'),  
  235. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/fast-support.jpg',  
  236. ),  
  237. array( 
  238. 'key' => 'more_themes',  
  239. 'title' => __('Get more themes', WYSIJA),  
  240. 'desc' => __('Not good at matching colors? Don\'t worry, we work with top notch designers to provide you plenty of themes, the newest are Premium exclusives. [link]Get more themes in Premium.[/link]', WYSIJA),  
  241. 'link' => $helper_licence->get_url_checkout('b_more_themes'),  
  242. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/more-themes.jpg',  
  243. ),  
  244. array( 
  245. 'key' => 'ga_track',  
  246. 'title' => __('Track your readers within Google Analytics', WYSIJA),  
  247. 'desc' => __('Verify what your subscribers do once you drove them onto your site and improve your retention rate. [link]Track your readers with GA in Premium.[/link]', WYSIJA),  
  248. 'link' => $helper_licence->get_url_checkout('b_ga_track'),  
  249. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/google-analytics.jpg',  
  250. ),  
  251.  
  252. array( 
  253. 'key' => '30days_no_stress',  
  254. 'title' => __('30 days happiness guarantee', WYSIJA),  
  255. 'desc' => __('Still having doubts about our product and our team of 9? No stress, we\'re confident enough to give you 30 days to try it out. We\'ll refund you in an instant if you are not happy. [link]Become Premium now without stress.[/link]', WYSIJA),  
  256. 'link' => $helper_licence->get_url_checkout('b_30days_no_stress'),  
  257. 'img' => 'http://ps.w.org/wysija-newsletters/assets/premium_vb/money-back.jpg',  
  258. ),  
  259. ); 
  260.  
  261. // BEGIN: premium content 
  262. $output = '<div id="premium-content-b" class="about-wrap mpoet-page">'; 
  263.  
  264. // BEGIN: premium features 
  265. $output.= '<h1>' . __('Be productive thanks to Premium!', WYSIJA) . '</h1>'; 
  266.  
  267. $chunks = array_chunk($arrayPremiumBullets, 3); 
  268. $helper_quick_html = WYSIJA::get('quick_html', 'helper'); 
  269.  
  270. foreach ($chunks as $array_chunks) { 
  271. $output .= '<div class="changelog"><div class="feature-section col three-col about-updates">'; 
  272. $output .= $helper_quick_html->three_arguments($array_chunks, true); 
  273. $output .= '</div></div>'; 
  274. $prices = $this->get_prices(); 
  275.  
  276. $output .= '<hr/><h2 class="pick-licence">'.__('We have 3 different licences available to fit your needs:', WYSIJA).'</h2>'; 
  277. $output.= '<div class="feature-section col three-col about-updates"> 
  278. <div class="col-1 no_more_2000_limit"> 
  279. <h3>'.__('Blogger', WYSIJA).'</h3> 
  280. <p>'.sprintf(__('For %s per year, get 1 site covered with Premium.', WYSIJA), '<span class="price">'.$prices['blogger'].'</span>').'</p> 
  281. <p><a href="'.$helper_licence->get_url_checkout('b_buy_blogger').'" class="licence button-primary wysija-premium-purchase" title="Valid for 1 site">'.__('Get it now!', WYSIJA).'</a></p> 
  282. </div><div class="col-2 more_user_stats"> 
  283. <h3>'.__('Freelancer', WYSIJA).'</h3> 
  284. <p>'.sprintf(__('For %s per year, get 4 of your sites covered with Premium.'), '<span class="price">'.$prices['freelancer'].'</span>').'</p> 
  285. <p><a href="'.$helper_licence->get_url_checkout('b_buy_freelance').'" class="licence button-primary wysija-premium-purchase" title="Valid for 4 sites">'.__('Get it now!', WYSIJA).'</a></p> 
  286. </div> 
  287.  
  288. <div class="col-3 faster_support last-feature"> 
  289. <h3>'.__('Agency', WYSIJA).'</h3> 
  290. <p>'.sprintf(__('For %s per year, get all of your sites covered with Premium.'), '<span class="price">'.$prices['agency'].'</span>').'</p> 
  291. <p><a href="'.$helper_licence->get_url_checkout('b_buy_agency').'" class="licence button-primary wysija-premium-purchase" title="Valid for an unlimited number of sites">'.__('Get it now!', WYSIJA).'</a></p> 
  292. </div></div>'; 
  293.  
  294.  
  295. // END: premium features 
  296. // BEGIN: premium actions 
  297. $output.= '<div class="wysija-premium-actions">'; 
  298. $output .= $this->messages(); 
  299. $output.= '<p>'; 
  300. $output.= '<span class="conditions">'.str_replace(array('[link]', '[/link]'), array('<a href="http://support.mailpoet.com/terms-conditions/?utm_source=wpadmin&utm_campaign=premiumtab" target="_blank">', '</a>'), __('Read our simple and easy [link]terms and conditions.[/link]', WYSIJA)).'</span>' ; 
  301. $output .= '<a class="button-primary wysija-premium-activate" href="javascript:;">' . __('Already paid? Click here to activate', WYSIJA) . '</a>'; 
  302. $output.= '</p></div>'; 
  303. // END: premium actions 
  304. // END: premium content 
  305. $output.= '</div>'; 
  306.  
  307. echo $output; 
  308.  
  309. function get_prices() { 
  310. $prices = array(); 
  311. $helper_toolbox = WYSIJA::get('toolbox' , 'helper'); 
  312.  
  313. if($helper_toolbox->is_european()) { 
  314. $prices['blogger'] = '75*'; 
  315. $prices['freelancer'] = '189*'; 
  316. $prices['agency'] = '299*'; 
  317. $this->is_european = true; 
  318. }else{ 
  319. $prices['blogger'] = '$99'; 
  320. $prices['freelancer'] = '$249'; 
  321. $prices['agency'] = '$399'; 
  322. $this->is_european = false; 
  323. return $prices;