navigation_status(); $ajxl_enabled = ( 'on' === $admin->value( 'enable_plugin', 'off' ) ); $ajxl_paused = $settings->is_paused(); $ajxl_safe = $admin->flag( 'safe_mode' ); $ajxl_admins = ( 'admins' === $admin->value( 'visibility', 'everyone' ) ); $ajxl_exclusions = $admin->exclusion_summary(); $ajxl_diag = $admin->last_diagnostics(); $ajxl_logging = $admin->flag( 'error_logging' ); $ajxl_errors = $ajxl_logging ? $admin->log_entries( 5 ) : array(); // Status cards show what visitors get: the effective settings (safe mode overrides applied). $ajxl_effective = $settings->effective(); $ajxl_mode = isset( $ajxl_effective['navigation_mode'] ) ? (string) $ajxl_effective['navigation_mode'] : 'auto'; $ajxl_header = isset( $ajxl_effective['header_mode'] ) ? (string) $ajxl_effective['header_mode'] : 'preserve'; $ajxl_prefetch = ! empty( $ajxl_effective['prefetch_enabled'] ); $ajxl_cache = ! empty( $ajxl_effective['cache_enabled'] ); $ajxl_out = (string) $admin->value( 'transition_out', 'fade' ); $ajxl_in = (string) $admin->value( 'transition_in', 'fade' ); $ajxl_loader = (string) $admin->value( 'loader_type', 'bar' ); $ajxl_mloader = (string) $admin->value( 'mobile_loader_type', 'inherit' ); $ajxl_triggers = $admin->value( 'prefetch_triggers', array() ); $ajxl_triggers = is_array( $ajxl_triggers ) ? $ajxl_triggers : array(); $ajxl_selectors = $admin->count_lines( $admin->value( 'content_selectors', '' ) ); $ajxl_analytics = (string) $admin->value( 'analytics_mode', 'none' ); ?>
choice_label( 'transition_out', $ajxl_out ) . ' → ' . $admin->choice_label( 'transition_in', $ajxl_in ) ); } ?>
choice_label( 'loader_type', $ajxl_loader ) ); ?>
flag( 'prefetch_enabled' ) ) { echo WPAJXL_Admin::pill( 'neutral', __( 'Off (safe mode)', 'ajax-loading' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } else { echo WPAJXL_Admin::pill( 'neutral', __( 'Off', 'ajax-loading' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } ?>
flag( 'cache_enabled' ) ) { echo WPAJXL_Admin::pill( 'neutral', __( 'Off (safe mode)', 'ajax-loading' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } else { echo WPAJXL_Admin::pill( 'neutral', __( 'Off', 'ajax-loading' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } ?>
0 ) { /* translators: %s: number of problems. */ echo WPAJXL_Admin::pill( 'error', sprintf( _n( '%s problem', '%s problems', $ajxl_diag['counts']['error'], 'ajax-loading' ), number_format_i18n( $ajxl_diag['counts']['error'] ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } elseif ( $ajxl_diag['counts']['warning'] > 0 ) { /* translators: %s: number of warnings. */ echo WPAJXL_Admin::pill( 'warning', sprintf( _n( '%s warning', '%s warnings', $ajxl_diag['counts']['warning'], 'ajax-loading' ), number_format_i18n( $ajxl_diag['counts']['warning'] ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } else { echo WPAJXL_Admin::pill( 'ok', __( 'All checks passed', 'ajax-loading' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pill() escapes. } ?>
flag( 'respect_reduced_motion' ) ) { esc_html_e( 'Visitors who ask their device to reduce motion see page changes without animations.', 'ajax-loading' ); } else { esc_html_e( '"Respect reduced motion" is off: visitors who ask their device to reduce motion still see page animations. Turning it back on is recommended.', 'ajax-loading' ); } ?>