} } ?> <li class="back-matter <?php echo pb_get_section_type(get_post($bm['ID'])); ?> "><a href="<?php echo get_permalink($bm['ID']); ?> "><?php echo pb_strip_br($bm['post_title']); ?> </a> <?php if (pb_should_parse_subsections()) { $sections = pb_get_subsections($bm['ID']); if ($sections) { $s = 1; ?> <ul class="sections"> <?php foreach ($sections as $id => $name) { ?> <li class="section"><a href="<?php echo get_permalink($bm['ID']); ?> #<?php echo $id; ?> "><?php echo $name;
/** * Alias for pb_get_subsections. * * @param $id * * @return array */ function pb_get_sections($id) { return pb_get_subsections($id); }