Newsletters page, with test.
This commit is contained in:
@ -28,11 +28,11 @@ class Menu {
|
||||
);
|
||||
add_submenu_page(
|
||||
'mailpoet',
|
||||
'Settings',
|
||||
'Settings',
|
||||
'Newsletters',
|
||||
'Newsletters',
|
||||
'manage_options',
|
||||
'mailpoet-settings',
|
||||
array($this, 'settings')
|
||||
'mailpoet-newsletters',
|
||||
array($this, 'newsletters')
|
||||
);
|
||||
add_submenu_page(
|
||||
'mailpoet',
|
||||
@ -42,6 +42,14 @@ class Menu {
|
||||
'mailpoet-subscribers',
|
||||
array($this, 'subscribers')
|
||||
);
|
||||
add_submenu_page(
|
||||
'mailpoet',
|
||||
'Settings',
|
||||
'Settings',
|
||||
'manage_options',
|
||||
'mailpoet-settings',
|
||||
array($this, 'settings')
|
||||
);
|
||||
}
|
||||
|
||||
function home() {
|
||||
@ -58,4 +66,9 @@ class Menu {
|
||||
$data = array();
|
||||
echo $this->renderer->render('subscribers.html', $data);
|
||||
}
|
||||
|
||||
function newsletters() {
|
||||
$data = array();
|
||||
echo $this->renderer->render('newsletters.html', $data);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user