/** * * @since 3.5.3 */ protected function _getReadmeContents($sFilePath, $sTOCTitle, $asSections = array()) { $_oWPReadmeParser = new AdminPageFramework_WPReadmeParser($sFilePath, array('%PLUGIN_DIR_URL%' => AdminPageFrameworkLoader_Registry::getPluginURL(), '%WP_ADMIN_URL%' => admin_url()), array('content_before_parsing' => array($this, '_replyToProcessShortcodes'))); $_sContent = ''; foreach ((array) $asSections as $_sSection) { $_sContent .= $_oWPReadmeParser->getSection($_sSection); } if ($sTOCTitle) { $_oTOC = new AdminPageFramework_TableOfContents($_sContent, 4, $sTOCTitle); return $_oTOC->get(); } return '' . $_sContent; }