diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index 07258877..6dcc70fd 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -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)); diff --git a/Web/Presenters/templates/Wall/Post.xml b/Web/Presenters/templates/Wall/Post.xml index 3137310d..26db2119 100644 --- a/Web/Presenters/templates/Wall/Post.xml +++ b/Web/Presenters/templates/Wall/Post.xml @@ -2,7 +2,15 @@ {block title}{_"post"}{/block} {block header} - {_"post"} + + {$wallOwner->getCanonicalName()} + + » + + {_wall} + + » + {_"post"} {/block} {block content}