SureDonation.php
57 lines
| 1 | <?php |
| 2 | /** |
| 3 | * SureDonation core integration file. |
| 4 | * php version 5.6 |
| 5 | * |
| 6 | * @category SureDonation |
| 7 | * @package SureTriggers |
| 8 | * @author BSF <username@example.com> |
| 9 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3 |
| 10 | * @link https://www.brainstormforce.com/ |
| 11 | * @since 1.0.0 |
| 12 | */ |
| 13 | |
| 14 | namespace SureTriggers\Integrations\SureDonation; |
| 15 | |
| 16 | use SureTriggers\Controllers\IntegrationsController; |
| 17 | use SureTriggers\Integrations\Integrations; |
| 18 | use SureTriggers\Traits\SingletonLoader; |
| 19 | |
| 20 | /** |
| 21 | * Class SureDonation |
| 22 | * |
| 23 | * @package SureTriggers\Integrations\SureDonation |
| 24 | */ |
| 25 | class SureDonation extends Integrations { |
| 26 | |
| 27 | use SingletonLoader; |
| 28 | |
| 29 | /** |
| 30 | * ID |
| 31 | * |
| 32 | * @var string |
| 33 | */ |
| 34 | protected $id = 'SureDonation'; |
| 35 | |
| 36 | /** |
| 37 | * SureDonation constructor. |
| 38 | */ |
| 39 | public function __construct() { |
| 40 | $this->name = __( 'SureDonation', 'suretriggers' ); |
| 41 | $this->description = __( 'A WordPress donation plugin for creating and managing fundraising campaigns.', 'suretriggers' ); |
| 42 | parent::__construct(); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Is Plugin depended plugin is installed or not. |
| 47 | * |
| 48 | * @return bool |
| 49 | */ |
| 50 | public function is_plugin_installed() { |
| 51 | return defined( 'SUREDONATION_VER' ); |
| 52 | } |
| 53 | |
| 54 | } |
| 55 | |
| 56 | IntegrationsController::register( SureDonation::class ); |
| 57 |