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 0.2.2 0.2.3
cf7-conditional-fields / init.php
cf7-conditional-fields Last commit date
js 6 years ago Wpcf7cfMailParser.php 6 years ago admin-style.css 6 years ago admin-style.css.map 6 years ago admin-style.scss 6 years ago admin.php 6 years ago cf7cf.php 6 years ago contact-form-7-conditional-fields.php 6 years ago init.php 6 years ago readme.txt 6 years ago style.css 6 years ago tg_pane_group.php 6 years ago wpcf7cf-options.php 6 years ago
init.php
52 lines
1 <?php
2
3 if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '1.7.4' );
4 if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
5 if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
6 if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
7 if (!defined('WPCF7CF_PLUGIN_NAME')) define( 'WPCF7CF_PLUGIN_NAME', trim( dirname( WPCF7CF_PLUGIN_BASENAME ), '/' ) );
8 if (!defined('WPCF7CF_PLUGIN_DIR')) define( 'WPCF7CF_PLUGIN_DIR', untrailingslashit( dirname( WPCF7CF_PLUGIN ) ) );
9
10 if (!defined('WPCF7CF_LOAD_JS')) define('WPCF7CF_LOAD_JS', true);
11 if (!defined('WPCF7CF_LOAD_CSS')) define('WPCF7CF_LOAD_CSS', true);
12
13 if (!defined('WPCF7CF_REGEX_MAIL_GROUP')) define( 'WPCF7CF_REGEX_MAIL_GROUP', '@\[[\s]*([a-zA-Z_][0-9a-zA-Z:._-]*)[\s]*\](.*?)\[[\s]*/[\s]*\1[\s]*\]@s');
14 if (!defined('WPCF7CF_REGEX_CONDITIONS')) define( 'WPCF7CF_REGEX_CONDITIONS', '/(?:show \[([^\]]*?)\]|and) if \[([^\]]*?)\] (?:(equals|not equals|equals \(regex\)|not equals \(regex\)|>|>=|<=|<) \"([^\"]*?)\"|(is empty|not empty))/ms');
15
16
17 if(file_exists(WPCF7CF_PLUGIN_DIR.'/pro/pro-functions.php')) {
18 if (!defined('WPCF7CF_IS_PRO')) define( 'WPCF7CF_IS_PRO', true );
19 } else {
20 if (!defined('WPCF7CF_IS_PRO')) define( 'WPCF7CF_IS_PRO', false );
21 }
22
23
24 if(file_exists(WPCF7CF_PLUGIN_DIR.'/tests/init.php')) {
25 if (!defined('WPCF7CF_TESTMODE')) define( 'WPCF7CF_TESTMODE', true );
26 require_once WPCF7CF_PLUGIN_DIR.'/tests/init.php';
27 }
28
29 function wpcf7cf_plugin_path( $path = '' ) {
30 return path_join( WPCF7CF_PLUGIN_DIR, trim( $path, '/' ) );
31 }
32
33 function wpcf7cf_plugin_url( $path = '' ) {
34 $url = plugins_url( $path, WPCF7CF_PLUGIN );
35 if ( is_ssl() && 'http:' == substr( $url, 0, 5 ) ) {
36 $url = 'https:' . substr( $url, 5 );
37 }
38 return $url;
39 }
40
41 require_once WPCF7CF_PLUGIN_DIR.'/Wpcf7cfMailParser.php';
42
43 if (WPCF7CF_IS_PRO) {
44 require_once WPCF7CF_PLUGIN_DIR.'/pro/pro-functions.php';
45 }
46
47 require_once WPCF7CF_PLUGIN_DIR.'/cf7cf.php';
48 require_once WPCF7CF_PLUGIN_DIR.'/wpcf7cf-options.php';
49
50 if (WPCF7CF_IS_PRO) {
51 require_once WPCF7CF_PLUGIN_DIR.'/pro/update.php';
52 }