From 6f915e38d8fa22bb8530426935f1e6f653fbe06f Mon Sep 17 00:00:00 2001 From: ozhozh Date: Thu, 16 Aug 2012 22:16:20 +0000 Subject: [PATCH] Outline best year, month and day in the historical click count. git-svn-id: http://yourls.googlecode.com/svn/trunk@733 12232710-3e20-11de-b438-597f59cd7555 --- css/infos.css | 2 +- includes/functions-infos.php | 2 +- yourls-infos.php | 15 +++++++++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/css/infos.css b/css/infos.css index a13e79d..1ad1cf5 100644 --- a/css/infos.css +++ b/css/infos.css @@ -80,7 +80,7 @@ li.sites_list img, #longurl img {width:16px; height: 16px; display:inline-block; #referrer_cell { min-width: 300px;} -#details_clicks li.bestday { +#details_clicks li.bestday, #details_clicks li span.best_month, #details_clicks li span.best_year { font-weight:bold; } diff --git a/includes/functions-infos.php b/includes/functions-infos.php index 1c07bb6..5af95d1 100644 --- a/includes/functions-infos.php +++ b/includes/functions-infos.php @@ -184,7 +184,7 @@ function yourls_days_in_month($month, $year) { return $month == 2 ? ($year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29))) : (($month - 1) % 7 % 2 ? 30 : 31); } -// Get max value from date array of 'year-month-day' = 'hits' +// Get max value from date array of 'Aug 12, 2012' = '1337' function yourls_stats_get_best_day( $list_of_days ) { $max = 0; $day = 0; $max = max( $list_of_days ); diff --git a/yourls-infos.php b/yourls-infos.php index 71af0ea..f0cbda0 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -371,12 +371,18 @@

Best day

- -

on . + +

on . Click for more details