'; if ( Settings::get_scannable_post_types() && Settings::get_scannable_post_statuses() ) { $pro_modal_html = ''; if ( ( ! is_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) || false === EDAC_KEY_VALID ) && true !== (bool) get_user_meta( get_current_user_id(), 'edac_dashboard_cta_dismissed', true ) ) { $pro_modal_html = '

' . __( 'Get Detailed Accessibility Reports', 'accessibility-checker' ) . '

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

' . __( 'Upgrade Accessibility Checker', 'accessibility-checker' ) . '

'; } if ( ( is_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', 'accessibility-checker' ) . '

-
' . __( 'Passed Tests', 'accessibility-checker' ) . '
' . __( 'Report Last Updated:', 'accessibility-checker' ) . '
-
'; $html .= '
' . __( 'URLs Scanned:', 'accessibility-checker' ) . '
-
'; $html .= '
' . __( 'Errors:', 'accessibility-checker' ) . '
-
' . __( 'Color Contrast Errors:', 'accessibility-checker' ) . '
-
' . __( 'Warnings:', 'accessibility-checker' ) . '
-
'; $html .= '
' . __( 'Your site has accessibility issues that should be addressed as soon as possible to ensure compliance with accessibility guidelines.', 'accessibility-checker' ) . '
' . __( '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', 'accessibility-checker' ) . ' ' . __( 'manually test your site', 'accessibility-checker' ) . '.
'; $html .= '

'; } } $html .= '

' . __( 'Issues By Post Type', 'accessibility-checker' ) . '

'; $scannable_post_types = Settings::get_scannable_post_types(); $post_types = get_post_types( [ 'public' => true, ] ); unset( $post_types['attachment'] ); foreach ( $post_types as $post_type ) { $post_types_to_check = array_merge( [ 'post', 'page' ], $scannable_post_types ); if ( in_array( $post_type, $post_types_to_check, true ) ) { if ( in_array( $post_type, $scannable_post_types, true ) ) { $html .= ' '; } else { $html .= ' '; } } elseif ( is_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) && EDAC_KEY_VALID ) { $html .= ' '; } else { $html .= ' '; } } $html .= '
' . __( 'Post Type', 'accessibility-checker' ) . ' ' . __( 'Errors', 'accessibility-checker' ) . ' ' . __( 'Contrast', 'accessibility-checker' ) . ' ' . __( 'Warnings', 'accessibility-checker' ) . '
' . esc_html( ucwords( $post_type ) ) . ' - - -
' . esc_html( ucwords( $post_type ) ) . ' - - -
' . esc_html( ucwords( $post_type ) ) . ' - - -
' . esc_html( ucwords( $post_type ) ) . '
'; $html .= '
Your site has a large number of issues. For performance reasons, not all issues have been included in this report.
'; if ( ! Settings::get_scannable_post_types() || ! Settings::get_scannable_post_statuses() ) { $html .= '
There are no pages set to be checked. Update the post types to be checked under the general settings tab.
'; } $html .= '
'; if ( is_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' ) && EDAC_KEY_VALID ) { $html .= ' ' . __( 'See More Reports', 'accessibility-checker' ) . ''; } $html .= ' Edit Accessibility Checker Settings
'; $html .= '

' . __( 'Learn Accessibility', 'accessibility-checker' ) . '

'; $html .= edac_get_upcoming_meetups_html( 'wordpress-accessibility-meetup-group', 2, 4 ); $html .= '
'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $html; } }