public function toText() { if ($this->panelWidth == 0) { $this->panelWidth = $this->getWidth(); } if ($this->panelHeight == 0) { $this->panelHeight = $this->getHeight(); } $template = new Gpf_Templates_Template($this->getTemplateName()); $template->setDelimiter('/*{', '}*/'); $template->assign('id', $this->getId()); $template->assign('name', $this->getName()); $template->assign('url', $this->getUrl()); $template->assign('width', $this->getWidth()); $template->assign('height', $this->getHeight()); $template->assign('panelWidth', $this->panelWidth - 40); $template->assign('panelHeight', $this->panelHeight - 75); $template->assign('properties', $this->getProperties()); $template->assign('autoRefreshTime', $this->getAutorefreshTime()); return $template->getHTML(); }
public function toText() { if ($this->panelWidth == 0) { $this->panelWidth = $this->getWidth(); } if ($this->panelHeight == 0) { $this->panelHeight = $this->getHeight(); } $template = new Gpf_Templates_Template($this->getTemplateName()); $template->setDelimiter('/*{', '}*/'); $template->assign('id', $this->getId()); $template->assign('name', $this->getName()); $template->assign('url', $this->getUrl()); $template->assign('width', $this->getWidth()); $template->assign('height', $this->getHeight()); $template->assign('panelWidth', $this->panelWidth - 10); $template->assign('panelHeight', $this->panelHeight - 10); $template->assign('properties', $this->getProperties()); $template->assign('rssEntries', $this->getRssEntries()); $template->assign('rssEntryImgUrl', Gpf_Paths::getInstance()->getImageUrl('icon-rss-small.png')); $template->assign('rssImgUrl', Gpf_Paths::getInstance()->getImageUrl('icon-rss-big.png')); return $template->getHTML(); }