Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) { exit('No direct script access allowed'); } |
||
20 | View Code Duplication | 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 | |||
51 |