ACF.php
2 days ago
BeaverBuilder.php
2 days ago
BuddyPress.php
2 days ago
EventsCalendar.php
2 days ago
Filter.php
2 days ago
GravityForms.php
2 days ago
IntegrationRepository.php
2 days ago
JetEngine.php
2 days ago
MediaLibraryAssistant.php
2 days ago
MetaBox.php
2 days ago
Pods.php
2 days ago
RankMath.php
2 days ago
SeoPress.php
2 days ago
Types.php
2 days ago
WooCommerce.php
2 days ago
YoastSeo.php
2 days ago
GravityForms.php
46 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Integration; |
| 6 | |
| 7 | use AC\Screen; |
| 8 | use AC\TableScreen; |
| 9 | use AC\Type\Integration; |
| 10 | use AC\Type\Url\Site; |
| 11 | use ACA; |
| 12 | |
| 13 | final class GravityForms extends Integration |
| 14 | { |
| 15 | public function __construct() |
| 16 | { |
| 17 | parent::__construct( |
| 18 | 'ac-addon-gravityforms', |
| 19 | 'Gravity Forms', |
| 20 | 'assets/images/addons/gravityforms.svg', |
| 21 | __( |
| 22 | 'Turn your Gravity Forms entries into a sortable, filterable table. Review submissions, update entry fields inline, and export filtered results to CSV for reporting.', |
| 23 | 'codepress-admin-columns' |
| 24 | ), |
| 25 | null, |
| 26 | new Site(Site::PAGE_ADDON_GRAVITYFORMS) |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | public function is_plugin_active(): bool |
| 31 | { |
| 32 | return class_exists('GFCommon', false); |
| 33 | } |
| 34 | |
| 35 | public function show_notice(Screen $screen): bool |
| 36 | { |
| 37 | return 'toplevel_page_gf_edit_forms' === $screen->get_id(); |
| 38 | } |
| 39 | |
| 40 | public function show_placeholder(TableScreen $table_screen): bool |
| 41 | { |
| 42 | return $table_screen instanceof ACA\GravityForms\TableScreen\Entry; |
| 43 | } |
| 44 | |
| 45 | } |
| 46 |