findAll(); $links = anchor(route_to('home'), lang('Common.home'), [ 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); $links .= anchor(route_to('credits'), lang('Person.credits'), [ 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); $links .= anchor(route_to('map'), lang('Page.map.title'), [ 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); foreach ($pages as $page) { $links .= anchor($page->link, esc($page->title), [ 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', ]); } // if set in .env, add legal notice link at the end of page links if (config('App')->legalNoticeURL !== null) { $links .= anchor(config('App')->legalNoticeURL, lang('Common.legal_notice'), [ 'class' => 'px-2 py-1 underline hover:no-underline focus:ring-accent', 'target' => '_blank', 'rel' => 'noopener noreferrer', ]); } return ''; } }