Skip to content
Snippets Groups Projects
Commit 1a01c187 authored by Igor Biki's avatar Igor Biki
Browse files

Merge branch 'feature/ISTWCMS-6320-ebremner-ical-in-layout-builder' into '1.1.x'

ISTWCMS-6320: adding ical for events inside layout builder

See merge request !108
parents c6e98dfb b7636aca
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) {
if ($node) {
$variables['header_data'] = $uwNodeContent->getNodeContent($node, 'full', 'header');
$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