protected function getSideNavBlogFilters() { $filters = parent::getSideNavBlogFilters(); if ($this->isBlogEdit()) { $filter = array('key' => 'blog/edit/' . $this->getBlogPHID(), 'name' => 'Edit Blog'); $filters[] = $filter; } else { $filter = array('key' => 'blog/new', 'name' => 'New Blog'); array_unshift($filters, $filter); } return $filters; }
protected function buildApplicationCrumbs() { $blog = $this->getBlog(); $post = $this->getPost(); $is_live = $this->getIsLive(); $is_external = $this->getIsExternal(); // If this is an external view, don't put the "Phame" crumb or the // "Blogs" crumb into the crumbs list. if ($is_external) { $crumbs = new PHUICrumbsView(); } else { $crumbs = parent::buildApplicationCrumbs(); $crumbs->addTextCrumb(pht('Blogs'), $this->getApplicationURI('blog/')); } $crumbs->setBorder(true); if ($blog) { if ($post) { if ($is_live) { if ($is_external) { $blog_uri = $blog->getExternalLiveURI(); } else { $blog_uri = $blog->getInternalLiveURI(); } } else { $blog_uri = $blog->getViewURI(); } } else { $blog_uri = null; } $crumbs->addTextCrumb($blog->getName(), $blog_uri); } if ($post) { $crumbs->addTextCrumb($post->getTitle()); } return $crumbs; }
public function newPage() { $page = parent::newPage(); if ($this->getIsLive()) { $page->addClass('phame-live-view')->setShowChrome(false)->setShowFooter(false); } return $page; }
public function newPage() { $page = parent::newPage(); if ($this->getIsLive()) { $page->setShowChrome(false)->setShowFooter(false); } return $page; }