?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/demo2/wp-content/plugins/divi-contact-form-helper/



?? Go up: /home/webdevt/www/demo2/wp-content/plugins

?? Viewing: divi-contact-form-helper.php

<?php
/**
 * Plugin Name: Divi Contact Form Helper
 * Description: Upgrade the Divi Contact Form with over 115 premium features like file uploads, date & time picker, spam protection, digital signature, confirmation emails, Zapier integration, save entries to database, SMTP settings, custom subject line, reply-to address, conditional email routing, custom merge tags, export to CSV, auto entry backups, and so much more!
 * Author: <a href="https://karobarhq.com/">Karobar Solutions LLC</a> & <a href="https://www.peeayecreative.com/">Pee-Aye Creative</a>
 * Update URI: https://www.elegantthemes.com/
 * Text Domain: divi-contact-form-helper
 * Domain Path: /languages/
 * Version: 2.0.4
 * Requires at least: 6.0
 * Requires PHP: 7.4
 * License: GPL2
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * You should have received a copy of the GNU General Public License
 * along with Divi Contact Form Helper.
 * If not, see <https://www.gnu.org/licenses/>.
 * @since 1.0.0
 * @author Karobar Solutions LLC & Pee-Aye Creative
 * @license GPL-2.0+
 * @copyright Copyright © 2022, Divi Contact Form Helper
 */
if (!defined('ABSPATH')) {
    exit;
}
/**
 * Check if the active theme (or its parent) is Divi version 5 or higher.
 * @return bool
 */
if (!function_exists('ks_pac_dcfh_is_divi5')) {

    function ks_pac_dcfh_is_divi5(): bool
    {
        $theme = wp_get_theme();
        $parent_theme = $theme->parent();
        $theme_version = $parent_theme ? $parent_theme->get('Version') : $theme->get('Version');
        // Clean the version string to make it compatible with version_compare.
        $clean_version = preg_replace('/-(public|alpha|beta|rc|dev)[^.]*/i', '', $theme_version);
        $clean_version = preg_replace('/[^0-9.]/', '', $clean_version);

        return version_compare($clean_version, '5.0.0', '>=');
    }
}
// Determine which subdirectory to use based on Divi version: 'd5' for Divi 5+, 'd4' otherwise.
$sub_dir = ks_pac_dcfh_is_divi5() ? 'd5' : 'd4';
// Construct plugin directory and URL with correct subdirectory.
$plugin_dir = untrailingslashit(plugin_dir_path(__FILE__)).'/'.$sub_dir;
$plugin_url = untrailingslashit(plugin_dir_url(__FILE__)).'/'.$sub_dir;
// Plugin File Path
define('KS_PAC_DCFH_PLUGIN_FILE', __FILE__);
// Plugin Basename
define('KS_PAC_DCFH_PLUGIN_BASENAME', plugin_basename(__FILE__));
// Plugin Directory Path
define('KS_PAC_DCFH_PLUGIN_DIR', $plugin_dir);
// Plugin URL
define('KS_PAC_DCFH_PLUGIN_URL', $plugin_url);
// Plugin Version
define('KS_PAC_DCFH_PLUGIN_VERSION', '2.0.4');
// Dev Mode Flag
define('KS_PAC_DCFH_PLUGIN_DEV_MOD', false);
// Load the Divi 4/5 specific plugin file.
require KS_PAC_DCFH_PLUGIN_DIR.'/load-'.$sub_dir.'.php';


??

??