示例#1
0
 /**
  *
  */
 protected function render_prefix($html = true)
 {
     $err = $this->parent->get_field_error($this->name);
     if ($html) {
         $ret = "<div class='ncf_row" . ($err ? " ncf_error" : "") . "'>" . "<div class='" . ($this->type == 'divider' ? 'ncf_divider' : 'ncf_caption') . "'>{$this->caption}</div>";
     } else {
         $ret = $this->caption;
     }
     return $ret;
 }