| | |
| | | |
| | | use JVBase\registrar\config\Integration; |
| | | use JVBase\registrar\Registrar; |
| | | use JVBase\utility\Features; |
| | | use JVBase\base\Site; |
| | | |
| | | if (!defined('ABSPATH')) { |
| | | exit; |
| | |
| | | protected function initAllowed():void |
| | | { |
| | | $allowed = []; |
| | | if (Features::hasIntegration('gmb')) { |
| | | if (Site::hasIntegration('gmb')) { |
| | | $allowed['gmb'] = 'Google My Business'; |
| | | } |
| | | if (Features::hasIntegration('facebook')) { |
| | | if (Site::hasIntegration('facebook')) { |
| | | $allowed['facebook'] = 'Facebook'; |
| | | } |
| | | if (Features::hasIntegration('square')) { |
| | | if (Site::hasIntegration('square')) { |
| | | $allowed['square'] = 'Square'; |
| | | } |
| | | if (Features::hasIntegration('instagram')) { |
| | | if (Site::hasIntegration('instagram')) { |
| | | $allowed['instagram'] = 'Instagram'; |
| | | } |
| | | if (Features::hasIntegration('bluesky')) { |
| | | if (Site::hasIntegration('bluesky')) { |
| | | $allowed['bluesky'] = 'BlueSky'; |
| | | } |
| | | if (Features::hasIntegration('helcim')) { |
| | | if (Site::hasIntegration('helcim')) { |
| | | $allowed['helcim'] = 'Helcim'; |
| | | } |
| | | $this->allowed = $allowed; |