saimod langswitcher, sai css
This commit is contained in:
parent
20593db5d2
commit
64881854ab
@ -13,4 +13,5 @@ require_once dirname(__FILE__).'/saimod_sys_cache/autoload.inc';
|
|||||||
require_once dirname(__FILE__).'/saimod_sys_cron/autoload.inc';
|
require_once dirname(__FILE__).'/saimod_sys_cron/autoload.inc';
|
||||||
require_once dirname(__FILE__).'/saimod_sys_todo/autoload.inc';
|
require_once dirname(__FILE__).'/saimod_sys_todo/autoload.inc';
|
||||||
require_once dirname(__FILE__).'/saimod_sys_docu/autoload.inc';
|
require_once dirname(__FILE__).'/saimod_sys_docu/autoload.inc';
|
||||||
|
require_once dirname(__FILE__).'/saimod_sys_langswitcher/autoload.inc';
|
||||||
require_once dirname(__FILE__).'/saimod_sys_login/autoload.inc';
|
require_once dirname(__FILE__).'/saimod_sys_login/autoload.inc';
|
||||||
4
sai/modules/saimod_sys_langswitcher/autoload.inc
Normal file
4
sai/modules/saimod_sys_langswitcher/autoload.inc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'SYSTEM\SAI');
|
||||||
|
|
||||||
|
\SYSTEM\SAI\sai::register_sys('\SYSTEM\SAI\saimod_sys_langswitcher');
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
namespace SYSTEM\SAI;
|
||||||
|
|
||||||
|
class saimod_sys_langswitcher extends \SYSTEM\SAI\SaiModule {
|
||||||
|
public static function html_li_menu(){
|
||||||
|
$result = '';
|
||||||
|
$langs = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS);
|
||||||
|
foreach($langs as $lang){
|
||||||
|
$result .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_langswitcher/tpl/language.tpl'),array('lang' => $lang));}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
public static function right_public(){return true;}
|
||||||
|
public static function right_right(){}
|
||||||
|
|
||||||
|
//public static function css(){}
|
||||||
|
//public static function js(){}
|
||||||
|
}
|
||||||
@ -1,24 +1,48 @@
|
|||||||
/*
|
#sai_logo {
|
||||||
Document : index.css
|
padding-left: 10px;
|
||||||
Created on : 31.01.2013, 01:59:37
|
|
||||||
Author : CHRIS MEURISCH
|
|
||||||
Description:
|
|
||||||
Purpose of the stylesheet follows.
|
|
||||||
*/
|
|
||||||
|
|
||||||
.brand-logo{
|
|
||||||
float: left;
|
float: left;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
}
|
}
|
||||||
|
#sai_brand{
|
||||||
|
width: 170px;
|
||||||
|
}
|
||||||
|
|
||||||
.footer{
|
|
||||||
|
#sai_navbar{
|
||||||
|
height:40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#project_navbar{
|
||||||
|
width:224px;
|
||||||
|
position: fixed;
|
||||||
|
left: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
top: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content-wrapper{
|
||||||
|
overflow: auto;
|
||||||
|
position: absolute;
|
||||||
|
top: 40px;
|
||||||
|
bottom: 0px;
|
||||||
|
left: 224px;
|
||||||
|
right: 0px;
|
||||||
|
padding: 15px;
|
||||||
|
min-width:1000px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content{
|
||||||
|
width:100%
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer{
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
color: #777;
|
color: #777;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer a{
|
#footer a{
|
||||||
color: #777;
|
color: #777;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -49,14 +49,6 @@ class default_page extends \SYSTEM\PAGE\Page {
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function lang_switcher(){
|
|
||||||
$result = '';
|
|
||||||
$langs = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS);
|
|
||||||
foreach($langs as $lang){
|
|
||||||
$result .= \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'page/tpl/language.tpl'),array('lang' => $lang));}
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function html($_escaped_fragment_ = NULL){
|
public function html($_escaped_fragment_ = NULL){
|
||||||
$vars = array();
|
$vars = array();
|
||||||
$vars['css'] = self::css();
|
$vars['css'] = self::css();
|
||||||
@ -68,7 +60,6 @@ class default_page extends \SYSTEM\PAGE\Page {
|
|||||||
$vars['menu_proj'] = self::menu_proj();
|
$vars['menu_proj'] = self::menu_proj();
|
||||||
$vars['title'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE);
|
$vars['title'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE);
|
||||||
$vars['copyright'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT);
|
$vars['copyright'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT);
|
||||||
$vars['lang_switcher'] = self::lang_switcher();
|
|
||||||
|
|
||||||
$vars = array_merge($vars,\SYSTEM\locale::getStrings(\SYSTEM\DBD\system_locale_string::VALUE_CATEGORY_SYSTEM_SAI));
|
$vars = array_merge($vars,\SYSTEM\locale::getStrings(\SYSTEM\DBD\system_locale_string::VALUE_CATEGORY_SYSTEM_SAI));
|
||||||
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'page/tpl/sai.tpl'), $vars);
|
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'page/tpl/sai.tpl'), $vars);
|
||||||
|
|||||||
@ -8,28 +8,27 @@
|
|||||||
${js}
|
${js}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="sai_navbar" class="navbar navbar-fixed-top" style="height:40px;">
|
<div id="sai_navbar" class="navbar navbar-fixed-top">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<div class="brand-logo" style="padding-left: 10px;">
|
|
||||||
<img src="./api.php?call=files&cat=saistart_sys_sai&id=logo.png" height="24" width="24"/>
|
|
||||||
</div>
|
|
||||||
<a class="brand" href="#" style="width: 159px;">SAI</a>
|
|
||||||
${lang_switcher}
|
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
<a id="sai_logo" class="brand-logo" href="#!start">
|
||||||
|
<img src="./api.php?call=files&cat=saistart_sys_sai&id=logo.png" height="24" width="24"/>
|
||||||
|
<a id="sai_brand" class="brand" >SAI</a>
|
||||||
|
</a>
|
||||||
${menu_start}
|
${menu_start}
|
||||||
${menu_sys}
|
${menu_sys}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="project_navbar" style="width:224px; position: fixed; left: 0px; bottom: 0px; top: 38px;">
|
<div id="project_navbar">
|
||||||
<ul class="nav nav-tabs nav-stacked sai_project_modules">
|
<ul class="nav nav-tabs nav-stacked sai_project_modules">
|
||||||
${menu_proj}
|
${menu_proj}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div id="content-wrapper" style="overflow: auto; position: absolute; top: 40px; bottom: 0px; left: 224px; right: 0px; padding: 15px; min-width:1000px;">
|
<div id="content-wrapper">
|
||||||
<div id="content" style="width:100%"></div>
|
<div id="content"></div>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="footer"><p>${copyright}</p></div>
|
<div id="footer"><p>${copyright}</p></div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user