mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Sort themes before display
This commit is contained in:
parent
c96e3108aa
commit
e85f480e63
2 changed files with 5 additions and 1 deletions
|
@ -155,7 +155,7 @@
|
|||
"version": "0.1",
|
||||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds a theme gallery page and optional automatic theme updates. Contacts a remote server, where IP addresses are stored in automatic server logs for security and attack mitigation purposes.",
|
||||
"lastupdate": 1566828460,
|
||||
"lastupdate": 1566830789,
|
||||
"optional": false,
|
||||
"extra_data": []
|
||||
},
|
||||
|
|
|
@ -37,6 +37,10 @@ register_module([
|
|||
}
|
||||
}
|
||||
|
||||
usort($themes_available, function($a, $b) {
|
||||
return strcmp($a->name, $b->name);
|
||||
});
|
||||
|
||||
$content = "<h1>Theme Gallery</h1>
|
||||
<div class='grid theme-list'>\n";
|
||||
foreach($themes_available as $theme) {
|
||||
|
|
Loading…
Reference in a new issue