mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Microblog: Display a checkbox for posting a comment on behalf of a group in feeds
This commit is contained in:
parent
dc20ccb0be
commit
cc501cf3ba
1 changed files with 2 additions and 1 deletions
|
@ -129,7 +129,8 @@
|
||||||
{/foreach}
|
{/foreach}
|
||||||
<div n:ifset="$thisUser" id="commentTextArea{$commentTextAreaId}" n:attr="style => ($commentsCount == 0 ? 'display: none;')" class="commentsTextFieldWrap">
|
<div n:ifset="$thisUser" id="commentTextArea{$commentTextAreaId}" n:attr="style => ($commentsCount == 0 ? 'display: none;')" class="commentsTextFieldWrap">
|
||||||
{var commentsURL = "/al_comments/create/posts/" . $post->getId()}
|
{var commentsURL = "/al_comments/create/posts/" . $post->getId()}
|
||||||
{include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post}
|
{var club = is_null($club) ? ($post->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($post->getTargetWall())) : NULL) : $club}
|
||||||
|
{include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post, club => $club}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue