mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:57:40 +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:
16
examples/platform/scripts/render-footer-html.php
Normal file
16
examples/platform/scripts/render-footer-html.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Emit a static footer.html from footer.config.php (for docs or static-only hosts).
|
||||
*
|
||||
* php examples/platform/scripts/render-footer-html.php > /path/to/footer.html
|
||||
*/
|
||||
|
||||
require_once dirname(__DIR__) . '/footer.php';
|
||||
|
||||
ob_start();
|
||||
platform_render_footer(['use_i18n' => false]);
|
||||
$footer = ob_get_clean();
|
||||
|
||||
echo $footer . "\n";
|
||||
Reference in New Issue
Block a user