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->logPostView($post, $wall);
|
||||||
|
|
||||||
$this->template->post = $post;
|
$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->cCount = $post->getCommentsCount();
|
||||||
$this->template->cPage = (int) ($_GET["p"] ?? 1);
|
$this->template->cPage = (int) ($_GET["p"] ?? 1);
|
||||||
$this->template->comments = iterator_to_array($post->getComments($this->template->cPage));
|
$this->template->comments = iterator_to_array($post->getComments($this->template->cPage));
|
||||||
|
|
|
@ -2,7 +2,15 @@
|
||||||
{block title}{_"post"}{/block}
|
{block title}{_"post"}{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
{_"post"}
|
<a href="{$wallOwner->getURL()}">
|
||||||
|
{$wallOwner->getCanonicalName()}
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
<a href="/wall{$wallOwner->getId()}">
|
||||||
|
{_wall}
|
||||||
|
</a>
|
||||||
|
»
|
||||||
|
{_"post"}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block content}
|
{block content}
|
||||||
|
|
Loading…
Reference in a new issue