=== International Telephone Input for Contact Form 7 ===
Contributors: damiarita
Tags: css, javascript, jQuery, contact form 7, international, i18n, international code, country code, telephone
Stable tag: trunk
Requires at least: 4
Tested up to: 4.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Addon for Contact Form 7 that creates a new kind of input that allows the user to select a country of his telephone numner

== Description ==

Addon Contact Form 7 that creates a new kind of input that allows the user to select a country of his telephone numnerContact Form 7 addon that creates a new kind of input that allows the user to select a country of his telephone numner

This plugin will use a jQuery plugin called [International Telephone Input](http://jackocnr.com/intl-tel-input.html) to create a new type of input for Contact Form 7 that shows country flags to write a prefix of the telephone number.

= How to use it? =

Once you have installed and activated your plugin, a new type of field will be available in your Contact Form 7 forms. In order to add it to your form, you can either click on the "International Telephone" button above your form editor, or add the shortcode like: [intl_tel* {your-phone}] ({your-phone} has to be replaced by the name you want to give the field and * is optional and makes the field compulsory).

To recover the field's info on your email, use this tag: [{your-phone}]. It will print something like +12025550109

= Aditional info in your email =

You can also recover specific parts of the telephone number: the name of the country it refers to, the country code, the number without the country code. Use this tags:

1. [{your-phone}-cf7it-country-name]: It prints the name of the country. For the example above: United States
2. [{your-phone}-cf7it-country-code]: It prints the country code of the phone number. For the example above: 1
3. [{your-phone}-cf7it-country-iso2]: It prints the country iso code. For the example above: us
3. [{your-phone}-cf7it-national]: It prints the phone number without international prefix. For the example above: 2025550109

== Installation ==

0. Install Contact Form 7 from wordpress.org/plugins/contact-form-7/
1. On the left side menu select Plugins > Add New
2. In "Search Plugins" field enter "Contact Form 7 - International Telephone Input" and search
3. Press "Install Now" button

== Frequently Asked Questions ==


== Screenshots ==


1. International telephone input


== Changelog ==

= 1.5.7 =
* Fix images referenced from wrong directory

= 1.5.6 =
* Use ipinfo.io without API key instead of ipstack with API key

= 1.5.5 =
* Fix use jQuery version of intl-tel-input

= 1.5.4 =
* Include intl-tel-input dependency to host locally

= 1.5.3 =
* Update deprecated dependency to FreeGeoIP.net

= 1.5.2 =
*We change ipinfo.io IP API by freegeoip.net IP API because it has a higher requests limit. As suggested at https://wordpress.org/support/topic/ipinfo-io-limits/

= 1.5.1 =
*We add the possibility to define de preferrec countries by adding the option preferredCountries. For example preferredCountries:es-fr (They have to be 2-letter country codes separated by hyphens '-')
*We add teh preferredCountries and size option to the GUI form tag creator form.

= 1.5.0 =
*We use upgrade JS version to 12.1.3. It fixes iPhone issues of old version
*We add mail tag that recovers iso code of the selected country

= 1.4.6 =
* We change to new CF7 functions naming (shortcode->form-tag) to avoid deprecated message with debug active (completed). No new features added

= 1.4.5 =
* We change to new CF7 functions naming (shortcode->form-tag) to avoid deprecated message with debug active (partial). No new features added

= 1.4.4 =
* We add the size attribute if it is sent as an option. For example: size:40

= 1.4.3 =
* We avoid the placeholder text to be copied into the value of the input field. This, sometimes caused the flags to desappear

= 1.4.2 =
* We repare special mail tags

= 1.4.1 =
* We make it https compatible

= 1.4.0 =
* We add new mail tags in order to be able to recover the country name of a telephone, the contry code and the telephone number without the country code
* In order to get the country name use [{your-phone}-cf7it-country-name] where {your-phone} has to be replaced by the name of your tag
* In order to get the country code use [{your-phone}-cf7it-country-code] where {your-phone} has to be replaced by the name of your tag
* In order to get the phone number without the country code use [{your-phone}-cf7it-national] where {your-phone} has to be replaced by the name of your tag

= 1.3.0 =
* We force the dependecies between the JS files

= 1.2.0 =
* We load the minified JS by default. If SCRIPT_DEBUG is set to true, we use the non-minified.

= 1.1.0 =

* CDN is used for all JS and CSS files and script is loaded at the bottom

= 1.0.0 =
* First release


== Upgrade Notice ==

= 1.5.2 =
*We change ipinfo.io IP API by freegeoip.net IP API because it has a higher requests limit. As suggested at https://wordpress.org/support/topic/ipinfo-io-limits/

= 1.5.1 =
*We add the possibility to define de preferrec countries by adding the option preferredCountries. For example preferredCountries:es-fr (They have to be 2-letter country codes separated by hyphens '-')
*We add teh preferredCountries and size option to the GUI form tag creator form.

= 1.5.0 =
*We use upgrade JS version to 12.1.3. It fixes iPhone issues of old version
*We add mail tag that recovers iso code of the selected country

= 1.4.6 =
* We change to new CF7 functions naming (shortcode->form-tag) to avoid deprecated message with debug active. No new features added

= 1.4.5 =
* We change to new CF7 functions naming (shortcode->form-tag) to avoid deprecated message with debug active. No new features added

= 1.4.2 =

* We repare special mail tags

= 1.4.1 =

* We make it https compatible

= 1.4.0 =
* We add new mail tags in order to be able to recover the country name of a telephone, the contry code and the telephone number without the country code
* In order to get the country name use [{your-phone}-cf7it-country-name] where {your-phone} has to be replaced by the name of your tag
* In order to get the country code use [{your-phone}-cf7it-country-code] where {your-phone} has to be replaced by the name of your tag
* In order to get the phone number without the country code use [{your-phone}-cf7it-national] where {your-phone} has to be replaced by the name of your tag