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
BuddyPress.php
35 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 | |
| 10 | final class BuddyPress extends Integration { |
| 11 | |
| 12 | public function __construct() { |
| 13 | parent::__construct( |
| 14 | 'ac-addon-buddypress/ac-addon-buddypress.php', |
| 15 | __( 'BuddyPress', 'codepress-admin-columns' ), |
| 16 | 'assets/images/addons/buddypress.png', |
| 17 | __( 'Display any of your Profile Fields for BuddyPress on your users overview.', 'codepress-admin-columns' ), |
| 18 | null, |
| 19 | new Site( Site::PAGE_ADDON_BUDDYPRESS ) |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | public function is_plugin_active() { |
| 24 | return class_exists( 'BuddyPress', false ); |
| 25 | } |
| 26 | |
| 27 | public function show_notice( Screen $screen ) { |
| 28 | return 'users' === $screen->get_id(); |
| 29 | } |
| 30 | |
| 31 | public function show_placeholder( ListScreen $list_screen ) { |
| 32 | return $list_screen instanceof ListScreen\User; |
| 33 | } |
| 34 | |
| 35 | } |