openvk/Web/Presenters/templates/components/post.xml

15 lines
425 B
XML
Raw Normal View History

2022-04-24 08:06:45 +03:00
{var $microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
2021-01-27 20:40:37 +03:00
2023-07-05 18:06:15 +03:00
{if $post->canBeViewedBy($thisUser ?? NULL)}
2021-01-27 20:40:37 +03:00
{if $microblogEnabled}
2022-04-24 08:06:45 +03:00
{include "post/microblogpost.xml", post => $post, commentSection => $commentSection}
2021-01-27 20:40:37 +03:00
{else}
2022-04-24 08:06:45 +03:00
{include "post/oldpost.xml", post => $post}
2021-01-27 20:40:37 +03:00
{/if}
2023-07-05 18:06:15 +03:00
{else}
<div class="post post-divider">
<span style="color:gray;">{_no_access_post}</span>
</div>
{/if}