| @@ -1048,11 +1048,25 @@ | ||
| 1048 | 1048 | * |
| 1049 | 1049 | * @access protected |
| 1050 | 1050 | */ |
| 1051 | 1051 | protected function register_controls() { |
| 1052 | + do_action( | |
| 1053 | + 'jfb/elementor/form/before-form-settings', | |
| 1054 | + $this | |
| 1055 | + ); | |
| 1052 | 1056 | |
| 1053 | 1057 | $this->section_form_settings(); |
| 1054 | 1058 | |
| 1059 | + do_action( | |
| 1060 | + 'jfb/elementor/form/after-form-settings', | |
| 1061 | + $this | |
| 1062 | + ); | |
| 1063 | + | |
| 1064 | + do_action( | |
| 1065 | + 'jfb/elementor/form/before-style-sections', | |
| 1066 | + $this | |
| 1067 | + ); | |
| 1068 | + | |
| 1055 | 1069 | /** Form Row */ |
| 1056 | 1070 | $this->section_form_style(); |
| 1057 | 1071 | |
| 1058 | 1072 | /** Label */ |
| @@ -1103,8 +1117,13 @@ | ||
| 1103 | 1117 | ); |
| 1104 | 1118 | |
| 1105 | 1119 | /** Messages */ |
| 1106 | 1120 | $this->section_message_error_style(); |
| 1121 | + | |
| 1122 | + do_action( | |
| 1123 | + 'jfb/elementor/form/after-style-sections', | |
| 1124 | + $this | |
| 1125 | + ); | |
| 1107 | 1126 | } |
| 1108 | 1127 | |
| 1109 | 1128 | private function section_form_settings() { |
| 1110 | 1129 | $options = Form_Arguments::get_options( true ); |
| @@ -1115,8 +1134,15 @@ | ||
| 1115 | 1134 | 'label' => __( 'Form Settings', 'jet-form-builder' ), |
| 1116 | 1135 | ) |
| 1117 | 1136 | ); |
| 1118 | 1137 | |
| 1138 | + do_action( | |
| 1139 | + 'jfb/elementor/form/settings/before-controls', | |
| 1140 | + $this, | |
| 1141 | + array(), | |
| 1142 | + $this | |
| 1143 | + ); | |
| 1144 | + | |
| 1119 | 1145 | $this->add_control( |
| 1120 | 1146 | 'form_id', |
| 1121 | 1147 | array( |
| 1122 | 1148 | 'label' => __( 'Choose Form', 'jet-form-builder' ), |
| @@ -1211,8 +1237,15 @@ | ||
| 1211 | 1237 | 'label_off' => __( 'No', 'jet-form-builder' ), |
| 1212 | 1238 | 'return_value' => 'yes', |
| 1213 | 1239 | 'default' => '', |
| 1214 | 1240 | ) |
| 1241 | + ); | |
| 1242 | + | |
| 1243 | + do_action( | |
| 1244 | + 'jfb/elementor/form/settings/after-controls', | |
| 1245 | + $this, | |
| 1246 | + array(), | |
| 1247 | + $this | |
| 1215 | 1248 | ); |
| 1216 | 1249 | |
| 1217 | 1250 | $this->end_controls_section(); |
| 1218 | 1251 | } |