sample_urls(); $ajxl_from = isset( $ajxl_samples[0]['url'] ) ? $ajxl_samples[0]['url'] : home_url( '/' ); $ajxl_to = isset( $ajxl_samples[1]['url'] ) ? $ajxl_samples[1]['url'] : $ajxl_from; $ajxl_env = $admin->environment_report(); $ajxl_diag = $admin->last_diagnostics(); $ajxl_logging = $admin->flag( 'error_logging' ); $ajxl_entries = $admin->log_entries(); $ajxl_paused = $settings->is_paused(); $ajxl_enabled = ( 'on' === $admin->value( 'enable_plugin', 'off' ) ); $ajxl_max_kb = number_format_i18n( WPAJXL_Admin::IMPORT_MAX_BYTES / 1024 ); ?>

format_time( $ajxl_diag['time'] ), $ajxl_diag['ok'] ? __( 'no problems found', 'ajax-loading' ) : __( 'issues found', 'ajax-loading' ) ) ); } ?>

action_button( 'clear_log', __( 'Clear', 'ajax-loading' ), array( 'class' => 'button button-small', 'icon' => 'dashicons-trash', 'data' => array( 'ajxl-log-clear' => '1' ), ) ); ?>

format_time( $ajxl_time ) ) : '—'; ?> error_code_label( $ajxl_code ) ); ?>
open_settings_form( $tab ); $admin->render_fields( $tab ); $admin->close_settings_form(); ?>

action_button( 'resume', __( 'Resume now', 'ajax-loading' ), array( 'class' => 'button button-primary' ) ); } elseif ( $ajxl_enabled ) { $admin->action_button( 'pause', __( 'Pause for 1 hour', 'ajax-loading' ), array( 'name' => 'duration', 'value' => (string) HOUR_IN_SECONDS, ) ); echo ' '; $admin->action_button( 'pause', __( 'Pause for 24 hours', 'ajax-loading' ), array( 'name' => 'duration', 'value' => (string) DAY_IN_SECONDS, ) ); } else { echo '' . esc_html__( 'AJAX navigation is turned off.', 'ajax-loading' ) . ''; } ?>

action_button( 'clear_cache', __( 'Clear navigation cache', 'ajax-loading' ) ); ?>

open_action_form( 'export', $tab ); ?>

open_action_form( 'import', $tab, array( 'enctype' => 'multipart/form-data', 'confirm' => __( 'Importing overwrites your current AJAX Loading settings with the values in the file. Continue?', 'ajax-loading' ), 'class' => 'ajxl-import-form', ) ); ?>

open_action_form( 'reset', $tab, array( 'confirm' => __( 'Restore all AJAX Loading settings to their defaults? This cannot be undone.', 'ajax-loading' ), 'class' => 'ajxl-reset-form', ) ); ?>