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
ACF.php
37 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 ACF extends Integration { |
| 10 | |
| 11 | public function __construct() { |
| 12 | parent::__construct( |
| 13 | 'ac-addon-acf/ac-addon-acf.php', |
| 14 | __( 'Advanced Custom Fields', 'codepress-admin-columns' ), |
| 15 | 'assets/images/addons/acf-v2.png', |
| 16 | sprintf( |
| 17 | '%s %s', |
| 18 | __( 'Integrates ACF with Admin Columns.', 'codepress-admin-columns' ), |
| 19 | __( 'Display, inline- and bulk-edit, export, smart filter and sort your ACF contents on any admin list table.', 'codepress-admin-columns' ) |
| 20 | ), |
| 21 | 'https://www.advancedcustomfields.com', |
| 22 | new Site( Site::PAGE_ADDON_ACF ) |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | public function is_plugin_active() { |
| 27 | return class_exists( 'acf', false ) || class_exists( 'ACF', false ); |
| 28 | } |
| 29 | |
| 30 | public function show_notice( Screen $screen ) { |
| 31 | return in_array( $screen->get_id(), [ |
| 32 | 'edit-acf-field-group', |
| 33 | 'acf-field-group', |
| 34 | ] ); |
| 35 | } |
| 36 | |
| 37 | } |