This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsx-cf-zoho.php
68 lines (55 loc) · 2.37 KB
/
lsx-cf-zoho.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @package lsx_cf_zoho
*
* @wordpress-plugin
* Plugin Name: LSX Zoho CRM Addon for Caldera Forms
* Plugin URI: https://github.com/lightspeeddevelopment/cf-zoho
* Description: Caldera Forms is one of a kind WordPress form builder. With its user friendly drag and drop interface, it’s simple to create forms for your WordPress site that look awesome on any device. Caldera also comes with a range of add-ons, like integration with the Zoho CRM platform, which allows users to automate their day-to-day business activities allowing them to focus on selling without having to worry about digging through data. Use the extension to track your sales activities and gain complete understanding of your sales cycle.
* Version: 2.0.7
* Author: LightSpeed
* Author URI: https://www.lsdev.biz/
* Contributors feedmycode, matttrustmytravel
* License: GPL-3.0+
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: lsx-cf-zoho
*/
namespace lsx_cf_zoho;
use lsx_cf_zoho\includes;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Currently plugin version.
*/
define( 'LSX_CFZ_VERSION', '2.0.7' );
define( 'LSX_CFZ_ABSPATH', dirname( __FILE__ ) . '/' );
define( 'LSX_CFZ_TEMPLATE_PATH', LSX_CFZ_ABSPATH . 'templates/' );
define( 'LSX_CFZ_PROCESSORS_PATH', LSX_CFZ_ABSPATH . 'processors/' );
define( 'LSX_CFZ_FIELDS_PATH', LSX_CFZ_ABSPATH . 'fields/' );
define( 'LSX_CFZ_URL', plugin_dir_url( __FILE__ ) . '/' );
define( 'LSX_CFZ_FIELDS_URL', LSX_CFZ_URL . 'fields/' );
define( 'LSX_CFZ_OPTION_SLUG', '_uix_lsx-cf-zoho' );
define( 'LSX_CFZ_TRANSIENT_SLUG', '_uix_lsx-cf-zoho_transient' );
// Autoloader.
require LSX_CFZ_ABSPATH . 'includes/template-tags.php';
require LSX_CFZ_ABSPATH . 'lib/autoloader.php';
// Register settings.
register_setting( 'lsx_cf_zoho', LSX_CFZ_OPTION_SLUG );
/**
* Begins execution of the plugin on plugins loaded.
*/
function lsx_cf_zoho_run_plugin() {
$cf_zoho = \lsx_cf_zoho\includes\CF_Zoho::init();
add_action( 'plugins_loaded', array( $cf_zoho, 'setup' ), 2 );
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\lsx_cf_zoho_run_plugin', 1 );
/**
* Returns the main instance of the LSX CF Zoho Plugin
*
* @return object \lsx_cf_zoho\includes\CF_Zoho()
*/
function lsx_cf_zoho() {
return \lsx_cf_zoho\includes\CF_Zoho::init();
}