GRAYBYTE WORDPRESS FILE MANAGER7365

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/nioscentre.in/wp-content/plugins/woolentor-addons/classes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/nioscentre.in/wp-content/plugins/woolentor-addons/classes//class.multi_language.php
<?php
namespace WooLentor\MultiLanguage;
use WooLentor\Traits\Singleton;
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

class Languages {
    use Singleton;
    
    /**
     * [$language_code]
     * @var string
     */
    public static $language_code;

    /**
     * Translator Name
     * @var 
     */
    public static $translator_name;

    /**
     * [__construct] Class constructor
    */
    public function __construct() {
        $this->set_language_code();
        add_filter( 'woolentor_current_language_code', [$this, 'get_language_code'] );
    }

    /**
     * [set_language_code]
     * @return [void]
    */
    public static function set_language_code() {
        
        if ( is_plugin_active( 'sitepress-multilingual-cms/sitepress.php' ) ) {
            self::$language_code = apply_filters( 'wpml_current_language', 'en' );
            self::$translator_name = 'wpml';
            
        } elseif ( function_exists( 'pll_current_language' ) ) {
            self::$language_code = pll_current_language();
            self::$translator_name = 'polylang';
        }
        
    }

    /**
     * [get_language_code]
     * @var $language_code
     * @return [string]
    */
    public static function get_language_code( $language_code ) {
        if ( self::$language_code ) {
            return self::$language_code;
        }
        return $language_code;
    }

    /**
     * Manage Single Text translate
     * @param mixed $name
     * @param mixed $value
     * @return mixed
     */
    public static function translator( $name, $value ){
        if ( 'polylang' === self::$translator_name && function_exists('pll_translate_string') ) {
            return pll_translate_string( $value, self::$translator_name );
        } elseif ( 'wpml' === self::$translator_name ) {
            return apply_filters( 'wpml_translate_single_string', $value, 'ShopLentor Module', $name );
        }
        return $value;
    }

}
Languages::instance();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 04 2025 08:32:06
giriqfky / giriqfky
0755
class.ajax_actions.php
7.966 KB
October 24 2024 07:32:34
giriqfky / giriqfky
0644
class.assest_management.php
15.554 KB
April 16 2025 09:07:38
giriqfky / giriqfky
0644
class.default_data.php
26.656 KB
April 01 2024 07:59:00
giriqfky / giriqfky
0644
class.icon_list.php
10.271 KB
April 11 2021 08:41:48
giriqfky / giriqfky
0644
class.installer.php
1.239 KB
August 12 2024 09:28:58
giriqfky / giriqfky
0644
class.multi_language.php
1.952 KB
October 07 2024 13:14:24
giriqfky / giriqfky
0644
class.page_action.php
2.472 KB
November 13 2022 10:00:24
giriqfky / giriqfky
0644
class.product_query.php
10.952 KB
May 04 2025 09:26:14
giriqfky / giriqfky
0644
class.third_party.php
1.033 KB
September 20 2022 07:59:24
giriqfky / giriqfky
0644
class.widgets_control.php
35.365 KB
April 01 2024 07:59:00
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF