AcfBulkEditNotice.php
1 day ago
AcfNotice.php
1 day ago
AcfSortAndFilterNotice.php
1 day ago
EventsCalendarNotice.php
1 day ago
GravityFormsNotice.php
1 day ago
IntegrationNotice.php
1 day ago
IntegrationNoticeRenderer.php
1 day ago
PostEditReferrerAware.php
1 day ago
UsageAwareNotice.php
1 day ago
WooCommerceOrdersFilterNotice.php
1 day ago
WooCommerceOrdersNotice.php
1 day ago
WooCommerceOrdersScreenAware.php
1 day ago
WooCommerceOrdersSearchNotice.php
1 day ago
WooCommerceProductsBulkEditNotice.php
1 day ago
WooCommerceProductsFilterNotice.php
1 day ago
WooCommerceProductsNotice.php
1 day ago
WooCommerceProductsSearchNotice.php
1 day ago
GravityFormsNotice.php
78 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Check\Integration; |
| 6 | |
| 7 | use AC\Screen; |
| 8 | use AC\Type\Url\Site; |
| 9 | use AC\Type\Url\UtmTags; |
| 10 | |
| 11 | class GravityFormsNotice implements IntegrationNotice |
| 12 | { |
| 13 | public function is_active(Screen $screen): bool |
| 14 | { |
| 15 | if (! class_exists('GFCommon', false)) { |
| 16 | return false; |
| 17 | } |
| 18 | |
| 19 | return 'forms_page_gf_entries' === $screen->get_id(); |
| 20 | } |
| 21 | |
| 22 | public function get_slug(): string |
| 23 | { |
| 24 | return 'gravityforms'; |
| 25 | } |
| 26 | |
| 27 | public function get_integration_slug(): string |
| 28 | { |
| 29 | return 'ac-addon-gravityforms'; |
| 30 | } |
| 31 | |
| 32 | public function get_eyebrow(): string |
| 33 | { |
| 34 | return ''; |
| 35 | } |
| 36 | |
| 37 | public function get_title(): string |
| 38 | { |
| 39 | return __('Still opening entries to edit or manage data?', 'codepress-admin-columns'); |
| 40 | } |
| 41 | |
| 42 | public function get_description(): string |
| 43 | { |
| 44 | return __('Edit fields inline, filter and search faster, and export your entries - all without leaving this table.', 'codepress-admin-columns'); |
| 45 | } |
| 46 | |
| 47 | public function get_cta_label(): string |
| 48 | { |
| 49 | return __('Upgrade to Admin Columns Pro', 'codepress-admin-columns'); |
| 50 | } |
| 51 | |
| 52 | public function get_cta_url(): string |
| 53 | { |
| 54 | return (new UtmTags(new Site(Site::PAGE_ADDON_GRAVITYFORMS), 'notice-gravityforms'))->get_url(); |
| 55 | } |
| 56 | |
| 57 | public function get_secondary_label(): string |
| 58 | { |
| 59 | return __('See features', 'codepress-admin-columns'); |
| 60 | } |
| 61 | |
| 62 | public function get_secondary_url(): string |
| 63 | { |
| 64 | return (new UtmTags(new Site(Site::PAGE_ADDON_GRAVITYFORMS), 'notice-gravityforms-features'))->get_url(); |
| 65 | } |
| 66 | |
| 67 | public function get_extra_classes(): string |
| 68 | { |
| 69 | return 'gf-notice'; |
| 70 | } |
| 71 | |
| 72 | public function get_delay_days(): int |
| 73 | { |
| 74 | return 14; |
| 75 | } |
| 76 | |
| 77 | } |
| 78 |