HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/gift.naniguide.com/wp-content/plugins/send-app/modules/wp-forms/module.php
<?php
namespace Send_App\Modules\WP_Forms;

use Send_App\Core\Integrations\Classes\Integration_Module_Base;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * WPForms Integration Module
 *
 * Handles integration with WPForms plugin, providing form data and submission handling.
 */
class Module extends Integration_Module_Base {

	/**
	 * Get the integration name
	 *
	 * @return string The integration name
	 */
	public static function get_name(): string {
		return 'wpforms';
	}

	/**
	 * Get list of available integrations
	 *
	 * @return array Array of integration class names
	 */
	protected function integrations_list(): array {
		return [
			'All_Forms',
			'Form_View',
			'Form_Submit',
		];
	}

	/**
	 * Get list of available components
	 *
	 * @return array Array of component class names
	 */
	protected function components_list(): array {
		return [
			'Forms',
		];
	}

	/**
	 * Check if WPForms plugin is activated
	 *
	 * @return bool True if WPForms is active, false otherwise
	 */
	public function is_plugin_activated(): bool {
		$is_active = class_exists( '\WPForms\WPForms' ) || class_exists( '\WPForms_Pro' );
		return $is_active;
	}
}