2018-11-09 00:59:06 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2021-02-07 18:22:20 +01:00
|
|
|
<script>
|
|
|
|
// ============================================================================
|
|
|
|
// Variables for the view
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Functions for the view
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Events for the view
|
|
|
|
// ============================================================================
|
|
|
|
$(document).ready(function() {
|
|
|
|
// No events for the view yet
|
|
|
|
});
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// Initlization for the view
|
|
|
|
// ============================================================================
|
|
|
|
$(document).ready(function() {
|
|
|
|
// No initialization for the view yet
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2021-02-07 22:03:53 +01:00
|
|
|
<?php echo Bootstrap::formOpen(array('name' => 'pluginSettings')); ?>
|
|
|
|
|
|
|
|
<div class="d-flex align-items-center mb-3">
|
|
|
|
<h2 class="m-0"><i class="bi bi-node-plus"></i><?php echo $plugin->name() ?></h2>
|
|
|
|
<?php if ($plugin->formButtons()) : ?>
|
|
|
|
<div class="ms-auto">
|
|
|
|
<button type="submit" class="btn btn-primary btn-sm" name="save"><?php $L->p('Save') ?></button>
|
|
|
|
<a class="btn btn-secondary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT . 'plugins' ?>" role="button"><?php $L->p('Cancel') ?></a>
|
|
|
|
</div>
|
2018-11-09 00:59:06 +01:00
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2018-11-09 00:59:06 +01:00
|
|
|
<?php
|
2018-05-16 23:17:41 +02:00
|
|
|
echo Bootstrap::formInputHidden(array(
|
2021-02-07 22:03:53 +01:00
|
|
|
'name' => 'tokenCSRF',
|
|
|
|
'value' => $security->getTokenCSRF()
|
2015-10-19 00:45:58 +02:00
|
|
|
));
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2021-02-07 22:03:53 +01:00
|
|
|
if ($plugin->description()) {
|
|
|
|
echo '<div class="alert alert-primary" role="alert">'.$plugin->description().'</div>';
|
|
|
|
}
|
|
|
|
|
2017-05-27 19:46:46 +02:00
|
|
|
echo $plugin->form();
|
2018-11-09 00:59:06 +01:00
|
|
|
?>
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2018-11-09 00:59:06 +01:00
|
|
|
<?php echo Bootstrap::formClose(); ?>
|