openvk/Web/Presenters/templates/components/post.xml
2023-08-11 10:01:54 +03:00

9 lines
No EOL
287 B
XML

{var $microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
<div class="infObj">
{if $microblogEnabled}
{include "post/microblogpost.xml", post => $post, commentSection => $commentSection}
{else}
{include "post/oldpost.xml", post => $post}
{/if}
</div>