'; if ( Settings::get_scannable_post_types() && Settings::get_scannable_post_statuses() ) { $pro_modal_html = ''; if ( ( ! defined( 'EDACP_VERSION' ) || false === EDAC_KEY_VALID ) && true !== (bool) get_user_meta( get_current_user_id(), 'edac_dashboard_cta_dismissed', true ) ) { $pro_modal_link = edac_generate_link_type( [ 'utm_campaign' => 'dashboard-widget', 'utm_content' => 'upgrade-to-edacp', ], ); $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 ( ( defined( 'EDACP_VERSION' ) && EDAC_KEY_VALID ) || '' !== $pro_modal_html ) { $html .= '
'; $html .= $pro_modal_html; $html .= '

' . __( 'Full Site Accessibility Status', 'accessibility-checker' ) . '

- ' . __( 'URLs Scanned', 'accessibility-checker' ) . ' • ' . __( 'Updated', 'accessibility-checker' ) . ' -
-
' . __( 'Passed Checks', 'accessibility-checker' ) . '
' . edac_icon( 'check' ) . ' ' . edac_icon( 'error' ) . '
' . __( 'Problems:', 'accessibility-checker' ) . '
-
' . edac_icon( 'check' ) . ' ' . edac_icon( 'error' ) . '
' . __( 'Contrast Problems:', 'accessibility-checker' ) . '
-
' . edac_icon( 'check' ) . ' ' . edac_icon( 'warning' ) . '
' . __( 'Needs Review:', 'accessibility-checker' ) . '
-
'; $manually_check_link = edac_link_wrapper( 'https://equalizedigital.com/accessibility-checker/how-to-manually-check-your-website-for-accessibility/?utm_source=accessibility-checker&utm_medium=software&utm_campaign=dashboard-widget', 'dashboard-widget', 'how-to-manually-check', false ); $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 ); $post_type_label = edac_get_post_type_label( $post_type ); if ( in_array( $post_type, $post_types_to_check, true ) ) { if ( in_array( $post_type, $scannable_post_types, true ) ) { $html .= ' '; } else { $html .= ' '; } } elseif ( defined( 'EDACP_VERSION' ) && EDAC_KEY_VALID ) { $html .= ' '; } else { $non_scannable_post_type_pro_link = edac_generate_link_type( [ 'utm_campaign' => 'dashboard-widget', 'utm_content' => 'upgrade-to-edacp', ], 'pro', [ 'post_type' => $post_type, ] ); $html .= ' '; } } $html .= '
' . __( 'Post Type', 'accessibility-checker' ) . ' ' . __( 'Problems', 'accessibility-checker' ) . ' ' . __( 'Contrast', 'accessibility-checker' ) . ' ' . __( 'Needs Review', 'accessibility-checker' ) . '
' . esc_html( $post_type_label ) . ' - - -
' . esc_html( $post_type_label ) . ' - - -
' . esc_html( $post_type_label ) . ' - - -
' . esc_html( $post_type_label ) . '
'; $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 ( defined( 'EDACP_VERSION' ) && EDAC_KEY_VALID ) { $html .= ' ' . __( 'See More Reports', 'accessibility-checker' ) . ''; } $html .= ' Edit Accessibility Checker Settings
'; $meetup_html = edac_get_upcoming_meetups_html( 'equalize-digital-web-accessibility-meetup-dfw', 2, 4 ); if ( ! empty( $meetup_html ) ) { $html .= '

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

'; $html .= $meetup_html; } $html .= '
'; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- content is being escaped as it is being produced, late escaping would be more complicated and unreadable echo $html; } }