From 8c98a88a0af75a754a0df5238a6b496d037056da Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 24 Oct 2014 18:21:41 +1100 Subject: [PATCH] Display event time on mouseover #68 --- templates/event-calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/event-calendar.php b/templates/event-calendar.php index 5c842775..d8e234c5 100644 --- a/templates/event-calendar.php +++ b/templates/event-calendar.php @@ -162,7 +162,7 @@ else $ak_title_separator = ', '; $ak_titles_for_day = array(); -$ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom " +$ak_post_titles = $wpdb->get_results("SELECT ID, post_title, post_date, DAYOFMONTH(post_date) as dom " ."FROM $wpdb->posts " ."WHERE post_date >= '{$thisyear}-{$thismonth}-01 00:00:00' " ."AND post_date <= '{$thisyear}-{$thismonth}-{$last_day} 23:59:59' " @@ -173,7 +173,7 @@ if ( $ak_post_titles ) { foreach ( (array) $ak_post_titles as $ak_post_title ) { /** This filter is documented in wp-includes/post-template.php */ - $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) ); + $post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) . ' @ ' . date_i18n( get_option( 'time_format' ), strtotime( $ak_post_title->post_date ) ) ); if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) ) $ak_titles_for_day['day_'.$ak_post_title->dom] = '';