ACF.php
1 month ago
BeaverBuilder.php
1 month ago
BuddyPress.php
1 month ago
EventsCalendar.php
1 month ago
Filter.php
1 month ago
GravityForms.php
1 month ago
IntegrationRepository.php
1 month ago
JetEngine.php
1 month ago
MediaLibraryAssistant.php
1 month ago
MetaBox.php
1 month ago
Pods.php
1 month ago
RankMath.php
1 month ago
SeoPress.php
1 month ago
Types.php
1 month ago
WooCommerce.php
1 month ago
YoastSeo.php
1 month ago
JetEngine.php
44 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Integration; |
| 4 | |
| 5 | use AC\Screen; |
| 6 | use AC\Type\Integration; |
| 7 | use AC\Type\Url\External; |
| 8 | use AC\Type\Url\Site; |
| 9 | |
| 10 | final class JetEngine extends Integration |
| 11 | { |
| 12 | |
| 13 | public function __construct() |
| 14 | { |
| 15 | parent::__construct( |
| 16 | 'ac-addon-jetengine', |
| 17 | 'JetEngine', |
| 18 | 'assets/images/addons/jetengine.svg?v3', |
| 19 | __( |
| 20 | 'Display and manage JetEngine custom fields, relations, and meta data in any list table. Edit, filter, and sort JetEngine content the same way you manage native WordPress data.', |
| 21 | 'codepress-admin-columns' |
| 22 | ), |
| 23 | new External('https://crocoblock.com/plugins/jetengine/'), |
| 24 | new Site(Site::PAGE_ADDON_JETENGINE) |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | public function is_plugin_active(): bool |
| 29 | { |
| 30 | return class_exists('Jet_Engine', false); |
| 31 | } |
| 32 | |
| 33 | public function show_notice(Screen $screen): bool |
| 34 | { |
| 35 | return in_array($screen->get_id(), [ |
| 36 | 'toplevel_page_jet-engine', |
| 37 | 'jetengine_page_jet-engine-meta', |
| 38 | 'jetengine_page_jet-engine-cpt', |
| 39 | 'jetengine_page_jet-engine-cpt-tax', |
| 40 | 'jetengine_page_jet-engine-relations', |
| 41 | ]); |
| 42 | } |
| 43 | |
| 44 | } |