function get_head() { $title = $this->map['title'] != '' ? $this->config['site']['name'] . $this->map['title'] : $this->config['site']['name']; // create head and ajax parts --- require_once "lib/ajax.lib.php"; $ajax = new KA(); $ajax->js_error = "alert(type);"; $ajax->timeout = 30; // export to ajax names of back-end functions if ($this->back_names != '') { foreach ($this->back_names as $val) { $ajax->export($val); } } $ajax->header = "Content-type: text/html; charset=UTF-8"; $ajax->init(); $ajax_js = $ajax->get_javascript(); $jscode = $this->config['site']['js_include'] . $ajax_js . $this->map['js_functions']; $jsonload = $this->map['js_onload'] ? "onload='" . $this->map['js_onload'] . "'" : ""; $this->map['head'] = "<!DOCTYPE html><html>\n<head>\n<title>" . $title . "</title>\n<link href='./css/" . $this->map['style'] . "' rel='stylesheet' type='text/css'>\n<meta http-equiv='content-type' content='text/html; charset=UTF-8'>\n<script src='js/jquery-2.1.1.min.js' type='text/javascript'></script>\n" . $this->map['js_include'] . "\n</head>\n<body " . $jsonload . ">\n<script language='JavaScript' >" . $jscode . "\n</script>"; }