| 1 |
<?php |
| 2 |
namespace UiCoreElements\Compatibility; |
| 3 |
/** |
| 4 |
* Class WPML_UI_HighlightedText |
| 5 |
*/ |
| 6 |
class WPML_UI_HighlightedText extends \WPML_Elementor_Module_With_Items { |
| 7 |
|
| 8 |
/** |
| 9 |
* @return string |
| 10 |
*/ |
| 11 |
public function get_items_field() { |
| 12 |
return 'content'; |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* @return array |
| 17 |
*/ |
| 18 |
public function get_fields() { |
| 19 |
return array( 'text' ); |
| 20 |
} |
| 21 |
|
| 22 |
/** |
| 23 |
* @param string $field |
| 24 |
* @return string |
| 25 |
*/ |
| 26 |
protected function get_title( $field ) { |
| 27 |
switch( $field ) { |
| 28 |
|
| 29 |
case 'text': |
| 30 |
return esc_html__( 'Highlighted Text', 'uicore-elements' ); |
| 31 |
|
| 32 |
default: |
| 33 |
return ''; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
/** |
| 38 |
* @param string $field |
| 39 |
* @return string |
| 40 |
*/ |
| 41 |
protected function get_editor_type( $field ) { |
| 42 |
switch( $field ) { |
| 43 |
case 'text': |
| 44 |
return 'LINE'; |
| 45 |
|
| 46 |
default: |
| 47 |
return ''; |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
} |
| 52 |
|