Form Widget
- added public js code to handle validation and ajax submit - added widget initializer - added form widget - added acceptance test for adding the widget
This commit is contained in:
@@ -4,10 +4,10 @@ namespace MailPoet\Config;
|
||||
use MailPoet\Models;
|
||||
use MailPoet\Router;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
if(!defined('ABSPATH')) exit;
|
||||
|
||||
class Initializer {
|
||||
public function __construct($params = array(
|
||||
function __construct($params = array(
|
||||
'file' => '',
|
||||
'version' => '1.0.0'
|
||||
)) {
|
||||
@@ -21,6 +21,7 @@ class Initializer {
|
||||
$this->setupLocalizer();
|
||||
$this->setupMenu();
|
||||
$this->setupRouter();
|
||||
$this->setupWidget();
|
||||
}
|
||||
|
||||
function setupDB() {
|
||||
@@ -64,4 +65,9 @@ class Initializer {
|
||||
$router = new Router\Router();
|
||||
$router->init();
|
||||
}
|
||||
|
||||
function setupWidget() {
|
||||
$widget = new Widget();
|
||||
$widget->init();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user