phorge/src/applications/phame/controller/post/PhamePostViewController.php
phorge/src/applications/phame/controller/post/PhamePostViewController.php
Changes
Changes
src/applications/phame/controller/post/PhamePostViewController.php
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | if ($next) { | ||||
$next_view->setNext($next->getTitle(), | $next_view->setNext($next->getTitle(), | ||||
$next->getBestURI($is_live, $is_external)); | $next->getBestURI($is_live, $is_external)); | ||||
} | } | ||||
if ($prev) { | if ($prev) { | ||||
$next_view->setPrevious($prev->getTitle(), | $next_view->setPrevious($prev->getTitle(), | ||||
$prev->getBestURI($is_live, $is_external)); | $prev->getBestURI($is_live, $is_external)); | ||||
} | } | ||||
$monogram = $post->getMonogram(); | |||||
$document->setFoot($next_view); | $document->setFoot($next_view); | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
$properties = phutil_tag_div('phui-document-view-pro-box', $properties); | $properties = phutil_tag_div('phui-document-view-pro-box', $properties); | ||||
// Public viewers like search engines will not see the monogram | |||||
$title = $viewer->isLoggedIn() | |||||
? pht('%s %s', $monogram, $post->getTitle()) | |||||
: $post->getTitle(); | |||||
$page = $this->newPage() | $page = $this->newPage() | ||||
->setTitle($post->getTitle()) | ->setTitle($title) | ||||
->setPageObjectPHIDs(array($post->getPHID())) | ->setPageObjectPHIDs(array($post->getPHID())) | ||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->appendChild( | ->appendChild( | ||||
array( | array( | ||||
$hero, | $hero, | ||||
$document, | $document, | ||||
$about, | $about, | ||||
$properties, | $properties, | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |