From e88ff57a286b279287f3ebf0a08eae04d3997377 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Thu, 26 Oct 2023 11:22:28 -0500 Subject: [PATCH] Add article/header semantics to event wrappers --- src/my-calendar-output.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/my-calendar-output.php b/src/my-calendar-output.php index cb7db64b7..284230777 100644 --- a/src/my-calendar-output.php +++ b/src/my-calendar-output.php @@ -385,7 +385,7 @@ function mc_draw_event_header( $data, $type, $template ) { $header .= ( false === stripos( $title, 'summary' ) ) ? ' ' . strip_tags( $event_title ) . '' : $title; } - return $header; + return '
' . $header . '
'; } /** @@ -401,9 +401,9 @@ function mc_draw_event_header( $data, $type, $template ) { function mc_wrap_event( $content, $event, $container_id, $type ) { $event_classes = mc_event_classes( $event, $type ); $parent_id = str_replace( 'details-', '', $container_id ); - $header = "
"; + $header = "
"; - return $header . $content . '
'; + return $header . $content . ''; } /**