id, 'adworksbid-seo' ) !== false;
}
// ── Inline upsell helpers (call from any free view) ────────────────────────
/**
* Render a banner pointing to the Pro upgrade page.
* Use at the top of a page that has a related Pro feature.
*
* @param string $feature_slug e.g. 'revenue_intelligence'
* @param array $args title, description, cta, style
*/
public static function banner( $feature_slug, $args = [] ) {
if ( AWBSEO_PRO_ACTIVE ) return; // Pro plugin handles its own UI
$defaults = [
'title' => __( 'More with CitedSEO PRO', 'adworksbid-seo' ),
'description' => __( 'Unlock additional features with CitedSEO PRO.', 'adworksbid-seo' ),
'cta' => __( 'Get Pro - $79/year →', 'adworksbid-seo' ),
'url' => 'https://adworks.bid/awbseo-pro/?utm_source=plugin&utm_medium=' . $feature_slug,
'style' => 'full',
];
$args = array_merge( $defaults, $args );
if ( $args['style'] === 'inline' ) {
self::render_inline( $args );
} else {
self::render_full( $args );
}
}
private static function render_full( $args ) {
?>
PRO