- ! Этот пост был размещён за взятку. -
diff --git a/Web/Models/Entities/User.php b/Web/Models/Entities/User.php index 8ebaaf6c..0543761e 100644 --- a/Web/Models/Entities/User.php +++ b/Web/Models/Entities/User.php @@ -73,6 +73,11 @@ class User extends RowModel { return (bool) $this->getRecord()->milkshake; } + + function hasMicroblogEnabled(): bool + { + return (bool) $this->getRecord()->microblog; + } function getChandlerGUID(): string { diff --git a/Web/Presenters/UserPresenter.php b/Web/Presenters/UserPresenter.php index 20534e5e..a018d4d2 100644 --- a/Web/Presenters/UserPresenter.php +++ b/Web/Presenters/UserPresenter.php @@ -263,6 +263,9 @@ final class UserPresenter extends OpenVKPresenter if (in_array($this->postParam("rating"), [0, 1])) $user->setShow_Rating((int) $this->postParam("rating")); + + if (in_array($this->postParam("microblog"), [0, 1])) + $user->setMicroblog((int) $this->postParam("microblog")); }elseif($_GET['act'] === "lMenu") { $settings = [ "menu_bildoj" => "photos", diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index a8232770..2dd98359 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -40,6 +40,11 @@ {if $thisUser->getStyleAvatar() == 2} {css "css/avatar.2.css"} {/if} + + + {if $thisUser->hasMicroblogEnabled() == 1} + {css "css/microblog.css"} + {/if} {else} {css "css/style.css"} {css "css/dialog.css"} diff --git a/Web/Presenters/templates/User/Settings.xml b/Web/Presenters/templates/User/Settings.xml index 823362c6..c40ad907 100644 --- a/Web/Presenters/templates/User/Settings.xml +++ b/Web/Presenters/templates/User/Settings.xml @@ -314,6 +314,17 @@ +
- - | -
-
-
-
-
-
- {$post->getText()|noescape}
-
-
-
-
-
- - ! Этот пост был размещён за взятку. -
- {var acutalAuthor = $post->getOwner(false)}
-
- Автор:
-
- {$acutalAuthor->getCanonicalName()}
-
-
-
- |
-
-
+ + | +
+
+
+
+
+
+ {$post->getText()|noescape}
+
+
+
+
+
+ + ! Этот пост был размещён за взятку. +
+ {var acutalAuthor = $post->getOwner(false)}
+
+ Автор:
+
+ {$acutalAuthor->getCanonicalName()}
+
+
+
+ |
+
+
+ + | +
+
+
+
+
+
+ {$post->getText()|noescape}
+
+
+
+
+
+ + ! Этот пост был размещён за взятку. +
+ {var acutalAuthor = $post->getOwner(false)}
+
+ Автор:
+
+ {$acutalAuthor->getCanonicalName()}
+
+
+
+ |
+
+