| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Repeater for Gravity Forms |
| 4 |
* Description: The add-on that allows specified groups of fields to be repeated by the user. |
| 5 |
* Plugin URI: https://add-ons.org/plugin/gravity-forms-repeater-fields/ |
| 6 |
* Version: 2.0.5 |
| 7 |
* Author: add-ons.org |
| 8 |
* Text Domain: repeater-for-gravityforms |
| 9 |
* Domain Path: /languages |
| 10 |
* Author URI: https://add-ons.org/ |
| 11 |
* License: GPL v2 or later |
| 12 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 13 |
*/ |
| 14 |
define( 'SUPERADDONS_GF_REPEATER_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 15 |
define( 'SUPERADDONS_GF_REPEATER_PLUGIN_PATH', plugin_dir_path( __FILE__ ) ); |
| 16 |
add_action( 'gform_loaded', array( 'Superaddons_Grepeater_Field_AddOn_Init', 'load' ), 5 ); |
| 17 |
class Superaddons_Grepeater_Field_AddOn_Init { |
| 18 |
public static function load() { |
| 19 |
if ( ! method_exists( 'GFForms', 'include_addon_framework' ) ) { |
| 20 |
return; |
| 21 |
} |
| 22 |
include SUPERADDONS_GF_REPEATER_PLUGIN_PATH."add_on.php"; |
| 23 |
GFAddOn::register( 'Superaddons_Grepeater_Field_Addon' ); |
| 24 |
include SUPERADDONS_GF_REPEATER_PLUGIN_PATH."superaddons/check_purchase_code.php"; |
| 25 |
new Superaddons_Check_Purchase_Code( |
| 26 |
array( |
| 27 |
"plugin" => "repeater-for-gravity-forms/repeater-for-gravity-forms.php", |
| 28 |
"id"=>"1540", |
| 29 |
"pro"=>"https://add-ons.org/plugin/gravity-forms-repeater-fields/", |
| 30 |
"plugin_name"=> "Repeater Field For Gravity Forms", |
| 31 |
"document"=>"https://add-ons.org/document-gravity-forms-repeater-fields/" |
| 32 |
) |
| 33 |
); |
| 34 |
} |
| 35 |
} |
| 36 |
if(!class_exists('Superaddons_List_Addons')) { |
| 37 |
include SUPERADDONS_GF_REPEATER_PLUGIN_PATH."add-ons.php"; |
| 38 |
} |