|
@@ 41-46 (lines=6) @@
|
| 38 |
|
$views[$id]["data"]["breadcrumb"] = $this->createBreadcrumb($route); |
| 39 |
|
break; |
| 40 |
|
|
| 41 |
|
case "next-previous": |
| 42 |
|
$baseRoute = dirname($routeIndex); |
| 43 |
|
list($next, $previous) = $this->findNextAndPrevious($routeIndex); |
| 44 |
|
$views[$id]["data"]["next"] = $next; |
| 45 |
|
$views[$id]["data"]["previous"] = $previous; |
| 46 |
|
break; |
| 47 |
|
|
| 48 |
|
case "single": // OBSOLETE |
| 49 |
|
case "content": |
|
@@ 83-89 (lines=7) @@
|
| 80 |
|
$this->orderToc($baseRoute, $meta); |
| 81 |
|
break; |
| 82 |
|
|
| 83 |
|
case "toc": |
| 84 |
|
$baseRoute = dirname($routeIndex); |
| 85 |
|
$toc = $this->meta[$baseRoute]["__toc__"]; |
| 86 |
|
$this->limitToc($toc, $meta); |
| 87 |
|
$views[$id]["data"]["toc"] = $toc; |
| 88 |
|
$views[$id]["data"]["meta"] = $meta; |
| 89 |
|
break; |
| 90 |
|
|
| 91 |
|
case "toc-route": |
| 92 |
|
// Get the toc for a specific route |