updated timestamps
This commit is contained in:
parent
95a5aabf59
commit
0a46a892b8
10 changed files with 49 additions and 9 deletions
6
.github/copilot-instructions.md
vendored
6
.github/copilot-instructions.md
vendored
|
|
@ -171,5 +171,11 @@ Testing checklist:
|
|||
- After making a small edit and deploying, confirm the timestamp updates to the new edit time.
|
||||
- If using automated deploys, ensure the deploy process preserves or updates the canonical timestamp source (e.g., touch file, update metadata) so the displayed value is accurate.
|
||||
|
||||
Maintainer update requirement:
|
||||
- The canonical human-friendly timestamp is stored in `modules/billing/timestamp.txt` and MUST be updated whenever site files or content are edited and deployed.
|
||||
- Format and wording: use a single-line plain-text entry such as: "Last Updated at 7:25am on 2025-15-11". This exact text (including capitalization) is what appears in theme footers.
|
||||
- Update process: include the `timestamp.txt` change in the same commit/PR as any content change that should alter the "Last Updated" time, or ensure your deployment process updates the file automatically (for example, a post-deploy hook that writes the current deploy time in the agreed format).
|
||||
- Rationale: themes are non-PHP files and may not support SSI on all servers; keeping a single canonical plain-text file reduces duplication and avoids server-side includes.
|
||||
|
||||
|
||||
**End of Copilot Instructions (No-Code).**
|
||||
|
|
|
|||
|
|
@ -4,6 +4,15 @@
|
|||
<footer class="gsw-footer">
|
||||
<div class="container-wide">
|
||||
<a href="privacy.php">Privacy</a> | <a href="tos.php">TOS</a> | <a href="server_status.php">Server Status</a> | <a href="https://worlddomination.dev" target="_blank" rel="noopener">Worlddomination.dev</a>
|
||||
<div class="last-updated" style="float:right;color:#999;font-size:0.9em;">
|
||||
<?php
|
||||
// Include the canonical billing timestamp text file (plain text).
|
||||
$billing_ts = __DIR__ . '/../timestamp.txt';
|
||||
if (file_exists($billing_ts)) {
|
||||
echo trim(file_get_contents($billing_ts));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
|
|
|||
1
modules/billing/timestamp.txt
Normal file
1
modules/billing/timestamp.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Last Updated at 7:25am on 2025-15-11
|
||||
|
|
@ -4,3 +4,6 @@
|
|||
<footer class="main-footer">
|
||||
%footer%
|
||||
</footer>
|
||||
<div class="last-updated-ssi" style="text-align:right; font-size:0.9em; color:#777; padding:6px 8px;">
|
||||
Last Updated at 7:25am on 2025-15-11
|
||||
</div>
|
||||
|
|
@ -4,3 +4,6 @@
|
|||
<footer class="main-footer">
|
||||
%footer%
|
||||
</footer>
|
||||
<div class="last-updated-ssi" style="text-align:right; font-size:0.9em; color:#777; padding:6px 8px;">
|
||||
Last Updated at 7:25am on 2025-15-11
|
||||
</div>
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
<div class="col col-lg-12 footer">
|
||||
<div class="copy">Theme made by <a href="https://techbeeps.co.in/" target="_blank">Yaseen</a>-<a href="https://www.zpeonline.co.uk" target="_blank">ZPE-Online Ltd</a> (Based on <a href="https://github.com/OpenGamePanel/Theme-SimpleBootstrap" target="_blank">SimpleBootstrap Theme</a>)</div>
|
||||
%footer%
|
||||
<div class="last-updated-ssi" style="text-align:right; font-size:0.9em; color:#777; padding:6px 8px;">
|
||||
Last Updated at 7:25am on 2025-15-11
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,10 @@
|
|||
</div>
|
||||
<div id="bottom-links">
|
||||
<div style="padding-top:20px">
|
||||
%footer%
|
||||
%footer%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="last-updated-ssi" style="text-align:right; font-size:0.9em; color:#777; padding:6px 8px; clear:both;">
|
||||
Last Updated at 7:25am on 2025-15-11
|
||||
</div>
|
||||
|
|
@ -2,11 +2,9 @@
|
|||
<div id="footer">
|
||||
<div class="footer-one-third">
|
||||
</div>
|
||||
<div
|
||||
class="footer-one-third
|
||||
footer-last"> <p>
|
||||
</p> </div>
|
||||
</div>
|
||||
<div class="footer-one-third footer-last"> <p>
|
||||
</p> </div>
|
||||
</div>
|
||||
<div id="bottom-links">
|
||||
<div style="padding-top:20px; width:50%; float:left;">
|
||||
|
||||
|
|
@ -21,3 +19,7 @@ footer-last"> <p>
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="last-updated-ssi" style="text-align:right; font-size:0.9em; color:#777; padding:6px 8px; clear:both;">
|
||||
Last Updated at 7:25am on 2025-15-11
|
||||
</div>
|
||||
|
||||
|
|
|
|||
7
themes/Revolution/last_updated.php
Normal file
7
themes/Revolution/last_updated.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
// DEPRECATED: per-theme PHP timestamp removed in favor of /modules/billing/timestamp.txt
|
||||
// This file is retained as a no-op for compatibility. Please use the SSI include in theme bottom.html files.
|
||||
// Example SSI to add to a non-PHP footer: <!--#include virtual="/modules/billing/timestamp.txt" -->
|
||||
//
|
||||
// No runtime output produced by this file.
|
||||
|
||||
|
|
@ -8,3 +8,6 @@ Join our Discord server for support and any questions</br>
|
|||
|
||||
</div>
|
||||
</div>
|
||||
<div class="last-updated-ssi" style="text-align:right; font-size:0.9em; color:#777; padding:6px 8px;">
|
||||
Last Updated at 7:25am on 2025-15-11
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue