<?php
/**
* Config-file for navigation bar.
*
*/
return [
// Use for styling the menu
'class' => 'navbar',
// Here comes the menu strcture
'items' => [
// This is a menu item
'hem' => [
'text' => 'Tema',
'url' => '',
'title' => 'Tema'
],
// This is a menu item
'region' => [
'text' => 'Regioner',
'url' => 'regioner',
'title' => 'Regioner'
],
// This is a menu item
'grid' => [
'text' => 'Rutnät',
'url' => 'grid',
'title' => 'Visa rutnätet',
],
// This is a menu item
'typography' => [
'text' => 'Typografi',
'url' => 'typografi',
'title' => 'Typografi',
],
// This is a menu item
'font-awesome' => [
'text' =>'Font Awesome',
'url' =>'font-awesome',
'title' => 'Testa Font Awesome',
],
// This is a menu item
'source' => [
'text' =>'Källkod',
'url' =>'source',
'title' => 'Visa källkod',
],
],
// Callback tracing the current selected menu item base on scriptname
'callback' => function($url) {
if ($url == $this->di->get('request')->getRoute()) {
return true;
}
},
// Callback to create the urls
'create_url' => function($url) {
return $this->di->get('url')->create($url);
},
];