- Bootstraps export
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace MailPoet\Config;
|
||||
|
||||
use \MailPoet\Import\BootstrapMenu;
|
||||
use \MailPoet\Models\Segment;
|
||||
use \MailPoet\Models\Setting;
|
||||
use \MailPoet\Models\Form;
|
||||
@@ -86,6 +85,14 @@ class Menu {
|
||||
'mailpoet-import',
|
||||
array($this, 'import')
|
||||
);
|
||||
add_submenu_page(
|
||||
'mailpoet',
|
||||
__('Export'),
|
||||
__('Export'),
|
||||
'manage_options',
|
||||
'mailpoet-export',
|
||||
array($this, 'export')
|
||||
);
|
||||
// add_submenu_page(
|
||||
// 'mailpoet',
|
||||
// __('Newsletter editor'),
|
||||
@@ -229,11 +236,15 @@ class Menu {
|
||||
}
|
||||
|
||||
function import() {
|
||||
$import = new BootstrapMenu();
|
||||
$import = new \MailPoet\Import\BootstrapMenu();
|
||||
$data = $import->bootstrap();
|
||||
echo $this->renderer->render('import.html', $data);
|
||||
}
|
||||
|
||||
function export() {
|
||||
echo $this->renderer->render('export.html');
|
||||
}
|
||||
|
||||
function formEditor() {
|
||||
$id = (isset($_GET['id']) ? (int)$_GET['id'] : 0);
|
||||
$form = Form::findOne($id);
|
||||
|
Reference in New Issue
Block a user