1
0
mirror of git://f0xx.org/ac/ac-platform-php synced 2026-07-29 02:58:38 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-23 12:29:28 +02:00
commit f4b39bea26
11 changed files with 2095 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
/**
* Site-wide footer (hub, crashes, tickets, graphs, builder).
* Copy to footer.config.php and edit; footer.config.php is optional (defaults apply).
*
* Layout (empty/null row = hidden):
* top — full-width line above main row
* main — left | right (flex); invisible gap between columns
* bottom — full-width line below main row
*
* Left column: set `left` to a custom string, or leave null to build from holder + year below.
*/
return [
// --- Optional rows (static or PHP-dynamic strings) ---
'top' => null,
'left' => null,
'right' => null,
'bottom' => null,
// --- Default left column when `left` is null ---
// Use holder_name + holder_url for a safe link (holder HTML is escaped if used alone).
'holder_name' => 'Anton Afanaasyeu',
'holder_url' => 'https://f0xx.org',
'holder' => null,
'copyright_symbol' => "\u{00A9}",
'show_year' => false,
// null = current calendar year at render time (end of range).
'year' => null,
// Integer start year. With year_through_current: "2026 - current" (literal suffix).
// Without it: "20262027" range (en dash) or lone "2026" when start equals end year.
'year_start' => 2026,
'year_through_current' => true,
// CSS class on <footer> (platform-footer layout classes are always added).
'footer_class' => 'bottom-bar',
// When true, consoles with i18n.js replace default left text via data-i18n / data-year.
'use_i18n' => true,
'i18n_key' => 'footer.copyright',
];