bludit/bl-kernel/admin/views/configure-plugin.php

25 lines
662 B
PHP
Raw Normal View History

2018-05-16 23:17:41 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
2015-07-14 04:16:28 +02:00
2018-05-16 23:17:41 +02:00
echo Bootstrap::pageTitle(array('title'=>$plugin->name(), 'icon'=>'person'));
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',
'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
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>
';
}
2015-10-19 00:45:58 +02:00
2018-05-16 23:17:41 +02:00
echo Bootstrap::formClose();