feat: Easter egg for the 20th anniversary of the TorrentPier! (#1831)

This commit is contained in:
Roman Kelesidis 2025-03-02 14:59:49 +07:00 committed by GitHub
commit f2e513dd8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,9 +14,11 @@ if (!defined('BB_ROOT')) {
global $bb_cfg, $userdata, $template, $DBS, $lang;
if (!empty($template)) {
$birthday_tp = ((string)bb_date(TIMENOW, 'd.m', false) === '04.04') ? ' | 🎉🍰💚' : '';
$template->assign_vars([
'SIMPLE_FOOTER' => !empty($gen_simple_header),
'POWERED' => 'Fueled by <a target="_blank" referrerpolicy="origin" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> &copy; 2005-' . date('Y'),
'POWERED' => 'Fueled by <a target="_blank" referrerpolicy="origin" href="https://github.com/torrentpier/torrentpier">TorrentPier</a> &copy; 2005-' . date('Y') . $birthday_tp,
'SHOW_ADMIN_LINK' => (IS_ADMIN && !defined('IN_ADMIN')),
'ADMIN_LINK_HREF' => 'admin/index.php',
]);