diff --git a/admin/controllers/configure-plugin.php b/admin/controllers/configure-plugin.php new file mode 100644 index 00000000..4f6b4ea8 --- /dev/null +++ b/admin/controllers/configure-plugin.php @@ -0,0 +1,36 @@ +className()==$layout['parameters']) { + $_Plugin = $P; + } +} + +// Check if the plugin exists. +if($_Plugin===false) { + Redirect::page('admin', 'plugins'); +} + +// ============================================================================ +// POST Method +// ============================================================================ + +if( $_SERVER['REQUEST_METHOD'] == 'POST' ) +{ + Alert::set('Configuration saved successfuly'); + $_Plugin->setDb($_POST); +} + +// ============================================================================ +// Main after POST +// ============================================================================ diff --git a/admin/themes/default/css/default.css b/admin/themes/default/css/default.css index 60a9bb3f..ed627d01 100644 --- a/admin/themes/default/css/default.css +++ b/admin/themes/default/css/default.css @@ -165,8 +165,13 @@ p.advOptions { font-size: 0.8em; } +a.btn:hover { + color: rgba(255, 255, 255, 0.5) !important; +} + a.btn-red { color: rgba(255, 255, 255, 0.9) !important; + margin-right: 10px; } a.btn-red:hover { @@ -189,6 +194,31 @@ div.pluginBox p { margin-bottom: 10px; } +/* ----------- PLUGINS FORM ----------- */ + +#jsformplugin div { + margin-bottom: 1.1em; +} + +#jsformplugin label { + margin: 0 0 5px 0 !important; +} + +#jsformplugin input[type=text] { + width: 70%; +} + +#jsformplugin input[type="checkbox"] { + vertical-align: middle; + margin-left: 0px; +} + +#jsformplugin label.forCheckbox { + margin-left: 3px; + margin-bottom: 10px; + display: inline-block; +} + /* ----------- SUB-NAVBAR ----------- */ .sublinks a { color: #2672ec; diff --git a/admin/views/configure-plugin.php b/admin/views/configure-plugin.php new file mode 100644 index 00000000..41a08340 --- /dev/null +++ b/admin/views/configure-plugin.php @@ -0,0 +1,15 @@ +