DataFields
2 years ago
DataObjects
3 years ago
Triggers
3 years ago
images
3 years ago
ThriveAutomatorApp.php
3 years ago
ThriveAutomatorService.php
3 years ago
ThriveAutomatorServiceProvider.php
3 years ago
ThriveAutomatorApp.php
56 lines
| 1 | <?php |
| 2 | namespace SureCart\Integrations\ThriveAutomator; |
| 3 | |
| 4 | use Thrive\Automator\Items\App; |
| 5 | |
| 6 | /** |
| 7 | * Register our app. |
| 8 | */ |
| 9 | class ThriveAutomatorApp extends App { |
| 10 | /** |
| 11 | * App ID |
| 12 | * |
| 13 | * @return string |
| 14 | */ |
| 15 | public static function get_id() { |
| 16 | return 'surecart'; |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * App name |
| 21 | * |
| 22 | * @return string |
| 23 | */ |
| 24 | public static function get_name() { |
| 25 | return __( 'SureCart', 'surecart' ); |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * The description for the app. |
| 30 | * |
| 31 | * @return string |
| 32 | */ |
| 33 | public static function get_description() { |
| 34 | return __( 'SureCart eCommerce Platform', 'surecart' ); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Logo url |
| 39 | * |
| 40 | * @return string |
| 41 | */ |
| 42 | public static function get_logo() { |
| 43 | return esc_url( trailingslashit( plugin_dir_url( SURECART_PLUGIN_FILE ) ) . 'app/src/Integrations/ThriveAutomator/images/icon-color.svg' ); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Whether the current App is available for the current user |
| 48 | * e.g prevent premium items from being shown to free users |
| 49 | * |
| 50 | * @return bool |
| 51 | */ |
| 52 | public static function has_access() { |
| 53 | return true; |
| 54 | } |
| 55 | } |
| 56 |