public function generateInner() { $this->setClass('mFieldLabel'); $this->setRender('label'); if ($this->property->width) { $this->addStyle('width', $this->property->width); } if ($this->property->help) { $id = $this->getId() . 'help'; $this->page->addDojoRequire("dijit.Tooltip"); $help = new MImage($id, ' ', 'managerIconButtonHelp'); $this->text .= ' ' . $help->generate(); $this->getPage()->onLoad("new dijit.Tooltip({connectId: [\"{$id}\"], label: \"{$this->property->help}\"});"); } $this->inner = trim($this->text) != '' ? $this->render() : ''; }
function helper_image($matches) { $m = explode('|', $matches[1]); $source = Manager::getStaticURL('', 'images/' . $m[0], true); $image = new MImage('', '', '', $source); // return '<a ' . $class . ' href="/' . $target . '">' . $text . '</a>'; return $image->generate(); }