Xmas: Custom header and xmas is activated after 1 december

This commit is contained in:
veselcraft 2021-12-01 23:12:05 +03:00
parent a36fe7b0e8
commit c6ab5b0ac5
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 1 additions and 1 deletions

2
Web/Presenters/OpenVKPresenter.php Normal file → Executable file
View file

@ -184,7 +184,7 @@ abstract class OpenVKPresenter extends SimplePresenter
{
$user = Authenticator::i()->getUser();
$this->template->isXmas = intval(date('d')) >= 15 && date('m') == 12 || intval(date('d')) <= 15 && date('m') == 1 ? true : false;
$this->template->isXmas = intval(date('d')) >= 1 && date('m') == 12 || intval(date('d')) <= 15 && date('m') == 1 ? true : false;
if(!is_null($user)) {
$this->user = (object) [];

BIN
Web/static/img/xheader_custom.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB