load_wpml_modules(); $nodes_to_translate['upk-banner'] = [ 'conditions' => [ 'widgetType' => 'upk-banner', ], 'fields' => [ [ 'field' => 'title_text', 'type' => esc_html__( 'Title Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], [ 'field' => 'sub_title_text', 'type' => esc_html__( 'Sub Title Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], [ 'field' => 'description_text', 'type' => esc_html__( 'Description Text', 'ultimate-post-kit' ), 'editor_type' => 'VISUAL', ], [ 'field' => 'badge_text', 'type' => esc_html__( 'Badge Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], [ 'field' => 'banner_size_text', 'type' => esc_html__( 'Banner Size Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], [ 'field' => 'readmore_text', 'type' => esc_html__( 'Read More Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], 'readmore_link' => [ 'field' => 'url', 'type' => esc_html__( 'Read More Link', 'ultimate-post-kit' ), 'editor_type' => 'LINK', ], ] ]; $nodes_to_translate['upk-forbes-tabs'] = [ 'conditions' => [ 'widgetType' => 'upk-forbes-tabs', ], 'fields' => [ [ 'field' => 'header_title_text', 'type' => esc_html__( 'Header Label', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], ] ]; $nodes_to_translate['upk-remote-arrows'] = [ 'conditions' => [ 'widgetType' => 'upk-remote-arrows', ], 'fields' => [ [ 'field' => 'next_text', 'type' => esc_html__( 'Next Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], [ 'field' => 'prev_text', 'type' => esc_html__( 'Prev Text', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], ] ]; $nodes_to_translate['upk-news-ticker'] = [ 'conditions' => [ 'widgetType' => 'upk-news-ticker', ], 'fields' => [ [ 'field' => 'news_label', 'type' => esc_html__( 'Label', 'ultimate-post-kit' ), 'editor_type' => 'LINE', ], ] ]; $nodes_to_translate['upk-static-social-count'] = [ 'conditions' => [ 'widgetType' => 'upk-static-social-count', ], 'integration-class' => __NAMESPACE__ . '\\WPML_UPK_Static_Social_Count', 'fields' => [] ]; $nodes_to_translate['upk-social-share'] = [ 'conditions' => [ 'widgetType' => 'upk-social-share', ], 'integration-class' => __NAMESPACE__ . '\\WPML_UPK_Social_Share', 'fields' => [] ]; $nodes_to_translate['upk-social-link'] = [ 'conditions' => [ 'widgetType' => 'upk-social-link', ], 'integration-class' => __NAMESPACE__ . '\\WPML_UPK_Pro_Social_Link', 'fields' => [] ]; $nodes_to_translate['upk-holux-tabs'] = [ 'conditions' => [ 'widgetType' => 'upk-holux-tabs', ], 'integration-class' => __NAMESPACE__ . '\\WPML_UPK_Pro_Holux_Tabs', 'fields' => [] ]; $nodes_to_translate['upk-post-info'] = [ 'conditions' => [ 'widgetType' => 'upk-post-info', ], 'integration-class' => __NAMESPACE__ . '\\WPML_UPK_Pro_Post_Info', 'fields' => [] ]; return $nodes_to_translate; } /** * Returns the instance. * @since 3.1.0 * @return object */ public static function get_instance() { if (null == self::$instance) { self::$instance = new self; } return self::$instance; } }