AbstractAutomationEmbed.php
5 months ago
Automation.php
2 years ago
AutomationAnalytics.php
2 months ago
AutomationEditor.php
2 months ago
AutomationFlowEmbed.php
5 months ago
AutomationPreviewEmbed.php
2 months ago
AutomationTemplates.php
2 years ago
CustomFields.php
2 months ago
DynamicSegments.php
2 months ago
ExperimentalFeatures.php
3 years ago
FormEditor.php
1 week ago
Forms.php
2 months ago
Help.php
2 months ago
Homepage.php
2 years ago
Landingpage.php
2 years ago
Logs.php
1 month ago
NewsletterEditor.php
2 months ago
Newsletters.php
2 months ago
Settings.php
5 months ago
StaticSegments.php
2 months ago
Subscribers.php
1 week ago
SubscribersExport.php
3 years ago
SubscribersImport.php
2 months ago
Tags.php
2 months ago
Upgrade.php
1 year ago
WelcomeWizard.php
2 months ago
WooCommerceSetup.php
2 months ago
index.php
3 years ago
Upgrade.php
33 lines
| 1 | <?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing |
| 2 | |
| 3 | namespace MailPoet\AdminPages\Pages; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\AdminPages\PageRenderer; |
| 9 | use MailPoet\WP\Functions as WPFunctions; |
| 10 | |
| 11 | class Upgrade { |
| 12 | /** @var PageRenderer */ |
| 13 | private $pageRenderer; |
| 14 | |
| 15 | /** @var WPFunctions */ |
| 16 | private $wp; |
| 17 | |
| 18 | public function __construct( |
| 19 | PageRenderer $pageRenderer, |
| 20 | WPFunctions $wp |
| 21 | ) { |
| 22 | $this->pageRenderer = $pageRenderer; |
| 23 | $this->wp = $wp; |
| 24 | } |
| 25 | |
| 26 | public function render() { |
| 27 | $data = [ |
| 28 | 'current_wp_user' => $this->wp->wpGetCurrentUser()->to_array(), |
| 29 | ]; |
| 30 | $this->pageRenderer->displayPage('upgrade_tiers.html', $data); |
| 31 | } |
| 32 | } |
| 33 |