Skip to content

Commit 78938cf

Browse files
committed
feat: show compatible modules first
1 parent 2379395 commit 78938cf

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/Templates/ModuleListing.tmpl.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@
4141
if ($module->getVisibility() == 'hidden') {
4242
continue;
4343
}
44+
if (!$module->isCompatible()) {
45+
continue;
46+
}
47+
include 'ModuleListingModule.tmpl.php';
48+
}
49+
50+
foreach ($modules as $module) {
51+
if ($module->getVisibility() == 'hidden') {
52+
continue;
53+
}
54+
if ($module->isCompatible()) {
55+
continue;
56+
}
4457
include 'ModuleListingModule.tmpl.php';
4558
}
4659
?>

0 commit comments

Comments
 (0)