Browse Source

Show Plugin Settings

3.0
GamerClassN7 1 year ago
parent
commit
fe72097d75
2 changed files with 18 additions and 1 deletions
  1. +2
    -0
      app/views/Setting.php
  2. +16
    -1
      app/views/templates/setting.phtml

+ 2
- 0
app/views/Setting.php View File

@ -70,6 +70,8 @@ class Setting extends Template
$result = $settingsManager->getSettingGroup($plugins[$key]['slug']);
if (count ($result) > 0) {
$plugins[$key]['settings'] = $result;
} else {
unset($plugins[$key]);
}
}
}

+ 16
- 1
app/views/templates/setting.phtml View File

@ -203,7 +203,22 @@ $partial = new Partial('head');
</div>
<!--Plugins Settings-->
<?php foreach ($PLUGINSSETTINGS as $key => $pluginSeting) { ?>
<div class="col-12 col-sm-9 mx-auto mt-4">
<h4 class="mb-4"><?php echo $pluginSeting['name'] ?></h4>
<form method="post">
<?php foreach ($pluginSeting['settings'] as $key => $pluginSetingField) { ?>
<div class="field">
<div class="label"><?php echo $pluginSetingField['name'] ?>:</div>
<input type="text" class="input" name="roomName" value="<?php echo $pluginSetingField['value'] ?>">
</div>
<?php } ?>
<div class="field">
<input type="submit" name="submitPlugins<?php echo $pluginSeting['name'] ?>Settings" class="button" value="<?php $LANGMNG->echo('b_save') ?>">
</div>
</form>
</div>
<?php } ?>
</div>

Loading…
Cancel
Save