private function getTemplate() { if ($this->intLayoutId) { if (!class_exists('layout')) { include CUR_CONF_PATH . 'lib/layout.class.php'; } $objLayout = new layout(); $template = $objLayout->joinLayoutTemplate($this->intLayoutId); } else { if ($this->strTemplateSign) { $strStyle = $this->strCurrStyle ? $this->strCurrStyle : $this->strDefaultStyle; $strMaterialUrl = $this->strMaterialUrl ? $this->strMaterialUrl : $this->settings['template_image_url']; $intSiteId = $this->intUseGlobalTemplate ? 0 : $this->intSiteId; $template = common::get_template_cache($this->strTemplateSign, $strStyle, $intSiteId, $strMaterialUrl); } } $this->strTemplate = $template; return $this->strTemplate; }