Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHEMH: updating files to work with D10 #82

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading