diff --git a/mc_after_calendar.html b/mc_after_calendar.html index f567d9ae0..308629e41 100644 --- a/mc_after_calendar.html +++ b/mc_after_calendar.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_after_event.html b/mc_after_event.html index 69b8b91ed..4795d116d 100644 --- a/mc_after_event.html +++ b/mc_after_event.html @@ -203,7 +203,7 @@
Parameters:
Source:
diff --git a/mc_all_list_dates.html b/mc_all_list_dates.html index 020b3aee3..fdb36affa 100644 --- a/mc_all_list_dates.html +++ b/mc_all_list_dates.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_before_calendar.html b/mc_before_calendar.html index 493f2d085..67d074d43 100644 --- a/mc_before_calendar.html +++ b/mc_before_calendar.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_before_event.html b/mc_before_event.html index 1dc393935..caacf081a 100644 --- a/mc_before_event.html +++ b/mc_before_event.html @@ -203,7 +203,7 @@
Parameters:
Source:
diff --git a/mc_calendar_attributes.html b/mc_calendar_attributes.html index 773452676..1b71cfd5d 100644 --- a/mc_calendar_attributes.html +++ b/mc_calendar_attributes.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_close_button.html b/mc_close_button.html index ddef6df87..5b2984559 100644 --- a/mc_close_button.html +++ b/mc_close_button.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_date_format.html b/mc_date_format.html index 9dc41e65e..fce37aa62 100644 --- a/mc_date_format.html +++ b/mc_date_format.html @@ -180,7 +180,7 @@
Parameters:
Source:
diff --git a/mc_default_image_size.html b/mc_default_image_size.html index 7899a141f..9d9d02812 100644 --- a/mc_default_image_size.html +++ b/mc_default_image_size.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_disable_link.html b/mc_disable_link.html index e93399d9f..5975f12b7 100644 --- a/mc_disable_link.html +++ b/mc_disable_link.html @@ -350,7 +350,7 @@
Parameters:
Source:
diff --git a/mc_display_format.html b/mc_display_format.html index 51dd9a426..3e7ede20d 100644 --- a/mc_display_format.html +++ b/mc_display_format.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_event_classes.html b/mc_event_classes.html index 67250b8af..d9cee0571 100644 --- a/mc_event_classes.html +++ b/mc_event_classes.html @@ -203,7 +203,7 @@
Parameters:
Source:
diff --git a/mc_event_image_alt.html b/mc_event_image_alt.html index 36270d68b..cf27bf755 100644 --- a/mc_event_image_alt.html +++ b/mc_event_image_alt.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_event_post_content.html b/mc_event_post_content.html index aaa1d8efb..34f6ba3ef 100644 --- a/mc_event_post_content.html +++ b/mc_event_post_content.html @@ -180,7 +180,7 @@
Parameters:
Source:
diff --git a/mc_event_title.html b/mc_event_title.html index f794a0212..6ccb14186 100644 --- a/mc_event_title.html +++ b/mc_event_title.html @@ -203,7 +203,7 @@
Parameters:
Source:
diff --git a/mc_filter_day.html b/mc_filter_day.html index b72f16e6e..30fdc64b1 100644 --- a/mc_filter_day.html +++ b/mc_filter_day.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_filter_location_list.html b/mc_filter_location_list.html index cf2e782c2..0548da34c 100644 --- a/mc_filter_location_list.html +++ b/mc_filter_location_list.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_filter_month.html b/mc_filter_month.html index d2d903641..4a15bdc22 100644 --- a/mc_filter_month.html +++ b/mc_filter_month.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_filter_year.html b/mc_filter_year.html index 6627f9c9c..13c2cac5c 100644 --- a/mc_filter_year.html +++ b/mc_filter_year.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_from_date.html b/mc_from_date.html index a7223c56f..fc05e6e1f 100644 --- a/mc_from_date.html +++ b/mc_from_date.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_grid_date.html b/mc_grid_date.html index bd79b8aa4..3abd1286c 100644 --- a/mc_grid_date.html +++ b/mc_grid_date.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_grid_day_wrapper.html b/mc_grid_day_wrapper.html index 1c02d69c9..59a73fcb9 100644 --- a/mc_grid_day_wrapper.html +++ b/mc_grid_day_wrapper.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_grid_header_wrapper.html b/mc_grid_header_wrapper.html index 559f4c138..59c3ea242 100644 --- a/mc_grid_header_wrapper.html +++ b/mc_grid_header_wrapper.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_grid_week_wrapper.html b/mc_grid_week_wrapper.html index 31d9cdb7f..0370e6892 100644 --- a/mc_grid_week_wrapper.html +++ b/mc_grid_week_wrapper.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_grid_wrapper.html b/mc_grid_wrapper.html index da27515d0..631bc6eb4 100644 --- a/mc_grid_wrapper.html +++ b/mc_grid_wrapper.html @@ -157,7 +157,7 @@
Parameters:
Source:
@@ -350,7 +350,7 @@
Parameters:
Source:
diff --git a/mc_grouped_events.html b/mc_grouped_events.html index f8d1f55c1..65e5f5678 100644 --- a/mc_grouped_events.html +++ b/mc_grouped_events.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_heading.html b/mc_heading.html index 6f06f3fd4..49b31ac2e 100644 --- a/mc_heading.html +++ b/mc_heading.html @@ -180,7 +180,7 @@
Parameters:
Source:
@@ -419,7 +419,7 @@
Parameters:
Source:
diff --git a/mc_heading_level.html b/mc_heading_level.html index 60d80900c..e1583ff79 100644 --- a/mc_heading_level.html +++ b/mc_heading_level.html @@ -203,7 +203,7 @@
Parameters:
Source:
@@ -442,7 +442,7 @@
Parameters:
Source:
diff --git a/mc_hide_nextmonth.html b/mc_hide_nextmonth.html index d3b3859ba..146b6fd02 100644 --- a/mc_hide_nextmonth.html +++ b/mc_hide_nextmonth.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_hide_past_dates.html b/mc_hide_past_dates.html index 91f5cf8d8..669dd7a4e 100644 --- a/mc_hide_past_dates.html +++ b/mc_hide_past_dates.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_list_event_title_hint.html b/mc_list_event_title_hint.html index 6c6b0fe16..c8a13cf14 100644 --- a/mc_list_event_title_hint.html +++ b/mc_list_event_title_hint.html @@ -157,7 +157,7 @@
Parameters:
Source:
@@ -373,7 +373,7 @@
Parameters:
Source:
@@ -589,7 +589,7 @@
Parameters:
Source:
diff --git a/mc_list_titles_separator.html b/mc_list_titles_separator.html index 27e4abadf..968bf8112 100644 --- a/mc_list_titles_separator.html +++ b/mc_list_titles_separator.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_location_list.html b/mc_location_list.html index 8fa3b9a1a..83d2cf4b5 100644 --- a/mc_location_list.html +++ b/mc_location_list.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_location_selector.html b/mc_location_selector.html index d64c4ddf9..ff256fd8b 100644 --- a/mc_location_selector.html +++ b/mc_location_selector.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_override_featured_image.html b/mc_override_featured_image.html index 86c86c996..e56f3faea 100644 --- a/mc_override_featured_image.html +++ b/mc_override_featured_image.html @@ -183,7 +183,7 @@
Parameters:
Source:
diff --git a/mc_post_thumbnail_atts.html b/mc_post_thumbnail_atts.html index f7b36718e..c39dab8d8 100644 --- a/mc_post_thumbnail_atts.html +++ b/mc_post_thumbnail_atts.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_process_shortcodes.html b/mc_process_shortcodes.html index 2d9a6fe1c..314c2dc86 100644 --- a/mc_process_shortcodes.html +++ b/mc_process_shortcodes.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_related_event_limit.html b/mc_related_event_limit.html index 344167b8f..2c0ded90f 100644 --- a/mc_related_event_limit.html +++ b/mc_related_event_limit.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_search_page.html b/mc_search_page.html index bad3ccd94..c5d2dc91a 100644 --- a/mc_search_page.html +++ b/mc_search_page.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_show_months.html b/mc_show_months.html index 2d7861491..d7fe709b5 100644 --- a/mc_show_months.html +++ b/mc_show_months.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_show_week_number.html b/mc_show_week_number.html index 4ce730f1d..9d52002fd 100644 --- a/mc_show_week_number.html +++ b/mc_show_week_number.html @@ -157,7 +157,7 @@
Parameters:
Source:
@@ -350,7 +350,7 @@
Parameters:
Source:
diff --git a/mc_single_event_shortcode.html b/mc_single_event_shortcode.html index e26a883ff..33833dc63 100644 --- a/mc_single_event_shortcode.html +++ b/mc_single_event_shortcode.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_single_event_title.html b/mc_single_event_title.html index 934535e79..0d009f92a 100644 --- a/mc_single_event_title.html +++ b/mc_single_event_title.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_titles_format.html b/mc_titles_format.html index 3eacac9b3..54ecfe8fe 100644 --- a/mc_titles_format.html +++ b/mc_titles_format.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mc_to_date.html b/mc_to_date.html index 19fd2993c..3ee2462a2 100644 --- a/mc_to_date.html +++ b/mc_to_date.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/mc_user_can_see_private_events.html b/mc_user_can_see_private_events.html index 658bccd13..f8917ac72 100644 --- a/mc_user_can_see_private_events.html +++ b/mc_user_can_see_private_events.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/mcs_view_admin_links_on_frontend.html b/mcs_view_admin_links_on_frontend.html index f4a09af81..8a63c2fd8 100644 --- a/mcs_view_admin_links_on_frontend.html +++ b/mcs_view_admin_links_on_frontend.html @@ -157,7 +157,7 @@
Parameters:
Source:
diff --git a/my-calendar-output.php.html b/my-calendar-output.php.html index 788e764f4..189961db3 100644 --- a/my-calendar-output.php.html +++ b/my-calendar-output.php.html @@ -276,6 +276,7 @@ $container_id = mc_event_container_id( $type, $process_date, $event ); $details = mc_wrap_event_details( $details, $type, $container_id, $data ); $details = $header . $details; + $details = mc_wrap_event( $details, $event, $container_id, $type ); /** * Runs right after a calendar event template is run. * @@ -328,8 +329,7 @@ $event_classes = mc_event_classes( $event, $type ); $nofollow = ( stripos( $event_classes, 'past-event' ) !== false ) ? 'rel="nofollow"' : ''; $container_id = mc_event_container_id( $type, $process_date, $event ); - $parent_id = str_replace( 'details-', '', $container_id ); - $header = "\n\n <div id='$parent_id' class='$event_classes'>\n"; + $header = ''; $event_title = mc_load_template( 'event/' . $type . '-' . 'title', $data ); if ( ! $event_title ) { @@ -414,6 +414,24 @@ return $header; } +/** + * Wrap event header & body together. + * + * @param string $content Header & event body content. + * @param object $event Event object. + * @param string $container_id Container ID. + * @param string $type View type. + * + * @return string + */ +function mc_wrap_event( $content, $event, $container_id, $type ) { + $event_classes = mc_event_classes( $event, $type ); + $parent_id = str_replace( 'details-', '', $container_id ); + $header = "<div id='$parent_id' class='$event_classes'>"; + + return $header . $content . '</div>'; +} + /** * Wrap event details in its container. * diff --git a/my_calendar_body.html b/my_calendar_body.html index 9080726a4..fe8ee698d 100644 --- a/my_calendar_body.html +++ b/my_calendar_body.html @@ -134,7 +134,7 @@
Parameters:
Source:
diff --git a/my_calendar_event_drawn.html b/my_calendar_event_drawn.html index da63265c3..e31af65a5 100644 --- a/my_calendar_event_drawn.html +++ b/my_calendar_event_drawn.html @@ -137,7 +137,7 @@
Parameters:
Source: