' . 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 '' . 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 '| ' . esc_html__('When', 'sarcio') . ' | ' . esc_html__('What changed', 'sarcio') . ' | ' . esc_html__('By', 'sarcio') . ' | ' . esc_html__('Status', 'sarcio') . ' |
';
foreach ($report['changes'] as $change) {
printf(
'| %s | %s | %s | %s |
',
$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 '
';
}
echo '' . esc_html__('Fixes kept on the site', 'sarcio') . '
';
if ($report['kept'] === []) {
echo '' . esc_html__('No fixes were kept this month.', 'sarcio') . '
';
} else {
echo '| ' . esc_html__('When', 'sarcio') . ' | ' . esc_html__('Fix', 'sarcio') . ' | ' . esc_html__('Status', 'sarcio') . ' |
';
foreach ($report['kept'] as $fix) {
printf(
'| %s | %s | %s |
',
esc_html(substr((string) $fix['at'], 0, 10)),
esc_html((string) $fix['title']),
esc_html($fix['enabled'] ? __('On', 'sarcio') : __('Off', 'sarcio')),
);
}
echo '
';
}
echo '';
}
}