2020-06-07 19:04:43 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-08-09 09:37:08 +03:00
|
|
|
{block title}{_post}{/block}
|
2020-06-07 19:04:43 +03:00
|
|
|
|
|
|
|
{block header}
|
2021-09-17 20:17:45 +03:00
|
|
|
<a href="{$wallOwner->getURL()}">
|
|
|
|
{$wallOwner->getCanonicalName()}
|
|
|
|
</a>
|
|
|
|
»
|
2021-09-17 20:46:32 +03:00
|
|
|
<a href="/wall{$wallOwner->getId() * ($isWallOfGroup ? -1 : 1)}">
|
2021-09-17 20:17:45 +03:00
|
|
|
{_wall}
|
|
|
|
</a>
|
|
|
|
»
|
2022-08-09 09:37:08 +03:00
|
|
|
{_post}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
2022-08-12 11:11:08 +03:00
|
|
|
{include "../components/post.xml", post => $post, forceNoCommentsLink => TRUE, forceNoPinLink => TRUE, forceNoDeleteLink => TRUE}
|
2020-06-07 19:04:43 +03:00
|
|
|
<hr/>
|
2022-08-12 11:11:08 +03:00
|
|
|
<div n:if="$wallOwner->getPrivacyPermission('comments.read', $thisUser)" style="float: left; min-height: 100px; width: 68%;">
|
2020-06-07 19:04:43 +03:00
|
|
|
{include "../components/comments.xml",
|
|
|
|
comments => $comments,
|
|
|
|
count => $cCount,
|
|
|
|
page => $cPage,
|
|
|
|
model => "posts",
|
2022-08-12 11:11:08 +03:00
|
|
|
parent => $post,
|
|
|
|
readOnly => (!$wallOwner->getPrivacyPermission('comments.write', $thisUser) XOR $post->isClosed()) }
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2022-08-12 11:11:08 +03:00
|
|
|
<div style="float: right; min-height: 100px; width: 32%;">
|
2020-08-20 17:05:00 +03:00
|
|
|
<h4>{_actions}</h4>
|
2020-06-18 14:22:32 +03:00
|
|
|
{if isset($thisUser)}
|
2022-08-12 11:11:08 +03:00
|
|
|
{var $canPin = $post->canBePinnedBy($thisUser)}
|
|
|
|
{var $canClose = $post->canBeClosedBy($thisUser)}
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $canDelete = $post->canBeDeletedBy($thisUser)}
|
2020-06-18 14:22:32 +03:00
|
|
|
{/if}
|
2022-08-12 11:11:08 +03:00
|
|
|
|
|
|
|
{if $canPin}
|
|
|
|
{if $post->isPinned()}
|
|
|
|
<a class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/pin?act=unpin&hash={rawurlencode($csrfToken)}">{_unpin}</a>
|
|
|
|
{else}
|
|
|
|
<a class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/pin?act=pin&hash={rawurlencode($csrfToken)}">{_pin}</a>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
{if $canClose}
|
|
|
|
{if $post->isClosed()}
|
|
|
|
<a class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/open?act=open&hash={rawurlencode($csrfToken)}">{_enable_comments}</a>
|
|
|
|
{else}
|
|
|
|
<a class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/open?act=close&hash={rawurlencode($csrfToken)}">{_disable_comments}</a>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
2020-08-20 17:05:00 +03:00
|
|
|
<a n:if="$canDelete ?? false" class="profile_link" style="display:block;width:96%;" href="/wall{$post->getPrettyId()}/delete">{_delete}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
{/block}
|