Private
Public Access
- Introduced new workspace components including app-frame, empty-state, icon-button, list-state, mobile-bar, panel-header, panel, section-head, section, sidebar-shell, sidebar-toolbar, and status-pill for improved UI structure. - Implemented directory index routing and parent-path fallback in index.php for better navigation. - Updated README.md to reflect new workspace features and patterns. - Added workspace.css for styling the new components and layout. - Enhanced settings.php to include workspace in the navigation structure. - Created views/workspace/index.php to serve as the main workspace interface with dynamic sections and navigation.
17 lines
551 B
PHP
17 lines
551 B
PHP
<?php return [
|
|
'render' => function($prop) {
|
|
$class = trim((string)($prop['class'] ?? ''));
|
|
$title = (string)($prop['title'] ?? '');
|
|
$actionsHtml = (string)($prop['actions_html'] ?? '');
|
|
ob_start();
|
|
?>
|
|
<div class="ws-section-head<?= $class !== '' ? ' ' . asafe($class) : '' ?>">
|
|
<h3><?= safe($title) ?></h3>
|
|
<?php if ($actionsHtml !== ''): ?><div class="ws-header-actions"><?= $actionsHtml ?></div><?php endif; ?>
|
|
</div>
|
|
<?php
|
|
return ob_get_clean();
|
|
},
|
|
|
|
'about' => 'Compact section heading for grouped workspace content',
|
|
];
|