mirror of
git://f0xx.org/ac/ac-platform-php
synced 2026-07-29 02:58:38 +03:00
initial
This commit is contained in:
41
platform/footer.config.example.php
Normal file
41
platform/footer.config.example.php
Normal 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: "2026–2027" 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',
|
||||
];
|
||||
Reference in New Issue
Block a user