more configoptions for sai, title, copyright

This commit is contained in:
Ulf Gebhardt 2013-07-17 23:38:59 +02:00
parent a1834db941
commit 5e8f473f39
3 changed files with 6 additions and 2 deletions

View File

@ -23,4 +23,6 @@ class config_ids {
const SYS_SAI_CONFIG_BASEURL = 50;
const SYS_SAI_CONFIG_NAVIMG = 51;
const SYS_SAI_CONFIG_TITLE = 52;
const SYS_SAI_CONFIG_COPYRIGHT = 53;
}

View File

@ -54,6 +54,8 @@ class default_page extends \SYSTEM\PAGE\Page {
$vars['menu_sys'] = $this->menu_sys();
$vars['menu_proj'] = $this->menu_proj();
$vars['navimg'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG);
$vars['title'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE); //da_sense | Developer Center
$vars['copyright'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT); //&copy; <a href="http://www.da-sense.de" target="_blank">da_sense</a>, TU Darmstadt 2013
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'page/default_page/sai.tpl'), $vars);
}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>da_sense | Developer Center</title>
<title>${title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="icon" type="image/png" href="${navimg}" />
@ -34,7 +34,7 @@
<div id="content-wrapper"></div>
<hr>
<div class="footer">
<p>&copy; <a href="http://www.da-sense.de" target="_blank">da_sense</a>, TU Darmstadt 2013</p>
<p>${copyright}</p>
</div>
</div>
</body>