forked from CalderaWP/Caldera-Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caldera-core.php
45 lines (34 loc) · 1.33 KB
/
caldera-core.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
<?php
/*
Plugin Name: Caldera Forms
Plugin URI: http://digilab.co.za
Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
Author: David Cramer
Version: 1.1.9.3
Author URI: http://digilab.co.za
*/
//initilize plugin
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define('CFCORE_PATH', plugin_dir_path(__FILE__));
define('CFCORE_URL', plugin_dir_url(__FILE__));
define('CFCORE_VER', '1.1.9.3');
define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
include_once CFCORE_PATH . 'classes/core.php';
include_once CFCORE_PATH . 'classes/widget.php';
include_once CFCORE_PATH . 'classes/sanitize.php';
// includes
include_once CFCORE_PATH . 'includes/cf-ajax/plugin.php';
include_once CFCORE_PATH . 'includes/field_processors.php';
include_once CFCORE_PATH . 'includes/custom_field_class.php';
include_once CFCORE_PATH . 'includes/filter_addon_plugins.php';
// table builder
register_activation_hook( __FILE__, array( 'Caldera_Forms', 'activate_caldera_forms' ) );
add_action( 'plugins_loaded', array( 'Caldera_Forms', 'get_instance' ) );
// Admin & Admin Ajax stuff.
if ( is_admin() || defined( 'DOING_AJAX' ) ) {
require_once( CFCORE_PATH . 'classes/admin.php' );
add_action( 'plugins_loaded', array( 'Caldera_Forms_Admin', 'get_instance' ) );
}