<?php namespace MailPoet\AdminPages\Pages; if (!defined('ABSPATH')) exit; use MailPoet\AdminPages\PageRenderer; use MailPoet\Util\License\Features\Subscribers as SubscribersFeature; use MailPoet\WP\Functions as WPFunctions; class Premium { /** @var PageRenderer */ private $pageRenderer; /** @var WPFunctions */ private $wp; /** @var SubscribersFeature */ private $subscribersFeature; public function __construct( PageRenderer $pageRenderer, WPFunctions $wp, SubscribersFeature $subscribersFeature ) { $this->pageRenderer = $pageRenderer; $this->wp = $wp; $this->subscribersFeature = $subscribersFeature; } public function render() { $data = [ 'current_wp_user' => $this->wp->wpGetCurrentUser()->to_array(), 'subscriber_count' => $this->subscribersFeature->getSubscribersCount(), ]; $this->pageRenderer->displayPage('premium.html', $data); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
ExperimentalFeatures.php | File | 420 B | 0644 |
|
FormEditor.php | File | 13.31 KB | 0644 |
|
Forms.php | File | 2.2 KB | 0644 |
|
Help.php | File | 1.96 KB | 0644 |
|
Logs.php | File | 1.41 KB | 0644 |
|
MP2Migration.php | File | 730 B | 0644 |
|
NewsletterEditor.php | File | 5.93 KB | 0644 |
|
Newsletters.php | File | 6.84 KB | 0644 |
|
Premium.php | File | 923 B | 0644 |
|
Segments.php | File | 5.42 KB | 0644 |
|
Settings.php | File | 3.48 KB | 0644 |
|
Subscribers.php | File | 3.88 KB | 0644 |
|
SubscribersExport.php | File | 646 B | 0644 |
|
SubscribersImport.php | File | 1.3 KB | 0644 |
|
WelcomeWizard.php | File | 2.15 KB | 0644 |
|
WooCommerceSetup.php | File | 741 B | 0644 |
|
index.php | File | 0 B | 0644 |
|