core/libraries/form_sections/inputs/EE_Button_Input.php 1 location
|
@@ 20-28 (lines=9) @@
|
| 17 |
|
/** |
| 18 |
|
* @param array $options |
| 19 |
|
*/ |
| 20 |
|
public function __construct($options = array()){ |
| 21 |
|
if( empty($options['button_content'])) { |
| 22 |
|
$options['button_content'] = esc_html__('Button', 'event_espresso'); |
| 23 |
|
} |
| 24 |
|
$this->_set_display_strategy(new EE_Button_Display_Strategy()); |
| 25 |
|
$this->_set_normalization_strategy(new EE_Text_Normalization()); |
| 26 |
|
$this->_add_validation_strategy( new EE_Plaintext_Validation_Strategy() ); |
| 27 |
|
parent::__construct($options); |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
core/libraries/form_sections/inputs/EE_Submit_Input.input.php 1 location
|
@@ 16-24 (lines=9) @@
|
| 13 |
|
/** |
| 14 |
|
* @param array $options |
| 15 |
|
*/ |
| 16 |
|
public function __construct($options = array()){ |
| 17 |
|
if( empty($options['default'])) { |
| 18 |
|
$options['default'] = esc_html__('Submit', 'event_espresso'); |
| 19 |
|
} |
| 20 |
|
$this->_set_display_strategy(new EE_Submit_Input_Display_Strategy()); |
| 21 |
|
$this->_set_normalization_strategy(new EE_Text_Normalization()); |
| 22 |
|
$this->_add_validation_strategy( new EE_Plaintext_Validation_Strategy() ); |
| 23 |
|
parent::__construct($options); |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
|