getTimestamp() ); $to_label = wp_date( $format, $week['to_exclusive']->modify( '-1 day' )->getTimestamp() ); /* translators: 1: period start date, 2: period end date. */ echo '

' . esc_html( sprintf( __( 'Observations for %1$s–%2$s:', 'ailys-lens' ), (string) $from_label, (string) $to_label ) ) . '

'; /* translators: %s: number of AI crawler visits. */ echo '

' . esc_html( sprintf( __( 'AI crawler visits: %s', 'ailys-lens' ), number_format_i18n( (int) $aggregate['total'] ) ) ) . '
'; /* translators: %s: number of content-page hits. */ echo '' . esc_html( sprintf( __( 'Content pages read: %s', 'ailys-lens' ), number_format_i18n( (int) $aggregate['content'] ) ) ) . '

'; if ( array() === $aggregate['crawlers'] ) { echo '

' . esc_html__( '(No visits during this period.)', 'ailys-lens' ) . '

'; } else { echo ''; } echo '

' . esc_html__( 'Open the AILYS Lens dashboard', 'ailys-lens' ) . '

'; } }