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
YoastSeo.php
33 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 YoastSeo extends Integration { |
| 10 | |
| 11 | public function __construct() { |
| 12 | parent::__construct( |
| 13 | 'ac-addon-yoast-seo/ac-addon-yoast-seo.php', |
| 14 | 'Yoast SEO', |
| 15 | 'assets/images/addons/yoast-seo.png', |
| 16 | __( 'Enrich the Yoast SEO columns with amazing pro features!', 'codepress-admin-columns' ), |
| 17 | 'https://www.yoast.com', |
| 18 | new Site( Site::PAGE_ADDON_YOAST_SEO ) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | public function is_plugin_active() { |
| 23 | return defined( 'WPSEO_VERSION' ); |
| 24 | } |
| 25 | |
| 26 | public function show_notice( Screen $screen ) { |
| 27 | return in_array( $screen->get_id(), [ |
| 28 | 'toplevel_page_wpseo_dashboard', |
| 29 | 'seo_page_wpseo_titles', |
| 30 | ] ); |
| 31 | } |
| 32 | |
| 33 | } |