Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/plugins/themify-builder-pro/includes/dynamic-content/RequestVar.php
Ðазад
<?php /** * @package Themify Builder Pro * @link https://themify.me/ */ class Tbp_Dynamic_Item_RequestVar extends Tbp_Dynamic_Item { function get_category() { return 'advanced'; } function get_type() { return array( 'text', 'textarea', 'wp_editor' ); } function get_label() { return __( 'Request Variable', 'tbp' ); } function get_value( $args = array() ) { $args = wp_parse_args( $args, array( 'method' => 'get', 'name' => '', ) ); $value = ''; if ( $args['method'] === 'get' && isset( $_GET[ $args['name'] ] ) ) { $value = $_GET[ $args['name'] ]; } elseif ( $args['method'] === 'post' && isset( $_POST[ $args['name'] ] ) ) { $value = $_POST[ $args['name'] ]; } return $value; } function get_options() { return array( array( 'label' => __( 'Method', 'tbp' ), 'id' => 'method', 'type' => 'select', 'options' => array( 'get' => __( 'GET', 'tbp' ), 'post' => __( 'POST', 'tbp' ), ), ), array( 'label' => __( 'Name', 'tbp' ), 'id' => 'name', 'type' => 'text', ) ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка