current_plugin_slug = $current_plugin_slug; $this->css_prefix = $css_prefix; } /** * Get plugins catalog. * * @return array Associative array of plugin slugs and their data. */ private function get_plugins_catalog() { return array( 'vigilante' => array( 'icon' => 'dashicons-shield', 'title' => __( 'Complete WordPress security', 'ai-content-signals' ), 'description' => __( 'All-in-one security plugin: firewall, login protection, security headers, 2FA, file integrity monitoring, and activity logging.', 'ai-content-signals' ), 'button' => __( 'Install Vigilante', 'ai-content-signals' ), ), 'gozer' => array( 'icon' => 'dashicons-admin-network', 'title' => __( 'Restrict site access', 'ai-content-signals' ), 'description' => __( 'Force visitors to log in before accessing your site with extensive exception controls for pages, posts, and user roles.', 'ai-content-signals' ), 'button' => __( 'Install Gozer', 'ai-content-signals' ), ), 'vigia' => array( 'icon' => 'dashicons-visibility', 'title' => __( 'Monitor AI crawler activity', 'ai-content-signals' ), 'description' => __( 'Track which AI bots visit your site, analyze their behavior, and take control with blocking rules and robots.txt management.', 'ai-content-signals' ), 'button' => __( 'Install VigIA', 'ai-content-signals' ), ), 'ai-share-summarize' => array( 'icon' => 'dashicons-share', 'title' => __( 'Boost your AI presence', 'ai-content-signals' ), 'description' => __( 'Add social sharing and AI summarize buttons. Help visitors share your content and let AIs learn from your site while getting backlinks.', 'ai-content-signals' ), 'button' => __( 'Install AI Share & Summarize', 'ai-content-signals' ), ), 'ai-content-signals' => array( 'icon' => 'dashicons-flag', 'title' => __( 'Control AI content usage', 'ai-content-signals' ), 'description' => __( 'Cloudflare-endorsed plugin to define how AI systems can use your content: for training, search results, or both.', 'ai-content-signals' ), 'button' => __( 'Install AI Content Signals', 'ai-content-signals' ), ), 'wpo-tweaks' => array( 'icon' => 'dashicons-performance', 'title' => __( 'Speed up your WordPress', 'ai-content-signals' ), 'description' => __( 'Comprehensive performance optimizations: critical CSS, lazy loading, cache rules, and 30+ tweaks with zero configuration.', 'ai-content-signals' ), 'button' => __( 'Install Zero Config Performance', 'ai-content-signals' ), ), 'no-gutenberg' => array( 'icon' => 'dashicons-edit-page', 'title' => __( 'Back to Classic Editor', 'ai-content-signals' ), 'description' => __( 'Completely remove Gutenberg, FSE styles, and block widgets. Restore the classic editing experience with better performance.', 'ai-content-signals' ), 'button' => __( 'Install No Gutenberg', 'ai-content-signals' ), ), 'anticache' => array( 'icon' => 'dashicons-hammer', 'title' => __( 'Development toolkit', 'ai-content-signals' ), 'description' => __( 'Bypass all caching during development. Auto-detects cache plugins, enables debug mode, and includes maintenance screen.', 'ai-content-signals' ), 'button' => __( 'Install Anti-Cache Kit', 'ai-content-signals' ), ), 'auto-capitalize-names-ayudawp' => array( 'icon' => 'dashicons-editor-textcolor', 'title' => __( 'Fix customer names', 'ai-content-signals' ), 'description' => __( 'Auto-capitalize names and addresses in WordPress and WooCommerce. Keep invoices and reports professionally formatted.', 'ai-content-signals' ), 'button' => __( 'Install Auto Capitalize', 'ai-content-signals' ), ), 'easy-actions-scheduler-cleaner-ayudawp' => array( 'icon' => 'dashicons-database-remove', 'title' => __( 'Clean Action Scheduler', 'ai-content-signals' ), 'description' => __( 'Remove millions of completed, failed, and old actions from WooCommerce Action Scheduler. Reduce database size instantly.', 'ai-content-signals' ), 'button' => __( 'Install Scheduler Cleaner', 'ai-content-signals' ), ), 'native-sitemap-customizer' => array( 'icon' => 'dashicons-networking', 'title' => __( 'Customize your sitemap', 'ai-content-signals' ), 'description' => __( 'Control WordPress native sitemap: exclude post types, taxonomies, specific posts, and authors. No bloat, just options.', 'ai-content-signals' ), 'button' => __( 'Install Sitemap Customizer', 'ai-content-signals' ), ), 'post-visibility-control' => array( 'icon' => 'dashicons-hidden', 'title' => __( 'Control post visibility', 'ai-content-signals' ), 'description' => __( 'Hide posts from homepage, archives, feeds, or REST API while keeping them accessible via direct URL.', 'ai-content-signals' ), 'button' => __( 'Install Post Visibility', 'ai-content-signals' ), ), 'widget-visibility-control' => array( 'icon' => 'dashicons-welcome-widgets-menus', 'title' => __( 'Smart widget display', 'ai-content-signals' ), 'description' => __( 'Show or hide widgets based on pages, post types, categories, user roles, and more. Works with any theme.', 'ai-content-signals' ), 'button' => __( 'Install Widget Visibility', 'ai-content-signals' ), ), 'search-replace-text-blocks' => array( 'icon' => 'dashicons-search', 'title' => __( 'Search & replace in blocks', 'ai-content-signals' ), 'description' => __( 'Find and replace text across all your Gutenberg blocks. Bulk edit content without touching the database directly.', 'ai-content-signals' ), 'button' => __( 'Install Search Replace Blocks', 'ai-content-signals' ), ), 'seo-read-more-buttons-ayudawp' => array( 'icon' => 'dashicons-admin-links', 'title' => __( 'Better read more links', 'ai-content-signals' ), 'description' => __( 'Customize excerpt "read more" links with buttons, custom text, and nofollow option. Improve CTR and SEO.', 'ai-content-signals' ), 'button' => __( 'Install SEO Read More', 'ai-content-signals' ), ), 'show-only-lowest-prices-in-woocommerce-variable-products' => array( 'icon' => 'dashicons-tag', 'title' => __( 'Cleaner variable prices', 'ai-content-signals' ), 'description' => __( 'Display only the lowest price for WooCommerce variable products instead of confusing price ranges.', 'ai-content-signals' ), 'button' => __( 'Install Lowest Price', 'ai-content-signals' ), ), 'multiple-sale-prices-scheduler' => array( 'icon' => 'dashicons-calendar-alt', 'title' => __( 'Schedule sale prices', 'ai-content-signals' ), 'description' => __( 'Set multiple future sale prices for WooCommerce products. Plan promotions in advance with start and end dates.', 'ai-content-signals' ), 'button' => __( 'Install Sale Scheduler', 'ai-content-signals' ), ), 'easy-store-management-ayudawp' => array( 'icon' => 'dashicons-store', 'title' => __( 'Simplify store management', 'ai-content-signals' ), 'description' => __( 'Clean up WordPress admin for Store Managers. Hide unnecessary menus, keep only orders, products, and customers, plus quick access shortcuts.', 'ai-content-signals' ), 'button' => __( 'Install Easy Store', 'ai-content-signals' ), ), 'lightbox-images-for-divi' => array( 'icon' => 'dashicons-format-gallery', 'title' => __( 'Lightbox for Divi', 'ai-content-signals' ), 'description' => __( 'Add native lightbox functionality to Divi theme images. No jQuery, fast loading, fully customizable.', 'ai-content-signals' ), 'button' => __( 'Install Divi Lightbox', 'ai-content-signals' ), ), 'scheduled-posts-showcase' => array( 'icon' => 'dashicons-clock', 'title' => __( 'Show visitors what is coming up next', 'ai-content-signals' ), 'description' => __( 'Display your scheduled and future posts on the frontend to gain and retain visits.', 'ai-content-signals' ), 'button' => __( 'Install Scheduled Posts Showcase', 'ai-content-signals' ), ), 'periscopio' => array( 'icon' => 'dashicons-rss', 'title' => __( 'Custom Dashboard News', 'ai-content-signals' ), 'description' => __( 'Add your own custom feeds and links to the news and events dashboard widget and replace WordPress default one.', 'ai-content-signals' ), 'button' => __( 'Install Periscopio', 'ai-content-signals' ), ), ); } /** * Get services catalog. * * @return array Associative array of services and their data. */ private function get_services_catalog() { return array( 'maintenance' => array( 'icon' => 'dashicons-admin-tools', 'title' => __( 'Need help with your website?', 'ai-content-signals' ), 'description' => __( 'Professional WordPress maintenance: security monitoring, regular backups, performance optimization, and priority support.', 'ai-content-signals' ), 'button' => __( 'Learn more', 'ai-content-signals' ), 'url' => 'https://mantenimiento.ayudawp.com', ), 'consultancy' => array( 'icon' => 'dashicons-businessman', 'title' => __( 'WordPress consultancy', 'ai-content-signals' ), 'description' => __( 'One-on-one online sessions to solve your WordPress doubts, get expert advice, and make better decisions for your project.', 'ai-content-signals' ), 'button' => __( 'Book a session', 'ai-content-signals' ), 'url' => 'https://servicios.ayudawp.com/producto/consultoria-online-wordpress/', ), 'hacked' => array( 'icon' => 'dashicons-sos', 'title' => __( 'Hacked website?', 'ai-content-signals' ), 'description' => __( 'Fast recovery service for compromised WordPress sites. We clean malware, fix vulnerabilities, and restore your site security.', 'ai-content-signals' ), 'button' => __( 'Get help now', 'ai-content-signals' ), 'url' => 'https://servicios.ayudawp.com/producto/wordpress-hackeado/', ), 'development' => array( 'icon' => 'dashicons-editor-code', 'title' => __( 'Custom development', 'ai-content-signals' ), 'description' => __( 'Need a custom plugin, theme modifications, or specific functionality? We build tailored WordPress solutions for your needs.', 'ai-content-signals' ), 'button' => __( 'Request a quote', 'ai-content-signals' ), 'url' => 'https://servicios.ayudawp.com/producto/desarrollo-wordpress/', ), 'hosting' => array( 'icon' => 'dashicons-cloud-saved', 'title' => __( 'Hosting built for WordPress', 'ai-content-signals' ), 'description' => __( 'Google Cloud servers, automatic geo-located daily backups, and 24/7 expert support. Speed, security, and migration tools included.', 'ai-content-signals' ), 'button' => __( 'Get Started', 'ai-content-signals' ), /* translators: SiteGround affiliate URL. Change this URL in translations to use a localized landing page. */ 'url' => __( 'https://stgrnd.co/telladowpbox', 'ai-content-signals' ), ), ); } /** * Get random plugins excluding current. * * @param int $count Number of plugins to return. * @return array Random plugins. */ private function get_random_plugins( $count = 2 ) { $plugins = $this->get_plugins_catalog(); // Remove current plugin. unset( $plugins[ $this->current_plugin_slug ] ); // Get random keys. $random_keys = array_rand( $plugins, min( $count, count( $plugins ) ) ); if ( ! is_array( $random_keys ) ) { $random_keys = array( $random_keys ); } $result = array(); foreach ( $random_keys as $key ) { $result[ $key ] = $plugins[ $key ]; } return $result; } /** * Get random service. * * @return array Single random service data. */ private function get_random_service() { $services = $this->get_services_catalog(); $random_key = array_rand( $services ); return $services[ $random_key ]; } /** * Render the promotional banner (horizontal 3-column layout). */ public function render() { $plugins = $this->get_random_plugins( 2 ); $service = $this->get_random_service(); $prefix = $this->css_prefix; ?>

$plugin ) : ?>