mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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->setAbout($this->postParam("about"));
|
||||||
$club->setShortCode($this->postParam("shortcode"));
|
$club->setShortCode($this->postParam("shortcode"));
|
||||||
$club->setVerified(empty($this->postParam("verify") ? 0 : 1));
|
$club->setVerified(empty($this->postParam("verify") ? 0 : 1));
|
||||||
|
$club->setHide_From_Global_Feed(empty($this->postParam("hide_from_global_feed") ? 0 : 1));
|
||||||
$club->save();
|
$club->save();
|
||||||
break;
|
break;
|
||||||
case "ban":
|
case "ban":
|
||||||
|
|
|
@ -79,6 +79,12 @@
|
||||||
Верификация
|
Верификация
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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/>
|
<hr/>
|
||||||
<div class="buttons-container">
|
<div class="buttons-container">
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
|
Loading…
Reference in a new issue