1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-26 05:32:59 +00:00

Uncheck optional modules by default

This commit is contained in:
Starbeamrainbowlabs 2016-03-26 14:07:06 +00:00
parent 8d7cdb3ce8
commit 8ebc66b1e8

View file

@ -29,8 +29,9 @@
$module_index = json_decode(file_get_contents("module_index.json")); $module_index = json_decode(file_get_contents("module_index.json"));
foreach($module_index as $module) foreach($module_index as $module)
{ {
$checkedText = (isset($module->optional) && $module->optional === true) ? "" : " checked";
echo("<tr> echo("<tr>
<td><input type='checkbox' id='$module->id' checked /></td> <td><input type='checkbox' id='$module->id'$checkedText /></td>
<td><label for='$module->id'>$module->name</label></td> <td><label for='$module->id'>$module->name</label></td>
<td>$module->description</td> <td>$module->description</td>
<td>$module->author</td> <td>$module->author</td>