File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/number.php.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/contact-form-7/includes/swv/php/rules/number.php 0000644 00000001104 15155355717 0031534 0 ustar 00 var/www/vhosts <?php
namespace Contactable\SWV;
class NumberRule extends Rule {
const rule_name = 'number';
public function matches( $context ) {
if ( false === parent::matches( $context ) ) {
return false;
}
if ( empty( $context['text'] ) ) {
return false;
}
return true;
}
public function validate( $context ) {
$input = $this->get_default_input();
$input = wpcf7_array_flatten( $input );
$input = wpcf7_exclude_blank( $input );
foreach ( $input as $i ) {
if ( ! wpcf7_is_number( $i ) ) {
return $this->create_error();
}
}
return true;
}
}
uyarreklam.com.tr/httpdocs/wp-content/themes/vadimarketv4/inc/temapanel/fields/number/number.php 0000644 00000001330 15156273347 0032110 0 ustar 00 var/www/vhosts <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
*
* Field: Number
*
* @since 1.0.0
* @version 1.0.0
*
*/
class CSFramework_Option_number extends CSFramework_Options {
public function __construct( $field, $value = '', $unique = '' ) {
parent::__construct( $field, $value, $unique );
}
public function output() {
echo $this->element_before();
$unit = ( isset( $this->field['unit'] ) ) ? '<em>'. $this->field['unit'] .'</em>' : '';
echo '<input type="number" name="'. $this->element_name() .'" value="'. $this->element_value().'"'. $this->element_class() . $this->element_attributes() .'/>'. $unit;
echo $this->element_after();
}
}