PluginProbe
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets / 4.5.6
Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets v4.5.6
4.5.6 4.5.5 4.5.4 4.2.1 4.2.2 4.2.3 4.5.0 4.5.2 4.5.3 4.2.0 4.1.18 4.1.17 4.1.16 4.1.15 4.1.14 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.0.9 4.1.0 4.1.1 4.1.2 All 148 releases
ultimate-post-kit / includes / compatiblity / wpml / class-wpml-upk-pro-holux-tabs.php

class-wpml-upk-pro-holux-tabs.php in Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider & Blog Layout Widgets 4.5.6, at includes/compatiblity/wpml/class-wpml-upk-pro-holux-tabs.php

56 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace UltimatePostKit\Includes;
3
4 if ( ! defined( 'ABSPATH' ) ) {
5 exit; // Exit if accessed directly
6 }
7
8 /**
9 * Class WPML_UPK_Pro_Holux_Tabs
10 * Handles translation of repeater items in the Holux Tabs widget
11 */
12 class WPML_UPK_Pro_Holux_Tabs extends WPML_Module_With_Items {
13
14 /**
15 * @return string
16 */
17 public function get_items_field() {
18 return 'filter_item_list';
19 }
20
21 /**
22 * @return array
23 */
24 public function get_fields() {
25 return array(
26 'filter_label',
27 );
28 }
29
30 /**
31 * @param string $field
32 * @return string
33 */
34 protected function get_title( $field ) {
35 switch ( $field ) {
36 case 'filter_label':
37 return esc_html__( 'Label', 'ultimate-post-kit' );
38 default:
39 return '';
40 }
41 }
42
43 /**
44 * @param string $field
45 * @return string
46 */
47 protected function get_editor_type( $field ) {
48 switch ( $field ) {
49 case 'filter_label':
50 return 'LINE';
51 default:
52 return 'LINE';
53 }
54 }
55 }
56