Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /**
  * Generate preview of widget
  * 
  * @access public
  * @return String
  */
 function preview($args, $options)
 {
     return $this->textarea->preview($args, $options);
 }