scan_summary(); $html .= '
'; $pro_modal_html = ''; if ( ( ! edac_check_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) || false == EDAC_KEY_VALID ) && true !== boolval( get_user_meta( get_current_user_id(), 'edac_dashboard_cta_dismissed', true ) ) ) { $pro_modal_html = '

Get Detailed Accessibility Reports

Start scanning your entire website for accessibility issues, get full-site reports, and become compliant with accessibility guidelines faster.

Upgrade Accessibility Checker

'; } if ( ( edac_check_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) && EDAC_KEY_VALID ) || '' != $pro_modal_html ) { $html .= '
'; $html .= $pro_modal_html; $html .= '

Full Site Accessibility Status

' . $summary['passed_percentage'] . '%
Passed Tests
Last Full-Site Scan:
'; if ( $summary['fullscan_completed_at'] > 0 ) { $html .= '
' . $summary['fullscan_completed_at'] . '
'; } else { $html .= '
Never
'; } $html .= '
URLs Scanned:
' . $summary['posts_scanned'] . '
'; $html .= '
Errors:
' . $summary['distinct_errors_without_contrast'] . '
Color Contrast Errors:
' . $summary['distinct_contrast_errors'] . '
Warnings:
' . $summary['distinct_warnings'] . '
'; if ( (int) ( $summary['distinct_errors'] + $summary['distinct_warnings'] ) > 0 ) { $html .= '
Your site has accessibility issues that should be addressed as soon as possible to ensure compliance with accessibility guidelines.
'; } else { $html .= '
Way to go! Accessibility Checker cannot find any accessibility problems in the content it tested. Some problems cannot be found by automated tools so don\'t forget to manually test your site.
'; } $html .= '

'; } $html .= '

Issues By Post Type

'; $scannable_post_types = Settings::get_scannable_post_types(); $post_types = get_post_types( array( 'public' => true, ) ); unset( $post_types['attachment'] ); foreach ( $post_types as $post_type ) { $post_types_to_check = array_merge( array( 'post', 'page' ), $scannable_post_types ); if ( in_array( $post_type, $post_types_to_check ) ) { if ( in_array( $post_type, $scannable_post_types ) ) { $by_issue = $scan_data->issue_summary_by_post_type( $post_type ); $html .= ' '; } else { $html .= ' '; } } else { if ( edac_check_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) && EDAC_KEY_VALID ) { $html .= ' '; } else { $html .= ' '; } } } $html .= '
Post Type Errors Contrast Warnings
' . esc_html( ucwords( $post_type ) ) . ' ' . $by_issue['distinct_errors_without_contrast'] . ' ' . $by_issue['distinct_contrast_errors'] . ' ' . $by_issue['distinct_warnings'] . '
' . esc_html( ucwords( $post_type ) ) . ' - - -
' . esc_html( ucwords( $post_type ) ) . ' - - -
' . esc_html( ucwords( $post_type ) ) . '
'; if ( edac_check_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) && EDAC_KEY_VALID ) { $html .= ' See More Reports'; } $html .= ' Edit Accessibility Checker Settings

Learn Accessibility

'; $html .= edac_get_upcoming_meetups_html( 'wordpress-accessibility-meetup-group', 2 ); $html .= '
'; echo $html; } }