prefix . 'wheel_spins'; $spins = $wpdb->get_var($wpdb->prepare("SELECT spins_available FROM $spins_table WHERE user_id = %d AND wheel_id = %d", $user_id, $wheel_id)); $spins = $spins === null ? 0 : (int) $spins; // Get prizes for the specific wheel $wheel = wheel_of_fortune(); $prizes = $wheel->get_wheel_prizes($wheel_id); // Set classes for size, theme and scale $container_classes = array( 'wheel-container', 'wheel-of-fortune-container', 'size-' . $atts['size'], 'theme-' . $atts['theme'] ); // Add scale class if provided if (!empty($atts['scale'])) { $container_classes[] = $atts['scale']; } // Generate unique ID for this wheel $wheel_id_html = 'wheel-of-fortune-' . uniqid(); ?>