| 1 |
<?php |
| 2 |
/** |
| 3 |
* Description of BlankConverter |
| 4 |
* |
| 5 |
* @author Ali2Woo Team |
| 6 |
* |
| 7 |
* @autoload: a2wl_admin_init |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace AliNext_Lite;; |
| 11 |
|
| 12 |
use Pages; |
| 13 |
|
| 14 |
class BlankConverter extends AbstractAdminPage |
| 15 |
{ |
| 16 |
public function __construct() |
| 17 |
{ |
| 18 |
if (!apply_filters('a2wl_converter_installed', false)) { |
| 19 |
parent::__construct( |
| 20 |
Pages::getLabel(Pages::MIGRATION_TOOL), |
| 21 |
Pages::getLabel(Pages::MIGRATION_TOOL), |
| 22 |
Capability::pluginAccess(), |
| 23 |
Pages::MIGRATION_TOOL, |
| 24 |
1000 |
| 25 |
); |
| 26 |
} |
| 27 |
} |
| 28 |
|
| 29 |
public function render($params = []): void |
| 30 |
{ |
| 31 |
if (!PageGuardHelper::canAccessPage(Pages::MIGRATION_TOOL)) { |
| 32 |
wp_die($this->getErrorTextNoPermissions()); |
| 33 |
} |
| 34 |
|
| 35 |
?> |
| 36 |
<h1><?php echo Pages::getLabel(Pages::MIGRATION_TOOL); ?></h1> |
| 37 |
<p>The conversion plugin is not installed.</p> |
| 38 |
<p><a href="#">Download and install plugin</a></p> |
| 39 |
<?php |
| 40 |
} |
| 41 |
} |
| 42 |
|