22 lines
506 B
PHP
22 lines
506 B
PHP
<?php
|
|
use Application\Models\Person;
|
|
?>
|
|
<nav>
|
|
<?php
|
|
$a = '<a href="%s">%s</a>';
|
|
|
|
$routes = [
|
|
'interment' => 'interments',
|
|
'cemetery' => 'cemeteries',
|
|
'deed' => 'deeds',
|
|
'person' => 'people',
|
|
'user' => 'users'
|
|
];
|
|
foreach ($routes as $singular=>$plural) {
|
|
if (Person::isAllowed($plural, 'index')) {
|
|
echo sprintf($a, BASE_URI.'/'.$plural, $this->_(["labels.$singular", "labels.$plural", 2]));
|
|
}
|
|
}
|
|
?>
|
|
</nav>
|