<!DOCTYPE html> <html lang="en"> <head> <title><?= $title ?></title> <link rel="stylesheet" href="/public/css/marx.css" /> <link rel="stylesheet" href="/public/css/base.css" /> </head> <body class="<?= $url_type ?> list"> <h1><?= WHOSE ?> <?= ucfirst($url_type) ?> <?= (strpos($route_path, 'collection') !== FALSE) ? 'Collection' : 'List' ?> [<a href="<?= full_url("", $other_type) ?>"><?= ucfirst($other_type) ?> List</a>]</h1> <nav> <ul> <?php foreach($nav_routes as $title => $nav_path): ?> <li class="<?= is_selected($nav_path, $route_path) ?>"><a href="<?= full_url($nav_path, $url_type) ?>"><?= $title ?></a></li> <?php endforeach ?> </ul> </nav> <br /> <nav> <ul> <li class="<?= is_not_selected('list', last_segment()) ?>"><a href="<?= full_url($route_path, $url_type) ?>">Cover View</a></li> <li class="<?= is_selected('list', last_segment()) ?>"><a href="<?= full_url("{$route_path}/list", $url_type) ?>">List View</a></li> </ul> </nav> <br />