mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Wall: Now you can go to owner's wall (Fixes #123)
This commit is contained in:
parent
676c51dcda
commit
4b1282c51a
2 changed files with 11 additions and 1 deletions
|
@ -250,6 +250,8 @@ final class WallPresenter extends OpenVKPresenter
|
|||
$this->logPostView($post, $wall);
|
||||
|
||||
$this->template->post = $post;
|
||||
if ($post->getTargetWall() > 0) $this->template->wallOwner = (new Users)->get($post->getTargetWall());
|
||||
else $this->template->wallOwner = (new Clubs)->get($post->getTargetWall());
|
||||
$this->template->cCount = $post->getCommentsCount();
|
||||
$this->template->cPage = (int) ($_GET["p"] ?? 1);
|
||||
$this->template->comments = iterator_to_array($post->getComments($this->template->cPage));
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
{block title}{_"post"}{/block}
|
||||
|
||||
{block header}
|
||||
<a href="{$wallOwner->getURL()}">
|
||||
{$wallOwner->getCanonicalName()}
|
||||
</a>
|
||||
»
|
||||
<a href="/wall{$wallOwner->getId()}">
|
||||
{_wall}
|
||||
</a>
|
||||
»
|
||||
{_"post"}
|
||||
{/block}
|
||||
|
||||
|
|
Loading…
Reference in a new issue