true ) ); } public function tag_handler_callback( $tag ) { if ( empty( $tag->name ) ) { return ''; } $validation_error = wpcf7_get_validation_error( $tag->name ); $class = wpcf7_form_controls_class( $tag->type ); if ( $validation_error ) { $class .= ' wpcf7-not-valid'; } $atts = array(); $atts['class'] = $tag->get_class_option( $class ); $atts['id'] = $tag->get_id_option(); $atts['tabindex'] = $tag->get_option( 'tabindex', 'signed_int', true ); if ( $tag->is_required() ) { $atts['aria-required'] = 'true'; } $atts['aria-invalid'] = $validation_error ? 'true' : 'false'; $atts['name'] = $tag->name; $size = $tag->get_option( 'size', 'int', true ); if ( $size ) { $atts['size'] = $size; } else { //$atts['size'] = 40; } $country_atts = apply_filters('uacf7_get_country_attr', $atts, $tag); $atts = wpcf7_format_atts( $country_atts ); ob_start(); ?> >
name; if ( isset( $_POST[$name] ) and is_array( $_POST[$name] ) ) { foreach ( $_POST[$name] as $key => $value ) { if ( '' === $value ) { unset( $_POST[$name][$key] ); } } } $empty = ! isset( $_POST[$name] ) || empty( $_POST[$name] ) && '0' !== $_POST[$name]; if ( $tag->is_required() and $empty ) { $result->invalidate( $tag, wpcf7_get_message( 'invalid_required' ) ); } return $result; } /* * Generate tag - conditional */ public function tag_generator() { if (! function_exists( 'wpcf7_add_tag_generator')) return; wpcf7_add_tag_generator('uacf7_country_dropdown', __('Country Dropdown', 'ultimate-addons-cf7'), 'uacf7-tg-pane-country-dropdown', array($this, 'tg_pane_country_dropdown') ); } static function tg_pane_country_dropdown( $contact_form, $args = '' ) { $args = wp_parse_args( $args, array() ); $uacf7_field_type = 'uacf7_country_dropdown'; ?>
One ID per line.
documentation' ); ?>

IP Geolocation' ); ?>