# uicore-elements/1.0.4/includes/compatibility/class-wpml-ui-highlighted-text.php

UiCore Elements – Free widgets and templates for Elementor, version 1.0.4. 52 lines.

- Page: https://pluginprobe.com/plugins/uicore-elements/1.0.4/code/includes/compatibility/class-wpml-ui-highlighted-text.php
- Raw: https://pluginprobe.com/plugins/uicore-elements/1.0.4/raw/includes/compatibility/class-wpml-ui-highlighted-text.php
- Modified: 2024-04-29T16:34:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/uicore-elements/1.0.4/code/includes/compatibility/class-wpml-ui-highlighted-text.php#L10-L20`.

```php
<?php
namespace UiCoreElements\Compatibility;
/**
 * Class WPML_UI_HighlightedText
 */
class WPML_UI_HighlightedText extends \WPML_Elementor_Module_With_Items {

	/**
	 * @return string
	 */
	public function get_items_field() {
		return 'content';
	}

	/**
	 * @return array
	 */
	public function get_fields() {
		return array( 'text' );
	}

	/**
	 * @param string $field
	 * @return string
	 */
	protected function get_title( $field ) {
		switch( $field ) {

			case 'text':
				return esc_html__( 'Highlighted Text', 'uicore-elements' );

			default:
				return '';
		}
	}

	/**
	 * @param string $field
	 * @return string
	 */
	protected function get_editor_type( $field ) {
		switch( $field ) {
			case 'text':
				return 'LINE';

			default:
				return '';
		}
	}

}

```
