$v) { $indexes = explode('.', $v['index']); $level = count($indexes); $e = explode(' - ', $v['name']); $file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'docs' . DIRECTORY_SEPARATOR . $v['name'] . '.php'; print '
 '. $v['index'] . '. " . end($e) .""; if ( ! file_exists($file)) { //print "[code]"; } print "
"; } } else { $e = explode(' - ', $_GET['chapter']); $subchapters = false; $found = false; foreach ($i as $k => $v) { if ($found) { if (strncmp($v['name'], $_GET['chapter'], strlen($_GET['chapter'])) === 0) { $subchapters = true; } break; } $parts = explode(' - ', $v['name']); $indexes = explode('.', $v['index']); if ($v['name'] === $_GET['chapter']) { if (isset($i[($k - 1)])) { $prev = $i[($k - 1)]; } if (isset($i[($k + 1)])) { $next = $i[($k + 1)]; } $foundKey = ($k + 1); $found = $v; } } ?>
>Prev >Next

$v) { $stack[] = $v; $links[] = "' . $v . ''; } print implode(' - ', $links); ?>

Table of contents
' . $i[$x]['index']; ?> ' . end($p); ?> renderBlock($found['name']); } ?>
  -- index
$v) { $indexes = explode('.', $v['index']); $level = count($indexes); $e = explode(' - ', $v['name']); if($level === 1) { $level++; print ' '. $v['index'] . '. " . end($e) ."
"; } } ?>