'questions', 'href' => $list, 'html' => sprintf( /* translators: %s: count */ __( 'Questions %s', '4wp-faq' ), number_format_i18n( (int) ( $stats['total_questions'] ?? 0 ) ) ), ], [ 'class' => 'categories', 'href' => $cats, 'html' => sprintf( /* translators: %s: count */ __( 'Categories %s', '4wp-faq' ), number_format_i18n( (int) ( $stats['faq_categories'] ?? 0 ) ) ), ], [ 'class' => 'reused', 'href' => $list, 'html' => sprintf( /* translators: %s: count */ __( 'Reused %s', '4wp-faq' ), number_format_i18n( (int) ( $stats['reused_questions'] ?? 0 ) ) ), ], [ 'class' => 'uncat', 'href' => $list, 'html' => sprintf( /* translators: %s: count */ __( 'Uncategorized %s', '4wp-faq' ), number_format_i18n( (int) ( $stats['uncategorized'] ?? 0 ) ) ), ], ]; Admin_Dashboard::render_language_note( $data ); echo ''; echo '
'; echo ''; if ( ! empty( $data['last_scan_label'] ) ) { echo esc_html( sprintf( /* translators: %s: date/time */ __( 'Last scan: %s', '4wp-faq' ), $data['last_scan_label'] ) ); } else { echo esc_html__( 'Not scanned yet.', '4wp-faq' ); } echo ''; echo ''; echo esc_html__( 'Open dashboard', '4wp-faq' ); echo ''; echo '
'; } /** * Minimal CTA: open Settings → 4WP FAQ Setup (slugs configured there). */ public static function render_widget() { $setup_url = Setup_Wizard::get_page_url(); ?>