示例#1
0
 /**
  * Compute the tag
  *
  * @return string the PHP / HTML content computed
  * @access private
  */
 protected function _compute()
 {
     if ($this->_parameters['context'] == CMS_XMLTag::HTML_CONTEXT) {
         if (!isset($this->_computeParams['object']) || !$this->_computeParams['object'] instanceof CMS_page) {
             return '';
         }
         return CMS_websitesCatalog::getWebsiteValue($this->_computeParams['object']->getWebsite()->getID(), $this->_attributes['name']);
     } else {
         return '$content .= CMS_websitesCatalog::getWebsiteValue(CMS_tree::getPageValue($parameters[\'pageID\'], \'website\'), \'' . $this->_attributes['name'] . '\');';
     }
 }