Sindbad~EG File Manager

Current Path : /home/frekansk/.trash/wp-content/plugins/elementskit-lite/compatibility/wpml/widgets/
Upload File :
Current File : //home/frekansk/.trash/wp-content/plugins/elementskit-lite/compatibility/wpml/widgets/tab.php

<?php
namespace ElementsKit_Lite\Compatibility\WPML\Widgets;

use WPML_Elementor_Module_With_Items;

if ( ! defined( 'ABSPATH' ) ) exit;


/**
 * Ekit_Image_Accordion
 *
 * @since 1.2.6
 */
class Ekit_Tab extends WPML_Elementor_Module_With_Items {

	/**
	 * Retrieve the field name.
	 *
	 * @since 1.2.6
	 * @return string
	 */
	public function get_items_field() {
		return 'ekit_tab_items';
	}

	/**
	 * Retrieve the fields inside the repeater
	 *
	 * @since 1.2.6
	 *
	 * @return array
	 */
	public function get_fields() {
		return array(
			'ekit_tab_title',
			'ekit_tab_content',
		);
	}

	/**
	 * Method for setting the title for each translatable field
	 *
	 * @since 1.2.6
	 *
	 * @param string $field The name of the field.
	 * @return string
	 */
	protected function get_title( $field ) {

		switch ( $field ) {
			case 'ekit_tab_title':
				return esc_html__( 'Title (Tab)', 'elementskit-lite' );
				break;

			case 'ekit_tab_content':
				return esc_html__( 'Content (Tab)', 'elementskit-lite' );
				break;

			default:
				return '';
		}

	}

	/**
	 * Method for determining the editor type for each field
	 *
	 * @since 1.2.6
	 *
	 * @param  string $field Name of the field.
	 * @return string
	 */
	protected function get_editor_type( $field ) {

		switch ( $field ) {
			case 'ekit_tab_title':
				return 'LINE';

			case 'ekit_tab_content':
				return 'VISUAL';

			default:
				return '';
		}

	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists