403Webshell
Server IP : 39.106.62.82  /  Your IP : 216.73.217.128
Web Server : nginx/1.14.1
System : Linux iz2ze1m0zmp2dk5c3j5ap5z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /webdata/gohomesh.com/wp-content/plugins/pods/ui/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /webdata/gohomesh.com/wp-content/plugins/pods/ui/fields/slider.php
<?php
wp_enqueue_script( 'jquery-ui-slider' );
pods_form_enqueue_style( 'pods-styles' );

if ( is_array( $value ) ) {
	$value = implode( ',', $value );
}

if ( strlen( $value ) < 1 ) {
	$value = 0;
}

$values = explode( ',', $value );
$values = array(
	pods_var( 0, $values, pods_var( $form_field_type . '_min', $options, 0, null, true ) ),
	pods_var( 1, $values, pods_var( $form_field_type . '_max', $options, 100, null, true ) ),
);

$values[0] = max( $values[0], pods_var( $form_field_type . '_min', $options, 0 ) );
$values[1] = min( $values[1], pods_var( $form_field_type . '_min', $options, 100 ) );

if ( 0 == pods_var( $form_field_type . '_range', $options, 0 ) ) {
	$value        = $values[0];
	$output_value = $value;
} else {
	$value        = implode( ',', $values );
	$output_value = implode( ' - ', $values );
}

$attributes          = array();
$attributes['type']  = 'hidden';
$attributes['value'] = $value;
$attributes          = PodsForm::merge_attributes( $attributes, $name, $form_field_type, $options );
?>
<input<?php PodsForm::attributes( $attributes, $name, $form_field_type, $options ); ?> />

<div class="pods-slider-field pods-compat-container">
	<div id="<?php echo esc_js( $attributes['id'] ); ?>-range" class="pods-slider-range"></div>
	<div id="<?php echo esc_js( $attributes['id'] ); ?>-amount-display" class="pods-slider-field-display">
		<?php echo $output_value; ?>
	</div>
</div>

<script>
	jQuery( function ( $ ) {
		$( "#<?php echo esc_js( $attributes['id'] ); ?>-range" ).slider( {
			orientation : '<?php echo esc_js( pods_v( $form_field_type . '_orientation', $options, 'horizontal' ) ); ?>',
			min         : <?php echo esc_js( pods_v( $form_field_type . '_min', $options, 0 ) ); ?>,
			max         : <?php echo esc_js( pods_v( $form_field_type . '_max', $options, 100 ) ); ?>,
			step        : <?php echo esc_js( pods_v( $form_field_type . '_step', $options, 1 ) ); ?>,

			<?php
			if ( 1 == pods_var( $form_field_type . '_range', $options, 0 ) ) {
				?>
				range  : true,
				values : [
				<?php echo esc_js( $values[0] ); ?>,
				<?php echo esc_js( $values[1] ); ?>
			],
			slide  : function ( event, ui ) {
				$( "#<?php echo esc_js( $attributes['id'] ); ?>" ).val( ui.values[0] + ',' + ui.values[1] );
				$( "#<?php echo esc_js( $attributes['id'] ); ?>-amount-display" ).html( ui.values[0] + ' - ' + ui.values[1] );
			}
			<?php
			} else {
				?>
				range  : false,
				value  : <?php echo esc_js( $value ); ?>,
			slide  : function ( event, ui ) {
				$( "#<?php echo esc_js( $attributes['id'] ); ?>" ).val( ui.value );
				$( "#<?php echo esc_js( $attributes['id'] ); ?>-amount-display" ).html( ui.value );
			}
			<?php
			}//end if
			?>
			} );
	} );
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit