protected function GetPageMeta($strConf = 'SEO_CUSTOMPAGE_TITLE') { $strCrumbNames = ''; $strCrumbNamesR = ''; $arrCrumb = _xls_get_crumbtrail(); foreach ($arrCrumb as $crumb) { $strCrumbNames .= $crumb['name'] . " "; $strCrumbNamesR = $crumb['name'] . " " . $strCrumbNamesR; } $strItem = Yii::t('global', _xls_get_conf($strConf, '{storename}'), array('{storename}' => _xls_get_conf('STORE_NAME', ''), '{name}' => $this->family, '{title}' => $this->family, '{crumbtrail}' => $strCrumbNames, '{rcrumbtrail}' => $strCrumbNamesR)); return $strItem; }
protected function GetPageMeta($strConf = 'SEO_PRODUCT_TITLE') { if (isset($this->family)) { $family = $this->family->family; } else { $family = ""; } if (isset($this->class)) { $classname = $this->class->class_name; } else { $classname = ""; } $strItem = Yii::t('global', _xls_get_conf($strConf, '{storename}'), array("{code}" => $this->code, "{storename}" => _xls_get_conf('STORE_NAME', ''), "{name}" => $this->Title, "{description}" => $this->Title, "{shortdescription}" => $this->WebShortDescription, "{longdescription}" => $this->WebLongDescription, "{price}" => _xls_currency($this->Price), "{family}" => $family, "{class}" => $classname, "{crumbtrail}" => implode(" ", _xls_get_crumbtrail('names')), "{rcrumbtrail}" => implode(" ", array_reverse(_xls_get_crumbtrail('names'))))); $strItem = strip_tags($strItem); return $strItem; }