Skip to content
Snippets Groups Projects
Commit b7636aca authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-6320: adding ical for events inside layout builder

parent c6e98dfb
No related branches found
No related tags found
1 merge request!108ISTWCMS-6320: adding ical for events inside layout builder
...@@ -659,6 +659,12 @@ function uw_fdsu_theme_resp_preprocess_container(&$variables) { ...@@ -659,6 +659,12 @@ function uw_fdsu_theme_resp_preprocess_container(&$variables) {
if ($node) { if ($node) {
$variables['header_data'] = $uwNodeContent->getNodeContent($node, 'full', 'header'); $variables['header_data'] = $uwNodeContent->getNodeContent($node, 'full', 'header');
$variables['footer_data'] = $uwNodeContent->getNodeContent($node, 'full', 'footer'); $variables['footer_data'] = $uwNodeContent->getNodeContent($node, 'full', 'footer');
// If this is an event, add the ical url so that it displays
// inside of layout builder.
if ($node->getType() == 'uw_ct_event') {
$variables['header_data']['ical'] = _uw_ct_event_get_ical_link($node->id());
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment