diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php index ef7a8799..c706b825 100644 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -147,6 +147,7 @@ abstract class OpenVKPresenter extends SimplePresenter $this->user->id = $this->user->identity->getId(); $this->template->thisUser = $this->user->identity; $this->template->userTainted = $user->isTainted(); + $this->template->isXmas = intval(date('d')) >= 15 && date('m') == 12 || intval(date('d')) <= 15 && date('m') == 1 ? true : false; if($this->user->identity->isBanned() && !$this->banTolerant) { header("HTTP/1.1 403 Forbidden"); diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 74716efc..916a4909 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -17,12 +17,21 @@ {if $theme->inheritDefault()} {css "css/style.css"} {css "css/dialog.css"} + {if $isXmas} + {css "css/xmas.css"} + {/if} {/if} + {if $isXmas} + + {/if} {else} {css "css/style.css"} {css "css/dialog.css"} + {if $isXmas} + {css "css/xmas.css"} + {/if} {/if} {if $thisUser->getStyleAvatar() == 1} @@ -34,6 +43,9 @@ {else} {css "css/style.css"} {css "css/dialog.css"} + {if $isXmas} + {css "css/xmas.css"} + {/if} {/ifset} {ifset headIncludes}{include headIncludes}{/ifset} diff --git a/Web/Presenters/templates/components/wall.xml b/Web/Presenters/templates/components/wall.xml index 248f63fa..ddf0ae3e 100644 --- a/Web/Presenters/templates/components/wall.xml +++ b/Web/Presenters/templates/components/wall.xml @@ -4,7 +4,7 @@