2022-03-24 15:29:00 +03:00
|
|
|
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
|
2020-06-07 19:04:43 +03:00
|
|
|
|
2023-05-26 18:13:47 +03:00
|
|
|
<div n:ifset="$thisUser" id="standaloneCommentBox">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $commentsURL = "/al_comments/create/$model/" . $parent->getId()}
|
|
|
|
{var $club = $parent instanceof \openvk\Web\Models\Entities\Post && $parent->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($parent->getTargetWall())) : $club}
|
2021-12-15 20:00:26 +03:00
|
|
|
{if !$readOnly}
|
2023-10-03 19:40:13 +03:00
|
|
|
{include "textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), club => $club, custom_id => $custom_id}
|
2021-12-15 20:00:26 +03:00
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{if sizeof($comments) > 0}
|
2024-11-22 16:31:07 +03:00
|
|
|
<div class='scroll_container'>
|
|
|
|
<div class='scroll_node' n:foreach="$comments as $comment">
|
|
|
|
{include "comment.xml", comment => $comment}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-12 15:15:50 +03:00
|
|
|
<div style="margin-top: 11px;">
|
|
|
|
{include "paginator.xml", conf => (object) ["page" => $page, "count" => $count, "amount" => sizeof($comments), "perPage" => 10]}
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
{else}
|
2022-03-24 15:29:00 +03:00
|
|
|
{_comments_tip}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|