Commit Graph

19 Commits

Author SHA1 Message Date
Zack Spear
469f15883b feat: enhance page content generation with responsive layout support
- Updated `generateContent` function to handle a new `ResponsiveLayout` flag in the page data array.
- Added a wrapper for non-responsive content based on the `ResponsiveLayout` flag.
- Adjusted CSS class naming for consistency in the `default-base.css` file.
- Set `ResponsiveLayout` to false in `AddVM.page` and `UpdateVM.page` for default behavior.
- Cleaned up HTML structure in `VMedit.php` to remove unnecessary class.

This change improves the flexibility of page layouts and ensures proper styling for non-responsive content.
2025-07-01 16:04:27 -07:00
Zack Spear
82eb592812 style: fix indentation in MainContent.php
- Corrected inconsistent indentation in the processTitle function for improved code readability and maintainability.
2025-05-29 11:39:02 -07:00
Zack Spear
9e7c27bc6a fix: handle empty output in generatePanels function
- Updated the generatePanels function to return an empty string if no panels are generated, ensuring cleaner output when there are no panels to display.
2025-05-27 16:20:24 -07:00
Zack Spear
9d0db98241 feat: implement safe title processing in MainContent, MainContentTabbed, and MainContentTabless
- Introduced a new function `processTitle` to safely handle page titles by replacing PHP variables with their values without using eval.
- Updated title handling in MainContent, MainContentTabbed, and MainContentTabless to utilize the new `processTitle` function, enhancing security and maintainability.
2025-05-09 13:23:03 -07:00
Zack Spear
a3917eabe5 fix: update title handling in MainContent, MainContentTabbed, and MainContentTabless for improved variable usage
- Replaced direct htmlspecialchars usage with eval to ensure variables in .page titles are correctly processed.
- This change enhances the flexibility of title rendering across multiple layout files.
2025-05-09 11:37:00 -07:00
Zack Spear
d5fbdebde4 fix: panels spacing + user list for responsiveness 2025-05-08 15:54:50 -07:00
Zack Spear
5c13404492 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.
2025-05-07 16:11:14 -07:00
Zack Spear
648d9252cc fix: update cookie handling in tab management
- Removed unused cookie helper functions from MainContentTabbed.php to streamline the code.
- Updated the tab management logic to ensure cookies are cleared when no cookie exists, aligning with the behavior of the initab function.
- Corrected the filename reference in MainContent.php from 'MainContentNotab.php' to 'MainContentNoTab.php' for consistency.
2025-05-07 15:20:16 -07:00
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
Zack Spear
843efed231 refactor: abstract tab vs no tab content into separate components 2025-05-07 10:48:13 -07:00
Zack Spear
d37f55f6fb refactor: add HTML comments to closing tags in MainContent.php for improved readability and maintainability 2025-04-08 14:01:00 -07:00
Zack Spear
4e61946207 fix: add missing newline at end of file in MainContent.php to comply with coding standards 2025-04-08 13:56:11 -07:00
Zack Spear
79f3436670 refactor: improve title variable assignment in MainContent.php by replacing eval with direct assignment for better security and maintainability 2025-04-08 13:50:29 -07:00
Zack Spear
2b7b6f437f refactor: replace hardcoded icon fallback with a centralized default icon variable in MainContent.php for improved maintainability 2025-04-08 13:47:35 -07:00
Zack Spear
67d1471929 refactor: reorganize variable initialization in MainContent.php for improved clarity and maintainability 2025-04-08 13:40:48 -07:00
Zack Spear
64a18430f7 refactor: enhance MainContent.php by adding a helper function for icon processing and improving variable initialization for better readability and maintainability 2025-04-08 13:32:39 -07:00
Zack Spear
e8a84ca428 refactor: reorganize HTML structure in DefaultPageLayout.php and MainContent.php for improved readability and maintainability 2025-04-08 13:17:09 -07:00
Zack Spear
270f0735cf refactor: centralize stylesheet inclusion logic in DefaultPageLayout.php by creating includePageStylesheets function for improved code reuse and maintainability 2025-04-08 13:06:49 -07:00
Zack Spear
4d4266ff76 refactor: extract main content logic from DefaultPageLayout.php into MainContent.php for improved organization and maintainability 2025-04-08 12:33:17 -07:00