style: auto-fix 1340 phpcs PSR-12 violations via phpcbf; exclude MissingNamespace and SideEffects
This commit is contained in:
+14
-13
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* layout_footer.php — Shared bottom-of-page partial for all views.
|
||||
*
|
||||
@@ -23,12 +24,12 @@
|
||||
================================================================ -->
|
||||
<?php
|
||||
// Context-sensitive keyboard hints based on active nav
|
||||
$_ltf_nav = $activeNav ?? 'dashboard';
|
||||
$_ltf_isTicket = str_starts_with($pageTitle ?? '', 'Ticket #');
|
||||
?>
|
||||
$_ltf_nav = $activeNav ?? 'dashboard';
|
||||
$_ltf_isTicket = str_starts_with($pageTitle ?? '', 'Ticket #');
|
||||
?>
|
||||
<footer class="lt-footer" role="contentinfo" aria-label="Keyboard shortcuts and app info">
|
||||
<nav class="lt-footer-hints" aria-label="Keyboard shortcuts">
|
||||
<?php if ($_ltf_isTicket): ?>
|
||||
<?php if ($_ltf_isTicket) : ?>
|
||||
<a href="/" class="lt-footer-hint" title="Go to dashboard"><span class="lt-footer-key">[ ← ]</span> BACK</a>
|
||||
<span class="lt-footer-sep">|</span>
|
||||
<span class="lt-footer-hint" title="Press 1–4 to change status"><span class="lt-footer-key">[ 1-4 ]</span> STATUS</span>
|
||||
@@ -36,11 +37,11 @@
|
||||
<span class="lt-footer-hint" title="Press C to jump to comment box"><span class="lt-footer-key">[ C ]</span> COMMENT</span>
|
||||
<span class="lt-footer-sep">|</span>
|
||||
<button type="button" class="lt-footer-hint" data-action="open-settings" title="Open settings"><span class="lt-footer-key">[ * ]</span> CFG</button>
|
||||
<?php elseif (str_starts_with($_ltf_nav, 'admin')): ?>
|
||||
<?php elseif (str_starts_with($_ltf_nav, 'admin')) : ?>
|
||||
<a href="/" class="lt-footer-hint" title="Go to dashboard"><span class="lt-footer-key">[ ~ ]</span> HOME</a>
|
||||
<span class="lt-footer-sep">|</span>
|
||||
<button type="button" class="lt-footer-hint" data-action="open-settings" title="Open settings"><span class="lt-footer-key">[ * ]</span> CFG</button>
|
||||
<?php else: ?>
|
||||
<?php else : ?>
|
||||
<a href="/" class="lt-footer-hint" title="Go to dashboard (G then D)"><span class="lt-footer-key">[ ~ ]</span> HOME</a>
|
||||
<span class="lt-footer-sep">|</span>
|
||||
<span class="lt-footer-hint" title="Press / or Ctrl+K to search"><span class="lt-footer-key">[ / ]</span> SEARCH</span>
|
||||
@@ -114,17 +115,17 @@
|
||||
|
||||
<!-- base.js + utils.js + globals already loaded in <head> via layout_header.php -->
|
||||
|
||||
<?php if (!empty($pageScripts)): ?>
|
||||
<?php if (!empty($pageScripts)) : ?>
|
||||
<!-- PAGE-SPECIFIC SCRIPTS -->
|
||||
<?php foreach ($pageScripts as $_ltf_script): ?>
|
||||
<?php foreach ($pageScripts as $_ltf_script) : ?>
|
||||
<script nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, 'UTF-8') ?>" src="<?= htmlspecialchars($_ltf_script, ENT_QUOTES, 'UTF-8') ?>"></script>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($pageInlineScript)): ?>
|
||||
<?php if (!empty($pageInlineScript)) : ?>
|
||||
<!-- PAGE INLINE SCRIPT -->
|
||||
<script nonce="<?= htmlspecialchars($nonce, ENT_QUOTES, 'UTF-8') ?>">
|
||||
<?= $pageInlineScript ?>
|
||||
<?= $pageInlineScript ?>
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -144,7 +145,7 @@
|
||||
{ id: 'help-shortcuts', group: 'Help', icon: '?', label: 'Keyboard Shortcuts', kbd: '?', action: function() { lt.modal.open('lt-keys-help'); } },
|
||||
{ id: 'help-theme', group: 'Help', icon: '*', label: 'Toggle Theme', action: function() { lt.theme.toggle(); } },
|
||||
];
|
||||
<?php if (!empty($GLOBALS['currentUser']['is_admin'])): ?>
|
||||
<?php if (!empty($GLOBALS['currentUser']['is_admin'])) : ?>
|
||||
_cpCmds = _cpCmds.concat([
|
||||
{ id: 'admin-templates', group: 'Admin', icon: 'T', label: 'Templates', action: function() { window.location.href = '/admin/templates'; } },
|
||||
{ id: 'admin-workflow', group: 'Admin', icon: 'W', label: 'Workflow', action: function() { window.location.href = '/admin/workflow'; } },
|
||||
@@ -173,7 +174,7 @@
|
||||
}
|
||||
|
||||
// ── Notification Bell ─────────────────────────────────────────────
|
||||
<?php if (!empty($GLOBALS['currentUser'])): ?>
|
||||
<?php if (!empty($GLOBALS['currentUser'])) : ?>
|
||||
(function() {
|
||||
var bell = document.getElementById('lt-notif-bell');
|
||||
var panel = document.getElementById('lt-notif-panel');
|
||||
|
||||
Reference in New Issue
Block a user