Compare commits

..

No commits in common. "464f229a16ebfa03ac1335c0dbb331340fc31a3b" and "98efb779b183a1072cb71749ac319375be668281" have entirely different histories.

3 changed files with 1 additions and 22 deletions

View File

@ -33,8 +33,4 @@ class OpenWeatherMap extends VirtualDeviceManager
return 'exception: ' . $e->getMessage(); return 'exception: ' . $e->getMessage();
} }
} }
function enable(){
(new SettingsManager)->create('open_weather_api_token', '', 'open_weather');
}
} }

View File

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

View File

@ -203,22 +203,7 @@ $partial = new Partial('head');
</div> </div>
<!--Plugins Settings--> <!--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> </div>