/** * Generate preview hack code of widget * * @access public * @return String */ function previewHack($args, $options) { if (!$options['title-enable'] && !$options['text-enable']) { return ""; } extract($args); $output = ""; if ($options['title-enable']) { $output .= $this->textfield->previewHack($args, $options); $output .= "<br/>"; if ($options['text-enable']) { $output .= "<br/>"; } } if ($options['text-enable']) { $output .= $this->textarea->previewHack($args, $options); } return $output; }
/** * Generate preview hack code of widget * * @access public * @return String */ function previewHack($args, $options) { return $this->textarea->previewHack($args, $options); }