basic listing files

This commit is contained in:
Jonathan Labreuille
2015-10-28 13:18:56 +01:00
parent 01e6a5e6b2
commit 103da61d45
10 changed files with 457 additions and 2 deletions

View File

@@ -41,6 +41,14 @@ class Menu {
'mailpoet-newsletters',
array($this, 'newsletters')
);
add_submenu_page(
'mailpoet',
__('Forms'),
__('Forms'),
'manage_options',
'mailpoet-forms',
array($this, 'forms')
);
add_submenu_page(
'mailpoet',
__('Subscribers'),
@@ -163,6 +171,13 @@ class Menu {
echo $this->renderer->render('segments.html', $data);
}
function forms() {
$data = array();
$data['segments'] = Segment::findArray();
echo $this->renderer->render('forms.html', $data);
}
function newsletters() {
global $wp_roles;