diff --git a/Web/Models/Entities/Club.php b/Web/Models/Entities/Club.php index 26748d73..fff811f4 100644 --- a/Web/Models/Entities/Club.php +++ b/Web/Models/Entities/Club.php @@ -135,6 +135,11 @@ class Club extends RowModel return (bool) $this->getRecord()->everyone_can_create_topics; } + function isDisplayTopicsAboveWallEnabled(): bool + { + return (bool) $this->getRecord()->display_topics_above_wall; + } + function getType(): int { return $this->getRecord()->type; diff --git a/Web/Presenters/GroupPresenter.php b/Web/Presenters/GroupPresenter.php index 1af8ef28..7788c09e 100644 --- a/Web/Presenters/GroupPresenter.php +++ b/Web/Presenters/GroupPresenter.php @@ -208,6 +208,7 @@ final class GroupPresenter extends OpenVKPresenter $club->setWall(empty($this->postParam("wall")) ? 0 : 1); $club->setAdministrators_List_Display(empty($this->postParam("administrators_list_display")) ? 0 : $this->postParam("administrators_list_display")); $club->setEveryone_Can_Create_Topics(empty($this->postParam("everyone_can_create_topics")) ? 0 : 1); + $club->setDisplay_Topics_Above_Wall(empty($this->postParam("display_topics_above_wall")) ? 0 : 1);; $website = $this->postParam("website") ?? ""; if(empty($website)) diff --git a/Web/Presenters/templates/Group/Edit.xml b/Web/Presenters/templates/Group/Edit.xml index ecf17393..25c2b3d1 100644 --- a/Web/Presenters/templates/Group/Edit.xml +++ b/Web/Presenters/templates/Group/Edit.xml @@ -82,7 +82,8 @@ {_discussions}: