[ 'https://ps.w.org/ar-viewer/assets/icon-256x256.gif', 'https://ps.w.org/ar-viewer/assets/icon-128x128.gif', ], ]; // Return custom icons if available, otherwise use default WordPress.org URLs if (isset($custom_icons[$plugin_slug_clean])) { return $custom_icons[$plugin_slug_clean]; } return [ "https://ps.w.org/{$plugin_slug_clean}/assets/icon-256x256.png", // Large PNG "https://ps.w.org/{$plugin_slug_clean}/assets/icon-128x128.png", // Medium PNG ]; } } // Define plugin slugs $plugin_slugs = array( 'bdthemes-element-pack-lite', 'bdthemes-prime-slider-lite/bdthemes-prime-slider.php', 'ultimate-post-kit', 'ultimate-store-kit', 'zoloblocks', 'pixel-gallery', 'live-copy-paste', 'spin-wheel', 'ai-image', 'dark-reader', 'ar-viewer', 'smart-admin-assistant', 'website-accessibility', ); // Get enhanced plugin data using the remote data handler $upk_plugins = Remote_Data_Handler::get_remote_plugins(); // Check if we have cached data $has_cached_data = !empty($upk_plugins); // If no cached data, don't fetch immediately - let JavaScript handle it if (!$has_cached_data) { $upk_plugins = []; // Empty array for initial load } ?>