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.
15 lines
606 B
PHP
15 lines
606 B
PHP
<?php return [
|
|
'render' => function($prop) {
|
|
$id = trim((string)($prop['id'] ?? ''));
|
|
$class = trim((string)($prop['class'] ?? ''));
|
|
$icon = trim((string)($prop['icon_class'] ?? ''));
|
|
$text = (string)($prop['text'] ?? '');
|
|
ob_start();
|
|
?>
|
|
<div<?= $id !== '' ? ' id="' . asafe($id) . '"' : '' ?> class="ws-list-state<?= $class !== '' ? ' ' . asafe($class) : '' ?>"><?php if ($icon !== ''): ?><i class="<?= asafe($icon) ?>"></i><?php endif; ?><span><?= safe($text) ?></span></div>
|
|
<?php
|
|
return ob_get_clean();
|
|
},
|
|
|
|
'about' => 'Compact sidebar/list placeholder state with optional icon',
|
|
];
|