public function show() { if ($this->getOption('text') == '') { return ''; } $contentHtmlTag = new owebp_Html_Tag(array('tag' => 'span', 'id' => $this->getOption('fieldName'), 'content' => '<b>Help</b>: ' . $this->getOption('text'))); /* return with cover */ return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $contentHtmlTag->get())))->get(); }
public function show() { $contentHtmlTag = new owebp_Html_Tag(array('tag' => 'span', 'content' => (new owebp_TitleCreator(array('string' => $this->getOption('title'))))->get())); $titleText = trim($contentHtmlTag->get()); if ($this->getOption('required') == 1) { $requiredHtmlTag = new owebp_Html_Tag(array('tag' => 'span', 'content' => ' *', 'style' => 'color: red;')); $titleText .= ' ' . $requiredHtmlTag->get(); } $labelHtmlTag = new owebp_Html_Tag(array('tag' => 'label', 'class' => 'ui-widget-header', 'id' => $this->getOption('name'), 'style' => 'padding: 2px;', 'content' => trim($titleText))); /* return with cover */ return (new owebp_Html_FormFieldComponentCover(array('position' => $this->getOption('position'), 'content' => $labelHtmlTag->get())))->get(); }