11 if ($vars->setting_section ==
'general') {
13 $config->enable = ($vars->enable ===
'Y') ?
'Y' :
'N';
14 $config->use_optimize_title = $vars->use_optimize_title;
15 $config->site_name = $vars->site_name;
16 $config->site_slogan = $vars->site_slogan;
17 $config->site_description = $vars->site_description;
18 $config->site_keywords = $vars->site_keywords;
20 if ($vars->site_image) {
21 $path =
_XE_PATH_ .
'files/attach/site_image/';
22 $ext = strtolower(array_pop(explode(
'.', $vars->site_image[
'name'])));
24 $filename =
"site_image.{$timestamp}.{$ext}";
26 $config->site_image = $filename;
29 if($oCacheHandler->isSupport()) {
30 list($width, $height) = @getimagesize($path . $filename);
31 $site_image_dimension = array(
35 $cache_key =
'seo:site_image';
36 $oCacheHandler->put($cache_key, $site_image_dimension);
39 } elseif ($vars->setting_section ==
'analytics') {
43 $config->ga_id = trim($vars->ga_id);
44 $config->ga_except_admin = $vars->ga_except_admin;
47 $config->na_id = trim($vars->na_id);
48 $config->na_except_admin = $vars->na_except_admin;
49 } elseif ($vars->setting_section ==
'miscellaneous') {
53 $config->fb_app_id = trim($vars->fb_app_id);
54 $config->fb_admins = trim($vars->fb_admins);
57 $config->site_image_url = NULL;
61 if($config->enable ===
'Y') {
80 $modulePartConfig = $oModule->getModulePartConfig(
'seo', $vars->target_module_srl);
82 if (!$modulePartConfig) {
83 $modulePartConfig =
new stdClass();
87 $modulePartConfig->meta_description = htmlspecialchars($vars->meta_description, ENT_COMPAT | ENT_HTML401,
'UTF-8', FALSE);
setMessage($message= 'success', $type=NULL)
getController($module_name)
& getInstance($target= 'object', $info=null, $always_use_file=false)
procSeoAdminInsertModuleConfig()
setRedirectUrl($url= './', $output=NULL)
procSeoAdminSaveSetting()
copyFile($source, $target, $force= 'Y')