$ocap_count ) { $ocap_type_parts[] = sprintf( '%s: %d', $ocap_type, $ocap_count ); } echo esc_html( implode( ' | ', $ocap_type_parts ) ) . "\n"; } echo "----------------------------------------\n\n"; if ( ! empty( $data['items'] ) ) { foreach ( $data['items'] as $ocap_item ) { echo '* ' . esc_html( wp_strip_all_tags( $ocap_item['title'] ) ) . "\n"; echo ' ' . esc_html( sprintf( /* translators: 1: post type, 2: number of days, 3: author name */ __( 'Type: %1$s | Days Outdated: %2$d | Author: %3$s', 'contentcortex' ), $ocap_item['type'], $ocap_item['days'], $ocap_item['author'] ) ) . "\n"; echo ' ' . esc_html( sprintf( /* translators: %s: edit URL */ __( 'Edit: %s', 'contentcortex' ), $ocap_item['edit_url'] ) ); echo "\n\n"; } if ( $data['total'] > $data['shown'] ) { echo esc_html( sprintf( /* translators: 1: number of items shown, 2: total number of items */ __( 'Showing %1$d of %2$d total outdated items.', 'contentcortex' ), $data['shown'], $data['total'] ) ); echo "\n\n"; } } echo "----------------------------------------\n"; echo esc_html( sprintf( /* translators: %s: report URL */ __( 'Open full report: %s', 'contentcortex' ), esc_url_raw( $data['report_url'] ) ) ); echo "\n\n"; if ( ! empty( $ocap_footer ) ) { echo esc_html( $ocap_footer ) . "\n"; }