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/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

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

if(!class_exists('acfe_field_textarea')):

class acfe_field_textarea extends acfe_field_extend{
    
    /**
     * initialize
     */
    function initialize(){
    
        $this->name = 'textarea';
        $this->defaults = array(
            'acfe_textarea_code' => 0,
        );
        
    }
    
    
    /**
     * field_group_admin_head
     */
    function field_group_admin_head(){
        
        add_filter('acf/prepare_field/name=new_lines', function($field){
            
            // check setting
            if(acf_maybe_get($field['wrapper'], 'data-setting') === 'textarea'){
                
                $field['conditional_logic'] = array(
                    array(
                        array(
                            'field'     => 'acfe_textarea_code',
                            'operator'  => '!=',
                            'value'     => '1'
                        )
                    )
                );
                
            }
            
            return $field;
            
        });
        
    }
    
    
    /**
     * render_field_settings
     *
     * @param $field
     */
    function render_field_settings($field){
        
        // code mode
        acf_render_field_setting($field, array(
            'label'         => __('Code mode'),
            'name'          => 'acfe_textarea_code',
            'key'           => 'acfe_textarea_code',
            'instructions'  => __('Switch font family to monospace and allow tab indent. For a more advanced code editor, please use the <code>Code Editor</code> field type', 'acfe'),
            'type'          => 'true_false',
            'ui'            => 1,
        ));
        
    }
    
    
    /**
     * field_wrapper_attributes
     *
     * @param $wrapper
     * @param $field
     *
     * @return mixed
     */
    function field_wrapper_attributes($wrapper, $field){
        
        // code mode
        if($field['acfe_textarea_code']){
            $wrapper['data-acfe-textarea-code'] = 1;
        }
    
        return $wrapper;
        
    }
    
}

acf_new_instance('acfe_field_textarea');

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit