| @@ -18,11 +18,8 @@ | ||
| 18 | 18 | public $note; |
| 19 | 19 | public $label; |
| 20 | 20 | public $title; |
| 21 | 21 | public $default; |
| 22 | - public $help; | |
| 23 | - public $error; | |
| 24 | - public $warning; | |
| 25 | 22 | |
| 26 | 23 | // Specific options */ |
| 27 | 24 | public $placeholder = ''; // text / textarea |
| 28 | 25 | public $icon; // checkbox-icon |
| @@ -44,12 +41,13 @@ | ||
| 44 | 41 | |
| 45 | 42 | //public |
| 46 | 43 | |
| 47 | 44 | |
| 45 | + | |
| 48 | 46 | /* Template */ |
| 49 | 47 | public $template; |
| 50 | 48 | public $main_class = 'option'; // row class - start template |
| 51 | - public $esc_function = 'esc_attr'; // escape function to run over the value | |
| 49 | + public $esc_function = 'esc_attr'; | |
| 52 | 50 | |
| 53 | 51 | /* Publish brake */ |
| 54 | 52 | public $publish = true; |
| 55 | 53 | public $output = ''; |
| @@ -99,9 +97,9 @@ | ||
| 99 | 97 | $output .= simpleTemplate::parse($start_tpl['path'], $this); |
| 100 | 98 | } |
| 101 | 99 | |
| 102 | 100 | $template = self::$templates[$this->template]; // template name; |
| 103 | - //do_action('mb/editor/before-field-' . $this->id, $this); | |
| 101 | + do_action('mb/editor/before-field-' . $this->id, $this); | |
| 104 | 102 | |
| 105 | 103 | $output .= simpleTemplate::parse($template['path'], $this); |
| 106 | 104 | |
| 107 | 105 | |
| @@ -118,9 +116,9 @@ | ||
| 118 | 116 | } |
| 119 | 117 | |
| 120 | 118 | if ($this->publish) |
| 121 | 119 | echo $output; |
| 122 | - //do_action('mb/editor/after-field-'. $this->id); // hook for extra fields. | |
| 120 | + do_action('mb/editor/after-field-'. $this->id); // hook for extra fields. | |
| 123 | 121 | |
| 124 | 122 | $this->output = $output; |
| 125 | 123 | return $output; |
| 126 | 124 | } |