mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Admin: Add ability to disable display of group posts in the global feed
This commit is contained in:
parent
dd236c0034
commit
5e80477ae2
2 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,7 @@ final class AdminPresenter extends OpenVKPresenter
|
|||
$club->setAbout($this->postParam("about"));
|
||||
$club->setShortCode($this->postParam("shortcode"));
|
||||
$club->setVerified(empty($this->postParam("verify") ? 0 : 1));
|
||||
$club->setHide_From_Global_Feed(empty($this->postParam("hide_from_global_feed") ? 0 : 1));
|
||||
$club->save();
|
||||
break;
|
||||
case "ban":
|
||||
|
|
|
@ -79,6 +79,12 @@
|
|||
Верификация
|
||||
</label>
|
||||
</div>
|
||||
<div class="group">
|
||||
<input class="toggle-large" type="checkbox" id="hide_from_global_feed" name="hide_from_global_feed" value="1" {if $club->isHideFromGlobalFeedEnabled()} checked {/if} />
|
||||
<label for="hide_from_global_feed">
|
||||
Не отображать записи в глобальной ленте
|
||||
</label>
|
||||
</div>
|
||||
<hr/>
|
||||
<div class="buttons-container">
|
||||
<div class="buttons">
|
||||
|
|
Loading…
Reference in a new issue