PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
plugins
/
contact-form-7
<?php if ( ! class_exists( 'WebOnCoreContactForm7' ) ) { class WebOnCoreContactForm7 { private static $instance; public function __construct() { if ( qode_framework_is_installed( 'contact_form_7' ) ) { // Init $this->init(); } } public static function get_instance() { if ( is_null( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } function init() { // Include helper functions include_once WEBON_CORE_PLUGINS_PATH . '/contact-form-7/helper.php'; // Include template helper functions include_once WEBON_CORE_PLUGINS_PATH . '/contact-form-7/template-functions.php'; // Include widgets add_action( 'qode_framework_action_before_widgets_register', array( $this, 'include_widgets' ) ); // Override templates $this->override_templates(); } function include_widgets() { foreach ( glob( WEBON_CORE_PLUGINS_PATH . '/contact-form-7/widgets/*/include.php' ) as $widget ) { include_once $widget; } } function override_templates() { // Replace cf7 submit button with our button remove_action( 'wpcf7_init', 'wpcf7_add_form_tag_submit' ); add_action( 'wpcf7_init', 'webon_core_cf7_add_submit_form_tag' ); } } WebOnCoreContactForm7::get_instance(); }
[+]
widgets
[+]
..
[-] template-functions.php
[edit]
[-] contact-form-7.php
[edit]
[-] include.php
[edit]
[-] helper.php
[edit]