| @@ -52,9 +52,28 @@ | ||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // Set builder control groups |
| 55 | 55 | public function set_control_groups() { |
| 56 | + do_action( | |
| 57 | + 'jfb/bricks/form/before-form-settings', | |
| 58 | + $this, | |
| 59 | + 'control_groups' | |
| 60 | + ); | |
| 61 | + | |
| 56 | 62 | $this->control_group_form_settings(); |
| 63 | + | |
| 64 | + do_action( | |
| 65 | + 'jfb/bricks/form/after-form-settings', | |
| 66 | + $this, | |
| 67 | + 'control_groups' | |
| 68 | + ); | |
| 69 | + | |
| 70 | + do_action( | |
| 71 | + 'jfb/bricks/form/before-style-sections', | |
| 72 | + $this, | |
| 73 | + 'control_groups' | |
| 74 | + ); | |
| 75 | + | |
| 57 | 76 | $this->control_group_form_style(); |
| 58 | 77 | $this->control_group_label_style(); |
| 59 | 78 | $this->control_group_description_style(); |
| 60 | 79 | $this->control_group_input_style(); |
| @@ -70,8 +89,14 @@ | ||
| 70 | 89 | $this->control_group_form_break_message_style(); |
| 71 | 90 | $this->control_group_form_progress_wrap_style(); |
| 72 | 91 | $this->control_group_form_progress_pages_style(); |
| 73 | 92 | $this->control_group_message_style(); |
| 93 | + | |
| 94 | + do_action( | |
| 95 | + 'jfb/bricks/form/after-style-sections', | |
| 96 | + $this, | |
| 97 | + 'control_groups' | |
| 98 | + ); | |
| 74 | 99 | } |
| 75 | 100 | |
| 76 | 101 | // Set builder controls |
| 77 | 102 | public function set_controls() { |
| @@ -110,8 +135,13 @@ | ||
| 110 | 135 | $options = Form_Arguments::get_options( true ); |
| 111 | 136 | |
| 112 | 137 | $this->start_jet_control_group( 'form_settings' ); |
| 113 | 138 | |
| 139 | + do_action( | |
| 140 | + 'jfb/bricks/form/settings/before-controls', | |
| 141 | + $this | |
| 142 | + ); | |
| 143 | + | |
| 114 | 144 | $this->register_jet_control( |
| 115 | 145 | 'form_id', |
| 116 | 146 | array( |
| 117 | 147 | 'tab' => 'content', |
| @@ -202,8 +232,13 @@ | ||
| 202 | 232 | 'label' => esc_html__( 'Clear data on success submit', 'jet-form-builder' ), |
| 203 | 233 | 'type' => 'checkbox', |
| 204 | 234 | 'default' => false, |
| 205 | 235 | ) |
| 236 | + ); | |
| 237 | + | |
| 238 | + do_action( | |
| 239 | + 'jfb/bricks/form/settings/after-controls', | |
| 240 | + $this | |
| 206 | 241 | ); |
| 207 | 242 | |
| 208 | 243 | $this->end_jet_control_group(); |
| 209 | 244 | } |