private function _getFAQSubSections($asItems)
{
if (empty($asItems)) {
return array();
}
$aItems = $this->getContentsByHeader($asItems, 5);
$_aNestedSections = array();
$_iLastIndex = count($aItems) - 1;
foreach ($aItems as $_iIndex => $_aContent) {
$_oParser = new AdminPageFramework_WPReadmeParser($_aContent[1]);
// If no sections, return the contents of the first item.
if (!$_aContent[0]) {
return $_oParser->get();
}
$_aNestedSections[] = array('section_id' => 'faq_item_' . $_iIndex, 'title' => $_aContent[0], 'collapsible' => array('toggle_all_button' => $_iLastIndex === $_iIndex ? array('bottom-right') : (0 === $_iIndex ? array('top-right') : false)), 'content' => $_oParser->get());
}
return $_aNestedSections;
}