Add WooCommerceListImport page class
[MAILPOET-2200]
This commit is contained in:
committed by
M. Shull
parent
fbb123a4ca
commit
e93d1e1774
30
lib/AdminPages/Pages/WooCommerceListImport.php
Normal file
30
lib/AdminPages/Pages/WooCommerceListImport.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace MailPoet\AdminPages\Pages;
|
||||
|
||||
use MailPoet\AdminPages\PageRenderer;
|
||||
use MailPoet\Config\Menu;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class WooCommerceListImport {
|
||||
/** @var PageRenderer */
|
||||
private $page_renderer;
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
function __construct(PageRenderer $page_renderer, WPFunctions $wp) {
|
||||
$this->page_renderer = $page_renderer;
|
||||
$this->wp = $wp;
|
||||
}
|
||||
|
||||
function render() {
|
||||
if ((bool)(defined('DOING_AJAX') && DOING_AJAX)) return;
|
||||
$data = [
|
||||
'finish_wizard_url' => $this->wp->adminUrl('admin.php?page=' . Menu::MAIN_PAGE_SLUG),
|
||||
];
|
||||
$this->page_renderer->displayPage('woocommerce_list_import.html', $data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user