=== Plugin Name ===
Contributors: GetCost
Tags: GetCost, Form, Leads, Contractor, Estimates, Invoices
Requires at least: 4.7
Tested up to: 6.8
Stable tag: 1.3.2
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Plugin integration to have a GetCost form integrated into your wordpress's website.

== Description ==

The easiest way to integrate your own form and to receive leads from your wordpress website directly in GetCost Leads.

You can get your pre-generated shortcode from the Settings | Leads screen of the application.

Shortcode example:

  [getcost template="0" business="0" height="660px"]


== Frequently Asked Questions ==

= What do I need to receive my leads? =

Create an account at https://www.getcost.com and fill in your business information.

= Can I receive an email when I receive a lead? =

Yes, an email with the lead's information will be sent to your GetCost's account email.

== Screenshots ==

== Changelog ==

= 1.3.2 =
* Allow the form's Address field to use the browser location (allow="geolocation" on the iframe).
* Add a getcost_embed_base filter so the embed URL can be overridden for local/staging installs.
* Make the shortcode's messages translatable (text domain "getcost").
* Rename the "form" attribute to "template" (the embed targets a template); "form" still works as a backward-compatible alias.

= 1.3.1 =
* Fix the embedded form height: the size is now applied to the iframe itself (previously only the wrapper was sized, so the form was stuck at the 150px iframe default).
* Make the embed responsive (max-width:100%) so it no longer overflows on small screens.
* Harden the shortcode: form/business are cast with absint(), the URL is escaped with esc_url(), and width/height are validated as CSS lengths.

= 1.0 =
* Initial version.

