|
@@ 2066-2078 (lines=13) @@
|
| 2063 |
|
$oModuleAdminModel = getAdminModel('module'); |
| 2064 |
|
$langs = $oModuleAdminModel->getLangCode($site_srl, $title); |
| 2065 |
|
|
| 2066 |
|
if(count($langs)) |
| 2067 |
|
{ |
| 2068 |
|
foreach($langs as $key => $val) |
| 2069 |
|
{ |
| 2070 |
|
$val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
| 2071 |
|
$php_header_buff .= sprintf( |
| 2072 |
|
'$_titles[%d]["%s"] = "%s"; ', |
| 2073 |
|
$category_srl, |
| 2074 |
|
$key, |
| 2075 |
|
str_replace('"','\\"', $val) |
| 2076 |
|
); |
| 2077 |
|
} |
| 2078 |
|
} |
| 2079 |
|
|
| 2080 |
|
$langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
| 2081 |
|
|
|
@@ 2082-2094 (lines=13) @@
|
| 2079 |
|
|
| 2080 |
|
$langx = $oModuleAdminModel->getLangCode($site_srl, $description); |
| 2081 |
|
|
| 2082 |
|
if(count($langx)) |
| 2083 |
|
{ |
| 2084 |
|
foreach($langx as $key => $val) |
| 2085 |
|
{ |
| 2086 |
|
$val = htmlspecialchars($val, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); |
| 2087 |
|
$php_header_buff .= sprintf( |
| 2088 |
|
'$_descriptions[%d]["%s"] = "%s"; ', |
| 2089 |
|
$category_srl, |
| 2090 |
|
$key, |
| 2091 |
|
str_replace('"','\\"', $val) |
| 2092 |
|
); |
| 2093 |
|
} |
| 2094 |
|
} |
| 2095 |
|
|
| 2096 |
|
// Create attributes(Use the category_srl_list to check whether to belong to the menu's node. It seems to be tricky but fast fast and powerful;) |
| 2097 |
|
$attribute = sprintf( |