commit fa264ca415a764418e77a5a8d1685191933e3bad Author: rdrew Date: Fri Nov 15 10:59:15 2024 -0400 1st diff --git a/css/theme-overrides-scholar.css b/css/theme-overrides-scholar.css new file mode 100755 index 0000000..45489a4 --- /dev/null +++ b/css/theme-overrides-scholar.css @@ -0,0 +1,3 @@ +.test { +background: #000; +} diff --git a/js/theme-overrides-scholar.js b/js/theme-overrides-scholar.js new file mode 100755 index 0000000..e69de29 diff --git a/theme_overrides_scholar.info.yml b/theme_overrides_scholar.info.yml new file mode 100755 index 0000000..41aab36 --- /dev/null +++ b/theme_overrides_scholar.info.yml @@ -0,0 +1,8 @@ +name: theme_overrides_scholar +type: module +description: Provides additional functionality for the site. +package: Custom +core_version_requirement: ^9 || ^10 + +libraries: + - theme_overrides_scholar/global diff --git a/theme_overrides_scholar.libraries.yml b/theme_overrides_scholar.libraries.yml new file mode 100755 index 0000000..509052b --- /dev/null +++ b/theme_overrides_scholar.libraries.yml @@ -0,0 +1,11 @@ +# Custom module library for general purposes. +global: + js: + js/theme-overrides-scholar.js: {} + css: + theme: + css/theme-overrides-scholar.css: {} + dependencies: + - core/drupalSettings + #- theme_overrides/jquery-labelauty + diff --git a/theme_overrides_scholar.module b/theme_overrides_scholar.module new file mode 100755 index 0000000..e30969f --- /dev/null +++ b/theme_overrides_scholar.module @@ -0,0 +1,27 @@ +getLibraryByName('theme_overrides_scholar', 'global'); + $path = $library['css'][0]['data']; + + if (isset($css[$path])) { + $css[$path]['group'] = 300; + } +} + +function theme_overrides_scholar_page_attachments(&$variables) { + $variables['#attached']['library'][] = 'theme_overrides_scholar/global'; +}