# ultimate-post-kit/4.5.5/includes/compatiblity/wpml/class-wpml-upk-static-social-count.php

Ultimate Post Kit – Elementor Post Grid, Post Carousel, Post Slider &amp; Blog Layout Widgets, version 4.5.5. 65 lines.

- Page: https://pluginprobe.com/plugins/ultimate-post-kit/4.5.5/code/includes/compatiblity/wpml/class-wpml-upk-static-social-count.php
- Raw: https://pluginprobe.com/plugins/ultimate-post-kit/4.5.5/raw/includes/compatiblity/wpml/class-wpml-upk-static-social-count.php
- Modified: 2026-09-24T07:02:10+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/ultimate-post-kit/4.5.5/code/includes/compatiblity/wpml/class-wpml-upk-static-social-count.php#L10-L20`.

```php
<?php
namespace UltimatePostKit\Includes;

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

/**
 * Class WPML_UPK_Static_Social_Count
 * Handles translation of repeater items in the Static Social Count widget
 */
class WPML_UPK_Static_Social_Count extends WPML_Module_With_Items {

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

    /**
     * @return array
     */
    public function get_fields() {
        return array(
            'social_site_name',
            'social_site_meta',
            'social_site_link' => ['url'],
        );
    }

    /**
     * @param string $field
     * @return string
     */
    protected function get_title( $field ) {
        switch ( $field ) {
            case 'social_site_name':
                return esc_html__( 'Label', 'ultimate-post-kit' );
            case 'social_site_link':
                return esc_html__( 'Link', 'ultimate-post-kit' );
            case 'social_site_meta':
                return esc_html__( 'Meta', 'ultimate-post-kit' );
            default:
                return '';
        }
    }

    /**
     * @param string $field
     * @return string
     */
    protected function get_editor_type( $field ) {
        switch ( $field ) {
            case 'social_site_name':
            case 'social_site_meta':
                return 'LINE';
            case 'social_site_link':
                return 'LINK';
            default:
                return 'LINE';
        }
    }
}

```
