mirror of
git://f0xx.org/android_cast
synced 2026-07-29 05:17:39 +03:00
Shared platform footer template for hub and all PHP consoles.
Centralize copyright in examples/platform/footer.config.php, render via footer.php in crashes/builder/login layouts, and serve hub through index.php. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
27
examples/platform/README.md
Normal file
27
examples/platform/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Shared platform pieces
|
||||
|
||||
## Footer (`footer.php`)
|
||||
|
||||
Single copyright footer for hub, crashes, tickets, graphs, and builder consoles.
|
||||
|
||||
**Configure:** edit `footer.config.php` (copy from `footer.config.example.php`).
|
||||
|
||||
| Key | Purpose |
|
||||
|-----|---------|
|
||||
| `holder` | Copyright name |
|
||||
| `copyright_symbol` | `(c)` or `©` |
|
||||
| `show_year` | Append year |
|
||||
| `year` | Fixed year, or `null` for current |
|
||||
| `use_i18n` | `data-i18n` for consoles with `i18n.js` |
|
||||
|
||||
**In PHP views:** `<?php platform_render_footer(); ?>` (loaded via each app `bootstrap.php`).
|
||||
|
||||
**Hub:** `examples/app_hub/index.php` (landing nginx runs it through PHP-FPM).
|
||||
|
||||
**Static HTML export:**
|
||||
|
||||
```bash
|
||||
php examples/platform/scripts/render-footer-html.php
|
||||
```
|
||||
|
||||
**Gitea** (`/git/`) uses the upstream Gitea UI; this footer does not apply there unless you customize Gitea templates separately.
|
||||
Reference in New Issue
Block a user