From e9b1d84c413700461a9759be294c706d01696a34 Mon Sep 17 00:00:00 2001 From: savvasha Date: Sun, 10 Dec 2017 21:09:51 +0200 Subject: [PATCH] Add event_id as an option to the template --- templates/event-blocks.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/event-blocks.php b/templates/event-blocks.php index 2021d2a9..f727e190 100644 --- a/templates/event-blocks.php +++ b/templates/event-blocks.php @@ -11,6 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly $defaults = array( 'id' => null, + 'event_id' => null, 'title' => false, 'status' => 'default', 'date' => 'default', @@ -58,6 +59,8 @@ if ( $date_future != 'default' ) $calendar->future = $date_future; if ( $date_relative != 'default' ) $calendar->relative = $date_relative; +if ( $event_id ) + $calendar->event_id = $event_id; if ( $league ) $calendar->league = $league; if ( $season ) @@ -175,4 +178,4 @@ if ( $title ) if ( $id && $show_all_events_link ) echo ''; ?> - \ No newline at end of file +