issue 160, apply google analytics script

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9194 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2011-09-19 06:11:39 +00:00
parent e33723c126
commit e38b406b62
5 changed files with 36 additions and 9 deletions

View file

@ -162,9 +162,10 @@
$selected_lang = Context::get('selected_lang');
$this->saveLangSelected($selected_lang);
//썸네일 세팅
$config = Context::gets('thumbnail_type');
$this->thumbnailCheck($config);
//모듈 설정 저장(썸네일, 풋터스크립트)
$config->thumbnail_type = Context::get('thumbnail_type');
$config->htmlFooter = Context::get('htmlFooter');
$this->setModulesConfig($config);
//파비콘
$favicon = Context::get('favicon');
@ -199,13 +200,18 @@
}
/* 썸내일 보여주기 방식 변경.*/
function thumbnailCheck($config){
function setModulesConfig($config){
if(!$config->thumbnail_type || $config->thumbnail_type != 'ratio' ) $args->thumbnail_type = 'crop';
if(!$config->thumbnail_type || $config->thumbnail_type != 'ratio' ) $args->thumbnail_type = 'crop';
else $args->thumbnail_type = 'ratio';
$oModuleController = &getController('module');
$output = $oModuleController->insertModuleConfig('document',$args);
$oModuleController = &getController('module');
$oModuleController->insertModuleConfig('document',$args);
unset($args);
$args->htmlFooter = $config->htmlFooter;
$oModuleController->insertModuleConfig('module',$args);
return $output;
}