| 1 |
<?php namespace TierPricingTable\Integrations\Plugins\Elementor; |
| 2 |
|
| 3 |
use Elementor\Plugin; |
| 4 |
use TierPricingTable\Integrations\Plugins\PluginIntegrationAbstract; |
| 5 |
|
| 6 |
class ElementorIntegration extends PluginIntegrationAbstract { |
| 7 |
|
| 8 |
public function getTitle(): string { |
| 9 |
return __( 'Elementor', 'tier-pricing-table' ); |
| 10 |
} |
| 11 |
|
| 12 |
public function getDescription(): string { |
| 13 |
return __( 'Provides the tiered pricing widget with a bunch of settings, such as: display type, active tier color, etc.', |
| 14 |
'tier-pricing-table' ); |
| 15 |
} |
| 16 |
|
| 17 |
public function getSlug(): string { |
| 18 |
return 'elementor'; |
| 19 |
} |
| 20 |
|
| 21 |
public function getIconURL(): string { |
| 22 |
return $this->getContainer()->getFileManager()->locateAsset( 'admin/integrations/elementor-icon.svg' ); |
| 23 |
} |
| 24 |
|
| 25 |
public function getAuthorURL(): string { |
| 26 |
return 'https://wordpress.org/plugins/elementor/'; |
| 27 |
} |
| 28 |
|
| 29 |
public function run() { |
| 30 |
add_action( 'elementor/widgets/widgets_registered', function () { |
| 31 |
Plugin::instance()->widgets_manager->register( new ElementorWidget() ); |
| 32 |
} ); |
| 33 |
} |
| 34 |
} |
| 35 |
|