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