Filter
4 years ago
ACF.php
4 years ago
BuddyPress.php
4 years ago
EventsCalendar.php
4 years ago
Filter.php
4 years ago
GravityForms.php
4 years ago
MetaBox.php
4 years ago
NinjaForms.php
4 years ago
Pods.php
4 years ago
Types.php
4 years ago
WooCommerce.php
4 years ago
YoastSeo.php
4 years ago
GravityForms.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Integration; |
| 4 | |
| 5 | use AC\Integration; |
| 6 | use AC\ListScreen; |
| 7 | use AC\Screen; |
| 8 | use AC\Type\Url\Site; |
| 9 | use ACA; |
| 10 | |
| 11 | final class GravityForms extends Integration { |
| 12 | |
| 13 | public function __construct() { |
| 14 | parent::__construct( |
| 15 | 'ac-addon-gravityforms/ac-addon-gravityforms.php', |
| 16 | 'Gravity Forms', |
| 17 | 'assets/images/addons/gravityforms.svg', |
| 18 | sprintf( |
| 19 | '%s %s', |
| 20 | sprintf( __( 'Integrates %s with Admin Columns.', 'codepress-admin-columns' ), __( 'Gravity Forms', 'codepress-admin-columns' ) ), |
| 21 | sprintf( __( 'Display, inline- and bulk-edit, export, smart filter and sort your %s Entries.', 'codepress-admin-columns' ), __( 'Gravity Forms', 'codepress-admin-columns' ) ) |
| 22 | ), |
| 23 | null, |
| 24 | new Site( Site::PAGE_ADDON_GRAVITYFORMS ) |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | public function is_plugin_active() { |
| 29 | return class_exists( 'GFCommon', false ); |
| 30 | } |
| 31 | |
| 32 | public function show_notice( Screen $screen ) { |
| 33 | return 'forms_page_gf_entries' === $screen->get_id(); |
| 34 | } |
| 35 | |
| 36 | public function show_placeholder( ListScreen $list_screen ) { |
| 37 | return $list_screen instanceof ACA\GravityForms\ListScreen\Entry; |
| 38 | } |
| 39 | |
| 40 | } |