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