Skip to content

Commit

Permalink
feat(shs-5963): add video with caption
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari Nez committed Dec 3, 2024
1 parent 60ed989 commit 4ead234
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ tablewrap:
timeline:
js:
dist/js/timeline.js: {}

videowithcaption:
js:
dist/js/videowithcaption.js: {}
1 change: 1 addition & 0 deletions docroot/themes/humsci/humsci_basic/humsci_basic.theme
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ function humsci_basic_preprocess_field(&$variables) {
if ($variables['field_name'] == 'field_hs_text_area') {
$variables['#attached']['library'][] = 'humsci_basic/tablewrap';
$variables['#attached']['library'][] = 'humsci_basic/tablescope';
$variables['#attached']['library'][] = 'humsci_basic/videowithcaption';
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function su_humsci_gin_admin_preprocess_field(&$variables) {
if ($variables['field_name'] == 'field_hs_text_area') {
$variables['#attached']['library'][] = 'humsci_basic/tablewrap';
$variables['#attached']['library'][] = 'humsci_basic/tablescope';
$variables['#attached']['library'][] = 'humsci_basic/videowithcaption';
}
}

Expand Down

0 comments on commit 4ead234

Please sign in to comment.