Skip to content

Commit

Permalink
CHEMH: updating files to work with D10 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese authored Dec 2, 2023
1 parent ec1081b commit 9067906
Show file tree
Hide file tree
Showing 70 changed files with 5,105 additions and 19,185 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.8.0
20
4 changes: 2 additions & 2 deletions chem_h_subtheme.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: ChEM-H Subtheme
type: theme
description: 'ChEM-H Subtheme.'
package: Stanford
version: 8.x-1.0-dev
core_version_requirement: ^9
version: 1.0.1
core_version_requirement: ^9 || ^10
base theme: stanford_basic
libraries:
- chem_h_subtheme/allpages
Expand Down
2 changes: 1 addition & 1 deletion chem_h_subtheme.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ allpages:
theme:
dist/css/chem_h_subtheme.css: {minified: true }
js:
dist/js/scripts.js: { scope: footer }
src/js/chemhsubtheme.behaviors.js: { scope: footer }
6 changes: 3 additions & 3 deletions chem_h_subtheme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Prepares variables for the html.html.twig template.
*/
function chem_h_subtheme_preprocess_html(&$variables) {
$variables['stanford_basic_path'] = drupal_get_path('theme', 'stanford_basic');
\Drupal::service('extension.list.theme')->getPath('stanford_basic');

$twittercard = [
'#tag' => 'meta',
Expand Down Expand Up @@ -58,7 +58,7 @@ function chem_h_subtheme_preprocess_html(&$variables) {
],
];

// Is front page variable
// Is front page variable
// set the front variable to add meta tags to on the homepage.
if (\Drupal::service('path.matcher')->isFrontPage()) {
$variables['page']['#attached']['html_head'][] = [$twittercard, 'twitter:card'];
Expand Down Expand Up @@ -128,7 +128,7 @@ function chem_h_subtheme_preprocess_card(&$variables) {
// Check for media in a card then set classes.
if (!$imageCount) {
return;
}
}
}

/**
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/css/chem_h_subtheme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions dist/js/scripts.js

This file was deleted.

39 changes: 0 additions & 39 deletions dist/templates/decanter/components/accordion/accordion.twig

This file was deleted.

72 changes: 0 additions & 72 deletions dist/templates/decanter/components/alert/alert.twig

This file was deleted.

Loading

0 comments on commit 9067906

Please sign in to comment.