- Bootstrapping import menu
This commit is contained in:
0
assets/js/src/import/import.jsx
Normal file
0
assets/js/src/import/import.jsx
Normal file
@@ -76,6 +76,14 @@ class Menu {
|
|||||||
'mailpoet-settings',
|
'mailpoet-settings',
|
||||||
array($this, 'settings')
|
array($this, 'settings')
|
||||||
);
|
);
|
||||||
|
add_submenu_page(
|
||||||
|
'mailpoet',
|
||||||
|
__('Import'),
|
||||||
|
__('Import'),
|
||||||
|
'manage_options',
|
||||||
|
'mailpoet-import',
|
||||||
|
array($this, 'import')
|
||||||
|
);
|
||||||
// add_submenu_page(
|
// add_submenu_page(
|
||||||
// 'mailpoet',
|
// 'mailpoet',
|
||||||
// __('Newsletter editor'),
|
// __('Newsletter editor'),
|
||||||
@@ -204,6 +212,10 @@ class Menu {
|
|||||||
echo $this->renderer->render('newsletter/form.html', $data);
|
echo $this->renderer->render('newsletter/form.html', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function import() {
|
||||||
|
echo $this->renderer->render('import.html');
|
||||||
|
}
|
||||||
|
|
||||||
function formEditor() {
|
function formEditor() {
|
||||||
$id = (isset($_GET['id']) ? (int)$_GET['id'] : 0);
|
$id = (isset($_GET['id']) ? (int)$_GET['id'] : 0);
|
||||||
$form = Form::findOne($id);
|
$form = Form::findOne($id);
|
||||||
|
5
views/import.html
Normal file
5
views/import.html
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<% extends 'layout.html' %>
|
||||||
|
|
||||||
|
<% block content %>
|
||||||
|
<div id="import"></div>
|
||||||
|
<% endblock %>
|
Reference in New Issue
Block a user