Files
breadcrumb-the-shire/pages/help/hotkeys(default).phtml

55 lines
1.4 KiB
PHTML
Raw Normal View History

<?php
use MintyPHP\Service\Ui\HotkeyService;
$hotkeyRows = HotkeyService::list();
?>
2026-02-11 19:28:12 +01:00
<div class="app-details-container">
<section>
<?php
$breadcrumbs = [
['label' => t('Home'), 'path' => 'admin'],
['label' => t('Keyboard shortcuts')],
];
?>
2026-03-04 15:56:58 +01:00
<?php
$listTitle = t('Keyboard shortcuts');
require templatePath('partials/app-list-titlebar.phtml');
?>
2026-02-11 19:28:12 +01:00
<div class="app-details">
<div class="app-details-body">
<table>
<thead>
<tr>
<th><?php e(t('Action')); ?></th>
<th><?php e(t('Mac')); ?></th>
<th><?php e(t('Windows')); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($hotkeyRows as $row): ?>
<?php
$actionKey = trim((string) ($row['action_key'] ?? ''));
$mac = trim((string) ($row['mac'] ?? ''));
$win = trim((string) ($row['win'] ?? ''));
if ($actionKey === '' || $mac === '' || $win === '') {
continue;
}
?>
2026-02-11 19:28:12 +01:00
<tr>
<td><?php e(t($actionKey)); ?></td>
<td><kbd><?php e($mac); ?></kbd></td>
<td><kbd><?php e($win); ?></kbd></td>
2026-02-11 19:28:12 +01:00
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</section>
</div>