' . wp_kses(Brand::logoTag(), Brand::ALLOWED_HTML) . esc_html(sprintf( /* translators: 1: the site name, 2: the month. */ __('%1$s in %2$s', 'sarcio'), $siteName, $report['label'], )) . '

'; echo '
'; echo ''; echo ''; echo ''; echo ''; $recipients = Report::recipients(); echo '' . esc_html($recipients !== [] ? sprintf( /* translators: %s: the email addresses. */ __('Emailed on the first of each month to %s.', 'sarcio'), implode(', ', $recipients), ) : __('Add an email address under Settings → Sarcio to receive this on the first of each month.', 'sarcio')) . ''; echo '
'; echo '

' . esc_html(sprintf( /* translators: 1: changes made, 2: changes undone, 3: fixes kept. */ __('%1$d changes made through the assistant, %2$d of them undone. %3$d fixes kept on the site.', 'sarcio'), $report['counts']['changes'], $report['counts']['undone'], $report['counts']['kept'], )) . '

'; echo '

' . esc_html__('Changes', 'sarcio') . '

'; if ($report['changes'] === []) { echo '

' . esc_html__('No changes this month.', 'sarcio') . '

'; } else { echo ''; foreach ($report['changes'] as $change) { printf( '', $change['undoneAt'] !== null ? ' class="is-undone"' : '', esc_html(substr((string) $change['at'], 0, 10)), esc_html((string) $change['summary']), esc_html((string) $change['by']), esc_html($change['undoneAt'] !== null ? __('Undone', 'sarcio') : __('Applied', 'sarcio')), ); } echo '
' . esc_html__('When', 'sarcio') . '' . esc_html__('What changed', 'sarcio') . '' . esc_html__('By', 'sarcio') . '' . esc_html__('Status', 'sarcio') . '
%s%s%s%s
'; } echo '

' . esc_html__('Fixes kept on the site', 'sarcio') . '

'; if ($report['kept'] === []) { echo '

' . esc_html__('No fixes were kept this month.', 'sarcio') . '

'; } else { echo ''; foreach ($report['kept'] as $fix) { printf( '', esc_html(substr((string) $fix['at'], 0, 10)), esc_html((string) $fix['title']), esc_html($fix['enabled'] ? __('On', 'sarcio') : __('Off', 'sarcio')), ); } echo '
' . esc_html__('When', 'sarcio') . '' . esc_html__('Fix', 'sarcio') . '' . esc_html__('Status', 'sarcio') . '
%s%s%s
'; } echo ''; } }