From d77bcaa605f2b2b383039433e4d390c65abdf5ec Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 9 Dec 2014 18:11:33 +1100 Subject: [PATCH] Add caption and fix datetime format in event blocks --- templates/event-blocks.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/templates/event-blocks.php b/templates/event-blocks.php index 0761682e..d8edbfa0 100644 --- a/templates/event-blocks.php +++ b/templates/event-blocks.php @@ -43,8 +43,13 @@ if ( $order != 'default' ) $data = $calendar->data(); $usecolumns = $calendar->columns; -if ( isset( $columns ) ) +if ( isset( $columns ) ) { $usecolumns = $columns; +} + +if ( $id ) { + echo '

' . get_the_title( $id ) . '

'; +} ?>
@@ -97,7 +102,7 @@ if ( isset( $columns ) ) - +
@@ -119,8 +124,8 @@ if ( isset( $columns ) )
-
-' . __( 'View all events', 'sportspress' ) . ''; -?> \ No newline at end of file + ' . __( 'View all events', 'sportspress' ) . ''; + ?> + \ No newline at end of file