/**
  * return current class instance
  */
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new HW_WPCF7();
     }
     return self::$instance;
 }
 /**
  * main constructor
  */
 public function __construct()
 {
     $this->setting = HW_WPCF7::get_instance();
     //init hooks
     $this->setup_actions();
 }
Ejemplo n.º 3
0
/**
 * build each wpcf7 options
 */
include_once 'includes/wpcf7-settings.php';
/**
 * do on frontend
 */
include_once 'includes/hw-wpcf7-frontend.php';
/**
 *
 * wpcf7 common setting
 */
if (is_admin()) {
    #only admin
    include_once 'includes/hw-cf-admin.php';
}
/**
 * wpcf7 action hook
 */
include_once 'includes/hw-wpcf7-action.php';
/**
 * contact form templates
 */
include_once 'includes/hw-wpcf7-template.php';
/**
 * setup
 */
HW_WPCF7::get_instance();
if (!is_admin()) {
    new HW_WPCF7_Frontend();
}