here to configure.', 'sweetcontact' )); // Set constants for standard field numbers define( 'SWCF_NAME_FIELD', '1' ); define( 'SWCF_EMAIL_FIELD', '2' ); define( 'SWCF_SUBJECT_FIELD', '3' ); define( 'SWCF_MESSAGE_FIELD', '4' ); global $swcf_special_slugs; // List of reserve slug names $swcf_special_slugs = array( 'f_name', 'm_name', 'mi_name', 'l_name', 'email2', 'mailto_id', 'subject_id' ); require_once SWCF_PATH . 'sweetcaptcha.php'; require_once SWCF_PATH . 'includes/class-sweetcf-utils.php'; require_once SWCF_PATH . 'includes/class-sweetcf-display.php'; require_once SWCF_PATH . 'includes/class-sweetcf-process.php'; require_once SWCF_PATH . 'includes/class-sweetcf-options.php'; if ( is_admin() ) { require_once SWCF_PATH . 'includes/class-sweetcf-action.php'; require_once( ABSPATH . "wp-includes/pluggable.php" ); } // Initialize plugin settings and hooks SWEETCF_Utils::setup(); //add_action('wp_loaded', 'sweetcontact_plugins_loaded'); if (is_admin()) { require_once SWCF_PATH . '/sweetcontact_admin.php'; // Add admin notices. add_action('admin_notices', 'sweetcontact_admin_notices'); // add link to settings menu //add_action('admin_menu', 'sweetcaptcha_admin_menu'); } else { add_action('wp_loaded', 'sweetcontact_plugins_loaded'); } function sweetcontact_plugins_loaded() { if ( defined('SWCF_SWEETCAPTCHA_PROBLEM') ) { return; } define( 'SWCF_SWEETCAPTCHA_OK', (function_exists('sweetcontact_sweetcaptcha_is_registered') && sweetcontact_sweetcaptcha_is_registered()) ); $sweetcaptcha_problem = ''; if ( !SWCF_SWEETCAPTCHA_OK ) { $sweetcaptcha_problem = SWCF_NOT_READY; } define( 'SWCF_SWEETCAPTCHA_PROBLEM', $sweetcaptcha_problem ); //echo '
SWCF_SWEETCAPTCHA_PROBLEM: '.SWCF_SWEETCAPTCHA_PROBLEM.'
'; /* if ( SWCF_SWEETCAPTCHA_PROBLEM ) { wp_enqueue_style( 'wp-pointer' ); wp_enqueue_script( 'jquery-ui' ); wp_enqueue_script( 'wp-pointer' ); wp_enqueue_script( 'utils' ); SWEETCF_Utils::add_admin_notice('swcf-sweetcaptcha-problem',SWCF_SWEETCAPTCHA_PROBLEM, 'error ', 'color: red; font-size: 14px; font-weight: bold; text-align: center;'); add_action('admin_notices', 'sweetcontact_popup_setup'); } * */ } ?>