|
| 1 | +<?php |
| 2 | + |
| 3 | +// don't load directly |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { |
| 5 | + die(); |
| 6 | +} |
| 7 | + |
| 8 | +/** |
| 9 | +Plugin Name: Gravity Forms Capsule CRM Add-On |
| 10 | +Plugin URI: https://gravityforms.com |
| 11 | +Description: Integrates Gravity Forms with Capsule CRM, allowing form submissions to be automatically sent to your Capsule CRM account. |
| 12 | +Version: 1.7.0 |
| 13 | +Author: Gravity Forms |
| 14 | +Author URI: https://gravityforms.com |
| 15 | +License: GPL-2.0+ |
| 16 | +Text Domain: gravityformscapsulecrm |
| 17 | +Domain Path: /languages |
| 18 | +
|
| 19 | +------------------------------------------------------------------------ |
| 20 | +Copyright 2009-2023 Rocketgenius, Inc. |
| 21 | +
|
| 22 | +This program is free software; you can redistribute it and/or modify |
| 23 | +it under the terms of the GNU General Public License as published by |
| 24 | +the Free Software Foundation; either version 2 of the License, or |
| 25 | +(at your option) any later version. |
| 26 | +
|
| 27 | +This program is distributed in the hope that it will be useful, |
| 28 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 | +GNU General Public License for more details. |
| 31 | +
|
| 32 | +You should have received a copy of the GNU General Public License |
| 33 | +along with this program; if not, write to the Free Software |
| 34 | +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 35 | +*/ |
| 36 | + |
| 37 | +define( 'GF_CAPSULECRM_VERSION', '1.7.0' ); |
| 38 | + |
| 39 | +add_action( 'gform_loaded', array( 'GF_CapsuleCRM_Bootstrap', 'load' ), 5 ); |
| 40 | + |
| 41 | +/** |
| 42 | + * Bootstraps the Capsule CRM add-on. |
| 43 | + * |
| 44 | + * @package GF_CapsuleCRM_Bootstrap |
| 45 | + */ |
| 46 | +class GF_CapsuleCRM_Bootstrap { |
| 47 | + |
| 48 | + /** |
| 49 | + * Loads the main class file and registers the add-on. |
| 50 | + * |
| 51 | + * @access public |
| 52 | + * |
| 53 | + * @uses GFAddOn::register() |
| 54 | + * |
| 55 | + * @return void |
| 56 | + */ |
| 57 | + public static function load() { |
| 58 | + require_once( 'class-gf-capsulecrm.php' ); |
| 59 | + GFAddOn::register( 'GFCapsuleCRM' ); |
| 60 | + } |
| 61 | + |
| 62 | +} |
| 63 | + |
| 64 | +/** |
| 65 | + * Gets an instance of the GFCapsuleCRM class. |
| 66 | + * |
| 67 | + * @return GFCapsuleCRM |
| 68 | + */ |
| 69 | +function gf_capsulecrm() { |
| 70 | + return GFCapsuleCRM::get_instance(); |
| 71 | +} |
0 commit comments