class Core extends CI_Model {
public function get_menu() {
$menu = array(
- '#1' => 'Desktop',
- '#2' => 'Apps',
- '#3' => 'Test'
+ 'Desktop' => '#',
+ 'App' => '#',
+ 'Test' => '#',
+ 'GitHub' => 'https://github.com/mustis/WebOsProject'
);
print json_encode($menu);
}
<meta name="description" content="">\r
<meta name="author" content="">\r
\r
- <!--<link href="/public/css/bootstrap.min.css" rel="stylesheet">-->\r
- <link rel="stylesheet/less" type="text/css" href="/public/less/bootstrap.less">\r
+ <link href="/public/css/bootstrap.min.css" rel="stylesheet">\r
+ <!--<link rel="stylesheet/less" type="text/css" href="/public/less/bootstrap.less">-->\r
<script src="/public/js/jquery.min.js"></script>\r
\r
<!--[if lt IE 9]>\r
$.getJSON("/backend/get_menu", function(data) {\r
var menuitems = []\r
$.each(data, function(key, val) {\r
- menuitems.push('<li><a href="' + key + '">' + val + '</li>');\r
+ menuitems.push('<li><a href="' + val + '">' + key + '</li>');\r
});\r
$('<ul/>', {\r
'class': 'nav',\r