Ejemplo n.º 1
0
 /**
  * What to display in form
  * 
  * @access public
  * @return String
  */
 function form($args, $options)
 {
     if (!$options['title-enable'] && !$options['text-enable']) {
         return "";
     }
     extract($args);
     $output = "";
     if (TDOMF_Widget::isEditForm($mode, $tdomf_form_id)) {
         $post = get_post($tdomf_post_id);
         if ($post) {
             $options['content-title-default-text'] = $post->post_title;
             $options['content-text-default-text'] = $post->post_content;
         }
     }
     if ($options['title-enable']) {
         $output .= $this->textfield->form($args, $options);
         if ($options['text-enable']) {
             $output .= "<br/><br/>";
         }
     }
     if ($options['text-enable']) {
         $output .= $this->textarea->form($args, $options);
     }
     return $output;
 }
Ejemplo n.º 2
0
 /**
  * What to display in form
  * 
  * @access public
  * @return String
  */
 function form($args, $options)
 {
     return $this->textarea->form($args, $options);
 }