mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Xmas: Custom header and xmas is activated after 1 december
This commit is contained in:
parent
a36fe7b0e8
commit
c6ab5b0ac5
2 changed files with 1 additions and 1 deletions
2
Web/Presenters/OpenVKPresenter.php
Normal file → Executable file
2
Web/Presenters/OpenVKPresenter.php
Normal file → Executable 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
BIN
Web/static/img/xheader_custom.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 9.8 KiB |
Loading…
Reference in a new issue