issue 2686 set default site title

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12197 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-11-13 08:14:12 +00:00
parent 14f86d28ea
commit 60b0a76f3f
5 changed files with 29 additions and 2 deletions

View file

@ -488,8 +488,17 @@
if($type == "view" && $kind != 'admin'){
$module_config= $oModuleModel->getModuleConfig('module');
if($module_config->htmlFooter){
Context::addHtmlFooter($module_config->htmlFooter);
if($module_config->htmlFooter)
{
Context::addHtmlFooter($module_config->htmlFooter);
}
if($module_config->siteTitle)
{
$siteTitle = Context::getBrowserTitle();
if(!$siteTitle)
{
Context::setBrowserTitle($module_config->siteTitle);
}
}
}

View file

@ -347,6 +347,7 @@
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('module');
Context::set('siteTitle',$config->siteTitle);
Context::set('htmlFooter',$config->htmlFooter);

View file

@ -99,6 +99,10 @@
<value xml:lang="vi"><![CDATA[Bảng điều khiển]]></value>
<value xml:lang="tr"><![CDATA[Kontrol Paneli]]></value>
</item>
<item name="site_title">
<value xml:lang="ko"><![CDATA[사이트 제목]]></value>
<value xml:lang="en"><![CDATA[Site title]]></value>
</item>
<item name="start_module">
<value xml:lang="ko"><![CDATA[시작 모듈]]></value>
<value xml:lang="en"><![CDATA[Default Module]]></value>
@ -111,6 +115,10 @@
<value xml:lang="tr"><![CDATA[Varsayılan Modül]]></value>
<value xml:lang="vi"><![CDATA[Module trang chủ]]></value>
</item>
<item name="about_site_title">
<value xml:lang="ko"><![CDATA[세부 설정에서 사이트제목을 설정하지 않았을 경우 노출되는 제목입니다.]]></value>
<value xml:lang="en"><![CDATA[세부 설정에서 사이트제목을 설정하지 않았을 경우 노출되는 제목입니다.]]></value>
</item>
<item name="about_start_module">
<value xml:lang="ko"><![CDATA[사이트 접속 시 기본으로 호출될 모듈을 지정할 수 있습니다.]]></value>
<value xml:lang="en"><![CDATA[You can specify the default module for the site.]]></value>

View file

@ -13,6 +13,13 @@
<input type="hidden" name="module" value="install" />
<input type="hidden" name="act" value="procInstallAdminConfig" />
<div class="x_control-group">
<label class="x_control-label">{$lang->site_title}</label>
<div class="x_controls">
<input type="text" name="site_title" value="{$siteTitle}" />
{$lang->about_site_title}
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="_target_module">{$lang->start_module}</label>
<div class="x_controls">

View file

@ -223,6 +223,7 @@
//모듈 설정 저장(썸네일, 풋터스크립트)
$config->thumbnail_type = Context::get('thumbnail_type');
$config->htmlFooter = Context::get('htmlFooter');
$config->siteTitle = Context::get('site_title');
$this->setModulesConfig($config);
//파비콘
@ -265,6 +266,7 @@
unset($args);
$args->htmlFooter = $config->htmlFooter;
$args->siteTitle = $config->siteTitle;
$oModuleController->insertModuleConfig('module',$args);
return $output;