css_prefix = $css_prefix; } /** * 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' ), /* translators: Maintenance service URL. Change this URL in translations to use a localized landing page. */ 'url' => __( 'https://mantenimiento.ayudawp.com/en/', 'ai-content-signals' ), ), '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' => __( 'Learn more', '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 services. * * @param int $count Number of services to return. * @return array Random services. */ private function get_random_services( $count = 3 ) { $services = $this->get_services_catalog(); // Get random keys. $random_keys = array_rand( $services, min( $count, count( $services ) ) ); if ( ! is_array( $random_keys ) ) { $random_keys = array( $random_keys ); } $result = array(); foreach ( $random_keys as $key ) { $result[ $key ] = $services[ $key ]; } return $result; } /** * Render the promotional banner (horizontal 3-column layout). */ public function render() { $services = $this->get_random_services( 3 ); $prefix = $this->css_prefix; ?>