= WEEK_IN_SECONDS) { echo sprintf( // translators: 1: Start date - 2: To date - 3: Views count - 4: Visitors count. __('Over the past week (%s - %s), this post has been viewed %s times by %s visitors', 'wp-statistics'), esc_html($summary['fromString']), esc_html($summary['toString']), number_format(intval($summary['thisPeriodViews'])), number_format(intval($summary['thisPeriodVisitors'])) ); // If post had any referrers in this period if (intval($summary['thisPeriodTopReferrerCount']) > 0 && !empty($topReferrerLabel)) { echo sprintf( // translators: 1: Referrer link - 2: Referrer name - 3: Referrer count. __(', with \'%s\' leading with %s referrals', 'wp-statistics'), esc_url($thisPeriodTopReferrer), esc_html($thisPeriodTopReferrerLabel), number_format(intval($summary['thisPeriodTopReferrerCount'])) ); } echo '.'; } echo sprintf( // translators: 1: Views count - 2: Visitors count. __('In total, this post has been viewed %s times by %s visitors', 'wp-statistics'), number_format(intval($summary['totalViews'])), number_format(intval($summary['totalVisitors'])) ); // If post had any referrers in total if (intval($summary['topReferrerCount']) > 0 && !empty($topReferrerLabel)) { echo sprintf( // translators: 1: Referrer link - 2: Referrer name - 3: Referrer count. __(', with \'%s\' leading with %s referrals', 'wp-statistics'), esc_url($topReferrer), esc_html($topReferrerLabel), number_format(intval($summary['topReferrerCount'])) ); } echo sprintf( // translators: %s: Content analytics link. __('. For more detailed insights, visit the analytics section.', 'wp-statistics'), esc_url($summary['contentAnalyticsUrl']) ); ?>