mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +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",
|
"version": "0.1",
|
||||||
"author": "Starbeamrainbowlabs",
|
"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.",
|
"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,
|
"optional": false,
|
||||||
"extra_data": []
|
"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>
|
$content = "<h1>Theme Gallery</h1>
|
||||||
<div class='grid theme-list'>\n";
|
<div class='grid theme-list'>\n";
|
||||||
foreach($themes_available as $theme) {
|
foreach($themes_available as $theme) {
|
||||||
|
|
Loading…
Reference in a new issue