Files
webgui/emhttp/plugins/dynamix/include/DefaultPageLayout/MainContentNotab.php
T
Zack Spear ad9f54618c refactor: implement panel generation functions for menu pages
- Added `generatePanel` and `generatePanels` functions to encapsulate panel creation logic for menu items.
- Updated `MainContentNotab.php` and `MainContentTabbed.php` to utilize the new functions, improving code reusability and readability.
- Introduced `generateContent` function to handle content generation based on Markdown flag.
2025-05-07 15:06:38 -07:00

25 lines
740 B
PHP

<?php
/**
* Non-tabbed content template for the Unraid web interface.
* Renders all pages in sequence without tabs, using original per-page logic.
*/
?>
<div id="displaybox">
<div class="content">
<? foreach ($pages as $page): ?>
<? annotate($page['file']); ?>
<? includePageStylesheets($page); ?>
<? if (isset($page['Title'])): ?>
<div class="title">
<?= tab_title($page['Title'], $page['root'], _var($page, 'Tag', false)) ?>
</div>
<? endif; ?>
<?= generatePanels($page, $path, $defaultIcon, $docroot, true) ?>
<? eval('?>'.generateContent($page)); ?>
<? endforeach; ?>
</div>
</div>