PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
weforms
/
includes
/
compat
<?php if ( ! class_exists( 'WPUF_Abstract_Integration' ) ) : /** * The Integration abstract class */ abstract class WPUF_Abstract_Integration { /** * The integration id * * @var boolean */ public $id; /** * If the integration is enabled * * @var boolean */ public $enabled; /** * Integration title * * @var string */ public $title; /** * URL to the integration icon * * @var string */ public $icon; /** * The settings fields for this integrations * * @var array */ public $settings_fields = array(); /** * Get the integration title * * @return string */ public function get_title() { return apply_filters( 'wpuf_integration_title', $this->title, $this ); } /** * Get the integration id * * @return string */ public function get_id() { return apply_filters( 'wpuf_integration_title', $this->id, $this ); } /** * Get intgration icon * * @return string */ public function get_icon() { return apply_filters( 'wpuf_integration_icon', $this->icon, $this ); } /** * Check if the integration is enabled * * @return boolean */ public function is_enabled() { return $this->enabled == true; } /** * Get the settings fields * * @return array */ public function get_settings_fields() { return $this->settings_fields; } /** * Get the integration settings for the component * * @return array */ public function get_js_settings() { return array( 'id' => $this->get_id(), 'title' => $this->get_title(), 'icon' => $this->get_icon(), 'settings' => $this->get_settings_fields() ); } /** * Register the integration in the builder settings * * @param array $integrations * * @return array */ public function register_integration_settings( $integrations ) { $integrations[ $this->id ] = $this->get_js_settings(); return $integrations; } } endif;
[+]
..
[-] class-abstract-wpuf-integration.php
[edit]