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

8 lines
260 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
{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}