ACF.php
1 day ago
BeaverBuilder.php
1 day ago
BuddyPress.php
1 day ago
EventsCalendar.php
1 day ago
Filter.php
1 day ago
GravityForms.php
1 day ago
IntegrationRepository.php
1 day ago
JetEngine.php
1 day ago
MediaLibraryAssistant.php
1 day ago
MetaBox.php
1 day ago
Pods.php
1 day ago
RankMath.php
1 day ago
SeoPress.php
1 day ago
Types.php
1 day ago
WooCommerce.php
1 day ago
YoastSeo.php
1 day ago
SeoPress.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Integration; |
| 6 | |
| 7 | use AC\Screen; |
| 8 | use AC\Type\Integration; |
| 9 | use AC\Type\Url\Site; |
| 10 | |
| 11 | final class SeoPress extends Integration |
| 12 | { |
| 13 | public function __construct() |
| 14 | { |
| 15 | parent::__construct( |
| 16 | 'ac-addon-seopress', |
| 17 | 'SeoPress', |
| 18 | 'assets/images/addons/seopress.svg', |
| 19 | __( |
| 20 | 'Add SeoPress titles, descriptions, and scores to your post list table. Spot missing metadata at a glance and fix it inline - no need to open each post.', |
| 21 | 'codepress-admin-columns' |
| 22 | ), |
| 23 | null, |
| 24 | new Site(Site::PAGE_ADDON_SEOPRESS) |
| 25 | ); |
| 26 | } |
| 27 | |
| 28 | public function is_plugin_active(): bool |
| 29 | { |
| 30 | return defined('SEOPRESS_PRO_VERSION'); |
| 31 | } |
| 32 | |
| 33 | public function show_notice(Screen $screen): bool |
| 34 | { |
| 35 | return in_array($screen->get_id(), [ |
| 36 | 'toplevel_page_seopress-option', |
| 37 | 'seo_page_seopress-titles', |
| 38 | ]); |
| 39 | } |
| 40 | |
| 41 | } |
| 42 |