refactor: update content handling for non-tabbed layout

- Introduced a new file, MainContentTabless.php, which provides a non-tabbed content template for the Unraid web interface, rendering all pages in sequence without tabs.
This commit is contained in:
Zack Spear
2025-05-07 16:11:14 -07:00
parent 9eab318383
commit 5c13404492
2 changed files with 1 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ $display['tabs'] = isset($myPage['Tabs'])
? (strtolower($myPage['Tabs']) == 'true' ? 0 : 1)
: $display['tabs'];
$tabbed = $display['tabs'] == 0 && count($pages) > 1;
$contentInclude = $tabbed ? 'MainContentTabbed.php' : 'MainContentNoTab.php';
$contentInclude = $tabbed ? 'MainContentTabbed.php' : 'MainContentTabless.php';
$defaultIcon = "<i class=\"icon-app PanelIcon\"></i>";
function process_icon($icon, $docroot, $root) {