= strtotime( self::START . ' UTC' ) && $now < strtotime( self::END . ' UTC' ); } private static function days_left() { return (int) max( 1, ceil( ( strtotime( self::END . ' UTC' ) - time() ) / DAY_IN_SECONDS ) ); } private static function has_paid_plan() { if ( ! function_exists( 'is_plugin_active' ) ) { include_once ABSPATH . 'wp-admin/includes/plugin.php'; } if ( is_plugin_active( 'aeo-god-mode-pro/aeo-god-mode-pro.php' ) ) { return true; } return (bool) get_option( 'agm_license_key', '' ); } private static function on_allowed_screen() { $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null; if ( ! $screen ) { return false; } return in_array( $screen->id, array( 'dashboard', 'plugins' ), true ) || false !== strpos( (string) $screen->id, 'aeo-god-mode' ); } /** AI crawler visits in the last 30 days, from the dashboard widget cache only. */ private static function crawler_visits() { $cached = get_transient( 'asgm_dw_crawl' ); if ( is_array( $cached ) && ! empty( $cached['thirty'] ) ) { return (int) $cached['thirty']; } return 0; } private static function url( $content ) { return add_query_arg( array( 'utm_source' => 'plugin', 'utm_medium' => 'admin-notice', 'utm_campaign' => 'bfcm-2026', 'utm_content' => $content, 'discount' => self::CODE, ), 'https://aeogodmode.io/pricing/' ); } public static function render() { if ( ! current_user_can( 'manage_options' ) || ! self::in_window() || self::has_paid_plan() || ! self::on_allowed_screen() ) { return; } if ( get_user_meta( get_current_user_id(), self::META_KEY, true ) ) { return; } $days = self::days_left(); $visits = self::crawler_visits(); if ( 1 === $days ) { $deadline = __( 'Last day', 'aeo-god-mode' ); } else { /* translators: %d: number of days left in the sale */ $deadline = sprintf( _n( '%d day left', '%d days left', $days, 'aeo-god-mode' ), $days ); } if ( $visits > 0 ) { $hook = sprintf( /* translators: %s: number of AI crawler visits */ __( 'AI crawlers visited your site %s times this month. Free shows you what they find. Pro helps you improve it.', 'aeo-god-mode' ), number_format_i18n( $visits ) ); } else { $hook = __( 'Free shows you what AI search can find on your site. Pro helps you improve what it finds.', 'aeo-god-mode' ); } $modules = array( array( 'generate', __( 'Generate', 'aeo-god-mode' ), __( 'FAQ and HowTo blocks, meta descriptions, speakable summaries, bulk titles', 'aeo-god-mode' ) ), array( 'optimize', __( 'Optimize', 'aeo-god-mode' ), __( 'Content Improvements and Keyword Optimize with one-click apply', 'aeo-god-mode' ) ), array( 'connect', __( 'Connect', 'aeo-god-mode' ), __( 'Smart Internal Linking fixes the orphan pages Free finds, plus IndexNow', 'aeo-god-mode' ) ), array( 'measure', __( 'Measure', 'aeo-god-mode' ), __( 'Citation Tracker across 4 AI engines, AI referral traffic, Citability Score', 'aeo-god-mode' ) ), array( 'map', __( 'Topical Map', 'aeo-god-mode' ), __( 'The pages to write next, mapped from your Search Console searches, ranked and drafted for you', 'aeo-god-mode' ) ), ); $nonce = wp_create_nonce( self::ACTION ); ?>
'