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
BuddyPress.php
39 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 | sprintf( |
| 18 | '%s %s', |
| 19 | sprintf( __( 'Integrates %s with Admin Columns.', 'codepress-admin-columns' ), __( 'BuddyPress', 'codepress-admin-columns' ) ), |
| 20 | __( 'Display, inline- and bulk-edit, export, smart filter and sort your BuddyPress data fields on the Users page.', 'codepress-admin-columns' ) |
| 21 | ), |
| 22 | null, |
| 23 | new Site( Site::PAGE_ADDON_BUDDYPRESS ) |
| 24 | ); |
| 25 | } |
| 26 | |
| 27 | public function is_plugin_active() { |
| 28 | return class_exists( 'BuddyPress', false ); |
| 29 | } |
| 30 | |
| 31 | public function show_notice( Screen $screen ) { |
| 32 | return 'users' === $screen->get_id(); |
| 33 | } |
| 34 | |
| 35 | public function show_placeholder( ListScreen $list_screen ) { |
| 36 | return $list_screen instanceof ListScreen\User; |
| 37 | } |
| 38 | |
| 39 | } |