ACF.php
5 years ago
BuddyPress.php
5 years ago
EventsCalendar.php
5 years ago
GravityForms.php
5 years ago
MetaBox.php
5 years ago
NinjaForms.php
5 years ago
Pods.php
5 years ago
Types.php
5 years ago
WooCommerce.php
5 years ago
YoastSeo.php
5 years ago
Pods.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Integration; |
| 4 | |
| 5 | use AC\Integration; |
| 6 | use AC\Screen; |
| 7 | use AC\Type\Url\Site; |
| 8 | |
| 9 | final class Pods extends Integration { |
| 10 | |
| 11 | public function __construct() { |
| 12 | parent::__construct( |
| 13 | 'ac-addon-pods/ac-addon-pods.php', |
| 14 | __( 'Pods', 'codepress-admin-columns' ), |
| 15 | 'assets/images/addons/pods.png', |
| 16 | __( 'Display and edit Pods fields in the posts overview in seconds!', 'codepress-admin-columns' ), |
| 17 | null, |
| 18 | new Site( Site::PAGE_ADDON_PODS ) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | public function is_plugin_active() { |
| 23 | return function_exists( 'pods' ); |
| 24 | } |
| 25 | |
| 26 | public function show_notice( Screen $screen ) { |
| 27 | return in_array( $screen->get_id(), [ |
| 28 | 'toplevel_page_pods', |
| 29 | 'pods-admin_page_pods-settings', |
| 30 | ] ); |
| 31 | } |
| 32 | |
| 33 | } |