{"id":13684384,"url":"https://github.com/cedaro/gravity-forms-iframe","last_synced_at":"2025-04-30T20:33:53.573Z","repository":{"id":43389501,"uuid":"15118298","full_name":"cedaro/gravity-forms-iframe","owner":"cedaro","description":"A Gravity Forms add-on to embed a form in an auto-resizing iframe on external sites.","archived":false,"fork":false,"pushed_at":"2024-11-24T17:51:41.000Z","size":75,"stargazers_count":153,"open_issues_count":10,"forks_count":28,"subscribers_count":21,"default_branch":"develop","last_synced_at":"2025-04-27T19:46:09.332Z","etag":null,"topics":["gravity-forms","iframe","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-11T20:35:22.000Z","updated_at":"2025-03-07T10:25:13.000Z","dependencies_parsed_at":"2022-07-07T18:01:21.691Z","dependency_job_id":null,"html_url":"https://github.com/cedaro/gravity-forms-iframe","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fgravity-forms-iframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fgravity-forms-iframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fgravity-forms-iframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedaro%2Fgravity-forms-iframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedaro","download_url":"https://codeload.github.com/cedaro/gravity-forms-iframe/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251777773,"owners_count":21642223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gravity-forms","iframe","wordpress","wordpress-plugin"],"created_at":"2024-08-02T14:00:32.962Z","updated_at":"2025-04-30T20:33:53.567Z","avatar_url":"https://github.com/cedaro.png","language":"PHP","readme":"# Gravity Forms Iframe Add-on\n\nEmbed a Gravity Form in an iframe on any site.\n\n__Contributors:__ [Brady Vercher](https://github.com/bradyvercher)  \n__License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html)\n\nThe typical process to embed a Gravity Form on a site where the plugin isn't installed requires:\n\n1. Developing a custom page template with necessary code to output form scripts and styles.\n2. Creating a new page in WordPress.\n3. Inserting the form shortcode in the new page.\n4. Manually writing an iframe tag with the page permalink and giving it a static height.\n\nWith the _Gravity Forms Iframe_ add-on, just enable a setting to allow the form to be embedded and copy the code snippet. That's it. As a bonus, the iframe automatically resizes whenever the form height changes -- for instance, when fields are shown or hidden due to conditional logic.\n\n## Features\n\n* Selectively enable embedding for individual forms.\n* Auto-resizing iframes.\n* Override embed templates in a theme or child theme.\n* Override settings via the embed src query string.\n* Extends the Gravity Forms add-on API to seamlessly integrate with the WordPress and Gravity Forms interface.\n* Protocol-relative URLs for embedding on secure sites (both sites need SSL).\n\n## Settings\n\nThe form title and description can be hidden independent of regular form display by toggling a checkbox after enabling the embedding setting.\n\n![Form Iframe Settings Screenshot](https://raw.github.com/bradyvercher/gravity-forms-iframe/master/screenshot-1.png)\n_The form's iframe settings panel._\n\n### Overrides for Individual Iframes\n\nIf the title and description settings need to be changed per embed, they can be modified in the iframe `src` query string.\n\n* **`dt`:** Set to `1` to display the form title; `0` to hide.\n* **`dd`:** Set to `1` to display the form description; `0` to hide.\n\n_**Example:** gfembed/?f=1\u0026dt=0\u0026dd=0_\n\n### Auto-resizing Script\n\nIf the auto-resizing functionality isn't needed for a particular form, adjust the iframe's height attribute to accomodate the form and don't include the `\u003cscript\u003e` tag when copying the embed code. Leaving off the script tag will save an HTTP request.\n\n### Confirmation Screen\n\nIf you redirect users to another page upon submission and would like the iframe to automatically resize, include the following in the confirmation page:\n`add_filter( 'gfiframe_print_resize_ping_script', '__return_true' );`\n\n## Template Hierarchy\n\nTemplates can be added in a theme or child theme to override the plugin's template. Use the following template names:\n\n* gravity-forms-iframe-{$form_id}.php\n* gravity-forms-iframe.php\n\n## Installation\n\n### Upload\n\n1. Download the [latest release](https://github.com/bradyvercher/gravity-forms-iframe/archive/master.zip) from GitHub.\n2. Go to the __Plugins \u0026rarr; Add New__ screen in your WordPress admin panel and click the __Upload__ tab at the top.\n3. Upload the zipped archive.\n4. Click the __Activate Plugin__ link after installation completes.\n\n### Manual\n\n1. Download the [latest release](https://github.com/bradyvercher/gravity-forms-iframe/archive/master.zip) from GitHub.\n2. Unzip the archive.\n3. Copy the folder to `/wp-content/plugins/`.\n4. Go to the __Plugins__ screen in your WordPress admin panel and click the __Activate__ link under _Gravity Forms Iframe_.\n\nRead the Codex for more information about [installing plugins manually](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).\n\n### Git\n\nClone this repository in `/wp-content/plugins/`:\n\n`git clone git@github.com:bradyvercher/gravity-forms-iframe.git`\n\nThen go to the __Plugins__ screen in your WordPress admin panel and click the __Activate__ link under _Gravity Forms Iframe_.\n\n## Changelog\n\n### 2.0.5\n\n* Loaded the text domain on `init` rather than `plugins_loaded` to prevent notices in WordPress 6.7+.\n\n### 2.0.4\n\n* Required composer/installers 1.0 or 2.0 to prevent conflicts when installed with Composer.\n\n### 2.0.3\n\n* Declared a variable in the `Plugin` class to prevent dynamic proprety warnings in PHP 8.2+.\n* Handled Gravity Forms config collections in the head section of the iframe template. This allows scripts to be \"localized\" and prevents JavaScript errors.\n\n### 2.0.2\n\n* Updated embed code field in the admin panel to work with Gravity Forms 2.5+.\n* Passed an object instead of a string in the auto-resize message.\n* Changed the method for hiding the admin bar to improve reliability.\n* Added GitHub Update compatibility.\n\n### 2.0.1\n\n* Made GravityFormsIframe_Addon::form_settings_fields() compatible with the parent class.\n\n### 2.0.0\n\n* Moved to the Cedaro GitHub account.\n* Refactored the plugin structure.\n* Introduced a 'gfiframe_head' action in the template header.\n\n### 1.0.3\n\n* Defined 'gravityforms_iframe' capability in the Add-on class to integrate with the Members plugin.\n\n### 1.0.2\n\n* Fixed a long-standing bug that may have prevented scripts from loading in the iframe template.\n* Fixed deprecated notices in Gravity Forms 1.9+.\n\n### 1.0.1\n\n* Deprecated the .php extension in the embed rewrite rule to prevent conflicts with WordPress Multisite.\n* Disabled the WordPress toolbar in iframes when forms are embedded on the host domain.\n* Added a POT file for translators.\n\n### 1.0.0\n\n* Initial release.\n","funding_links":[],"categories":["Third-Party Add-Ons"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedaro%2Fgravity-forms-iframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedaro%2Fgravity-forms-iframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedaro%2Fgravity-forms-iframe/lists"}