Uname:Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64

Base Dir : /var/www/html

User : gavin


403WebShell
403Webshell
Server IP : 68.183.124.220  /  Your IP : 216.73.216.141
Web Server : Apache/2.4.18 (Ubuntu)
System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
User : gavin ( 1000)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/ninja-forms/deprecated/includes/admin/edit-field/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/ninja-forms/deprecated/includes/admin/edit-field/label.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
add_action('init', 'ninja_forms_register_edit_field_label');
function ninja_forms_register_edit_field_label(){
	add_action('ninja_forms_edit_field_before_registered', 'ninja_forms_edit_field_label', 10, 2);
}

function ninja_forms_edit_field_label( $field_id, $field_data ) {
	global $ninja_forms_fields;
	$field_row = ninja_forms_get_field_by_id($field_id);
	$field_type = $field_row['type'];
	$reg_field = $ninja_forms_fields[$field_type];
	$edit_label = $reg_field['edit_label'];
	if($edit_label){
		if(isset($field_data['label'])){
			$label = stripslashes($field_data['label']);
		}else{
			$label = '';
		}

		ninja_forms_edit_field_el_output($field_id, 'text', 'Label', 'label', $label, 'wide', '', 'widefat ninja-forms-field-label');
	}
}

add_action('init', 'ninja_forms_register_edit_field_label_pos');
function ninja_forms_register_edit_field_label_pos(){
	add_action('ninja_forms_edit_field_before_registered', 'ninja_forms_edit_field_label_pos', 10, 2 );
}

function ninja_forms_edit_field_label_pos( $field_id, $field_data ){
	global $ninja_forms_fields;
	$field_row = ninja_forms_get_field_by_id($field_id);
	$field_type = $field_row['type'];
	$reg_field = $ninja_forms_fields[$field_type];
	$edit_label_pos = $reg_field['edit_label_pos'];
	$label_pos_options = $reg_field['label_pos_options'];

	if( !$label_pos_options OR $label_pos_options == '' ){
		$options = array(
			array('name' => __( 'Left of Element', 'ninja-forms' ), 'value' => 'left'),
			array('name' => __( 'Above Element', 'ninja-forms' ), 'value' => 'above'),
			array('name' => __( 'Below Element', 'ninja-forms' ), 'value' => 'below'),
			array('name' => __( 'Right of Element', 'ninja-forms' ), 'value' => 'right'),
			array('name' => __( 'Inside Element', 'ninja-forms' ), 'value' => 'inside'),
		);
	}else{
		$options = $label_pos_options;
	}

	if($edit_label_pos){
		if(isset($field_data['label_pos'])){
			$label_pos = $field_data['label_pos'];
		}else{
			$label_pos = 'above';
		}

		ninja_forms_edit_field_el_output($field_id, 'select', __( 'Label Position', 'ninja-forms' ), 'label_pos', $label_pos, 'wide', $options, 'widefat');
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit