protected function getToc(PhrictionContent $content) { $toc = $content->getRenderedTableOfContents(); if ($toc) { $toc = phutil_tag_div('phui-document-toc-content', array(phutil_tag_div('phui-document-toc-header', pht('Contents')), $toc)); } return $toc; }