From 2027ce937020099ea012f0ce34aa439e65fe9207 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 12 Dec 2016 17:57:05 +1100 Subject: [PATCH] Add classes to event calendar --- templates/event-calendar.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/event-calendar.php b/templates/event-calendar.php index e1a52514..d46dab0d 100644 --- a/templates/event-calendar.php +++ b/templates/event-calendar.php @@ -115,7 +115,7 @@ $next = $wpdb->get_row("SELECT MONTH(post_date) AS month, YEAR(post_date) AS yea $calendar_caption = _x('%1$s %2$s', 'calendar caption', 'sportspress'); $calendar_output = '
- +
'; @@ -140,7 +140,7 @@ $calendar_output .= ' '; if ( $previous ) { - $calendar_output .= "\n\t\t".''; + $calendar_output .= "\n\t\t".''; } else { $calendar_output .= "\n\t\t".''; } @@ -148,7 +148,7 @@ if ( $previous ) { $calendar_output .= "\n\t\t".''; if ( $next ) { - $calendar_output .= "\n\t\t".''; + $calendar_output .= "\n\t\t".''; } else { $calendar_output .= "\n\t\t".''; } @@ -214,7 +214,7 @@ for ( $day = 1; $day <= $daysinmonth; ++$day ) { $newrow = false; if ( $day == gmdate('j', current_time('timestamp')) && $thismonth == gmdate('m', current_time('timestamp')) && $thisyear == gmdate('Y', current_time('timestamp')) ) - $calendar_output .= '
' . ( $caption_tag == 'caption' ? '' : '<' . $caption_tag . '>' ) . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . ( $caption_tag == 'caption' ? '' : '' ) . '
« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '  ' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' » '; + $calendar_output .= ''; else $calendar_output .= '';