C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\inc\params\only_number\register.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Callback for new param 'penci_only_number'.
 *
 * @param array $settings
 * @param string $value
 *
 * @return string
 */
function penci_vc_param_only_number$settings$value ) {
    
ob_start();

    
$suffix =  isset( $settings['suffix'] ) ? esc_attr$settings['suffix'] ) : '';

    
$settings_max = isset(  $settings['max'] ) ?  $settings['max'] : '';
    
?>
    <input name="<?php echo esc_attr$settings['param_name'] ); ?>" class="wpb_vc_param_value penci-only-number-input wpb-textinput <?php echo esc_attr$settings['param_name'] ) . ' ' esc_attr$settings['type'] ); ?>_field" type="number" min="<?php echo esc_attr$settings['min'] ); ?>" max="<?php echo esc_attr$settings_max ); ?>" value="<?php echo esc_attr$value ); ?>" /><?php echo $suffix?>
    <?php
    
return ob_get_clean();
}

x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586