2018-05-16 23:17:41 +02:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2018-07-18 22:44:42 +02:00
|
|
|
echo Bootstrap::pageTitle(array('title'=>$plugin->name(), 'icon'=>'wrench'));
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2018-05-16 23:17:41 +02:00
|
|
|
echo Bootstrap::formOpen(array('class'=>'plugin-form'));
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2018-05-16 23:17:41 +02:00
|
|
|
echo Bootstrap::formInputHidden(array(
|
2015-10-20 05:14:28 +02:00
|
|
|
'name'=>'tokenCSRF',
|
2018-07-17 19:13:01 +02:00
|
|
|
'value'=>$security->getTokenCSRF()
|
2015-10-19 00:45:58 +02:00
|
|
|
));
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
// Print the plugin form
|
2017-05-27 19:46:46 +02:00
|
|
|
echo $plugin->form();
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2018-05-16 23:17:41 +02:00
|
|
|
if ($plugin->formButtons()) {
|
|
|
|
echo '
|
|
|
|
<div class="form-group mt-4">
|
|
|
|
<button type="submit" class="btn btn-primary mr-2" name="save">'.$L->g('Save').'</button>
|
|
|
|
<a class="btn btn-secondary" href="'.HTML_PATH_ADMIN_ROOT.'plugins" role="button">'.$L->g('Cancel').'</a>
|
|
|
|
</div>
|
|
|
|
';
|
2017-06-19 23:14:38 +02:00
|
|
|
}
|
2015-10-19 00:45:58 +02:00
|
|
|
|
2018-05-16 23:17:41 +02:00
|
|
|
echo Bootstrap::formClose();
|