mirror of
https://github.com/openvk/openvk
synced 2024-12-24 17:41:07 +03:00
12 lines
484 B
XML
12 lines
484 B
XML
{var microblogEnabled = isset($thisUser) ? $thisUser->hasMicroblogEnabled() : false}
|
|
{if !$post->isPostedOnBehalfOfGroup()}
|
|
{var then = date_create("@" . $post->getOwner()->getOnline()->timestamp())}
|
|
{var now = date_create()}
|
|
{var diff = date_diff($now, $then)}
|
|
{/if}
|
|
|
|
{if $microblogEnabled}
|
|
{include "post/microblogpost.xml", post => $post, diff => $diff, commentSection => $commentSection}
|
|
{else}
|
|
{include "post/oldpost.xml", post => $post, diff => $diff}
|
|
{/if}
|