public function __construct($id)
 {
     parent::__construct(SCFP()->getBaseDir());
     $this->id = $id;
     $this->session = Agp_Session::instance();
     $this->captcha = new SimpleCaptcha();
     $this->captcha->resourcesPath = SCFP()->getBaseDir() . "/inc/cool-php-captcha/resources";
     $this->captcha->session_var = 'captcha-' . $this->id;
     $this->captcha->imageFormat = 'png';
     $this->captcha->scale = 3;
     $this->captcha->blur = true;
     $this->recaptcha = new SCFP_Recaptcha();
 }
 public function __construct()
 {
     parent::__construct(dirname(dirname(__FILE__)));
     include_once $this->getBaseDir() . '/types/form-entries-post-type.php';
     include_once $this->getBaseDir() . '/inc/cool-php-captcha/captcha.php';
     include_once $this->getBaseDir() . '/vendor/autoload.php';
     $this->lessParser = new Less_Parser();
     $this->settings = SCFP_Settings::instance($this);
     $this->formSettings = SCFP_FormSettings::instance();
     $this->formEntries = SCFP_FormEntries::instance();
     $this->session = Agp_Session::instance();
     $this->ajax = SCFP_Ajax::instance();
     add_action('init', array($this, 'init'));
     add_action('wp_enqueue_scripts', array($this, 'enqueueScripts'));
     add_action('admin_enqueue_scripts', array($this, 'enqueueAdminScripts'));
     add_shortcode('scfp', array($this, 'doScfpShortcode'));
     add_shortcode('wcp_contactform', array($this, 'doScfpShortcode'));
     add_action('widgets_init', array($this, 'initWidgets'));
     add_action('admin_init', array($this, 'tinyMCEButtons'));
     add_filter('clean_url', array($this, 'deferJavascripts'), 11, 1);
 }