mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
12 lines
449 B
XML
12 lines
449 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}
|
|
{else}
|
|
{include "post/oldpost.xml", post => $post, diff => $diff}
|
|
{/if}
|