17 parent::__construct(CH_DIRECTORY_PATH_ROOT . $sHomeFolder . DIRECTORY_SEPARATOR, CH_WSB_URL_ROOT . $sHomeFolder .
'/');
19 $this->_sPrefix =
'ChWsbTemplateAdmin';
20 $this->_sInjectionsTable =
'sys_injections_admin';
21 $this->_sInjectionsCache =
'sys_injections_admin.inc';
23 $this->_sCodeKey =
'askin';
27 $this->
addLocationJs(
'system_admin_js', $this->_sRootPath .
'js/' , $this->_sRootUrl .
'js/');
44 case 'current_version':
48 if(
$GLOBALS[
'site'][
'pre-release'] !=
'') {
49 $sRet =
'.' .
$GLOBALS[
'site'][
'pre-release'];
56 return $a[
'Direction'];
61 if(!
empty(
$GLOBALS[$this->_sPrefix .
'PageKeywords']) && is_array(
$GLOBALS[$this->_sPrefix .
'PageKeywords']))
64 case 'page_description':
65 if(!
empty(
$GLOBALS[$this->_sPrefix .
'PageDescription']) && is_string(
$GLOBALS[$this->_sPrefix .
'PageDescription']))
70 $sRet =
$GLOBALS[$this->_sPrefix .
'PageTitle'];
71 else if(isset(
$GLOBALS[
'_page'][
'header']))
76 case 'page_header_text':
79 else if(isset(
$GLOBALS[
'_page'][
'header_text']))
80 $sRet =
$GLOBALS[
'_page'][
'header_text'];
84 case 'main_div_width':
104 if (defined(
'CH_PROMO_CODE'))