summaryrefslogtreecommitdiffstats
path: root/include/dnxcf_options-register.php
diff options
context:
space:
mode:
authordanix <danix@danix.xyz>2020-11-04 15:35:56 +0100
committerdanix <danix@danix.xyz>2020-11-04 15:35:56 +0100
commit244ec72c6d7d554518ff89598cb999d39614af0d (patch)
tree6c3a6a49b539563a97e678cc4c962f184990ded7 /include/dnxcf_options-register.php
parent8c3e9b00bbeb0a3493d5b0e9b6cc4c68d413a4b0 (diff)
downloaddanixland-contact-form-244ec72c6d7d554518ff89598cb999d39614af0d.tar.gz
danixland-contact-form-244ec72c6d7d554518ff89598cb999d39614af0d.zip
Removed Genericons. Added dnxcf-font which is a subset of fontawesome.
Removed every reference to gmaps. Added honeypot field. NEEDS TESTING!! modificato: danixland-contact-form.php modificato: include/dnxcf_helper.php modificato: include/dnxcf_mail_template_danixland.php modificato: include/dnxcf_options-display.php modificato: include/dnxcf_options-register.php modificato: include/dnxcf_settings.php nuovo file: style/dnxcf-font.css modificato: style/dnxcf_style.css nuovo file: style/font/dnxcf.eot nuovo file: style/font/dnxcf.svg nuovo file: style/font/dnxcf.ttf nuovo file: style/font/dnxcf.woff nuovo file: style/font/dnxcf.woff2 eliminato: style/genericons/Genericons.eot eliminato: style/genericons/Genericons.svg eliminato: style/genericons/Genericons.ttf eliminato: style/genericons/Genericons.woff eliminato: style/genericons/genericons.css
Diffstat (limited to 'include/dnxcf_options-register.php')
-rw-r--r--include/dnxcf_options-register.php21
1 files changed, 1 insertions, 20 deletions
diff --git a/include/dnxcf_options-register.php b/include/dnxcf_options-register.php
index e540806..5731573 100644
--- a/include/dnxcf_options-register.php
+++ b/include/dnxcf_options-register.php
@@ -1,5 +1,5 @@
<?php
-defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
+defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
// include the file with the actual markup for the options to display
require( dirname( __FILE__ ) . '/dnxcf_options-display.php' );
@@ -48,20 +48,6 @@ function dnxcf_setup_validate( $input ) {
'p' => array(),
);
$valid_input['dnxcf_privacy'] = ( '' == $input['dnxcf_privacy'] ? false : wp_kses( $input['dnxcf_privacy'], $valid_html ) );
- // latitude and longitude
- $valid_input['dnxcf_gmap_message'] = ( '' == $input['dnxcf_gmap_message'] ? $default_options['dnxcf_gmap_message'] : sanitize_text_field( $input['dnxcf_gmap_message'] ) );
- if ( '' != $input['dnxcf_latitude'] ) {
- $valid_input['dnxcf_latitude'] = ( preg_match( '/^[-]?[0-8]?[0-9]\.\d+|[-]?90\.0+?/A', $input['dnxcf_latitude'] ) ? $input['dnxcf_latitude'] : '' );
- } else {
- $valid_input['dnxcf_latitude'] = '';
- }
- $valid_input['dnxcf_apikey'] = ( '' == $input['dnxcf_apikey'] ? $default_options['dnxcf_apikey'] : sanitize_html_class( $input['dnxcf_apikey'] ) );
-
- if ( '' != $input['dnxcf_longitude'] ) {
- $valid_input['dnxcf_longitude'] = ( preg_match( '/[-]?1[0-7][0-9]\.\d+|[-]?[0-9]?[0-9]\.\d+|[-]?180\.0+?/A', $input['dnxcf_longitude'] ) ? $input['dnxcf_longitude'] : '' );
- } else {
- $valid_input['dnxcf_longitude'] = '';
- }
} elseif ( $reset ) {
$default_options = dnxcf_set_options();
// content type
@@ -76,11 +62,6 @@ function dnxcf_setup_validate( $input ) {
$valid_input['dnxcf_from_name'] = $default_options['dnxcf_from_name'];
// subject options
$valid_input['dnxcf_privacy'] = $default_options['dnxcf_privacy'];
- // latitude and longitude
- $valid_input['dnxcf_gmap_message'] = $default_options['dnxcf_gmap_message'];
- $valid_input['dnxcf_apikey'] = $default_options['dnxcf_apikey'];
- $valid_input['dnxcf_latitude'] = $default_options['dnxcf_latitude'];
- $valid_input['dnxcf_longitude'] = $default_options['dnxcf_longitude'];
}
return $valid_input;
}