Skip to content

Commit

Permalink
Merge pull request #99 from oleh-rymar/feature/fix-issue-with-header-…
Browse files Browse the repository at this point in the history
…positioning

fix: feature/fix-issue-with-header-positioning|Fix issue with header posit…
  • Loading branch information
podarok authored May 28, 2024
2 parents babbb56 + c172e4b commit b5711b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions openy_gated_content.info.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Virtual Y Base
name: Virtual YMCA Base
type: module
description: 'Virtual Y base module.'
description: 'Virtual YMCA base module.'
package: "YMCA Website Services"
version: 1.7.1
core_version_requirement: ^8 || ^9 || ^10
version: 1.9.1
core_version_requirement: ^9 || ^10
dependencies:
- openy_system
- openy_gc_auth
Expand Down
13 changes: 12 additions & 1 deletion openy_gated_content.module
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ function openy_gated_content_preprocess_html(&$variables) {
}

if ($node->hasField('layout_builder__layout')) {
$variables['#attached']['library'][] = 'openy_gated_content/y_lb';
$variables['attributes']['class'][] = openy_gated_content_get_base_theme() . '-based';
$variables['attributes']['class'][] = 'openy-gated-content';
}
Expand Down Expand Up @@ -688,3 +687,15 @@ function _virtual_y_select_block_field_after_build($element, FormStateInterface
return $element;
}

/**
* Implements hook_preprocess_HOOK() for block templates.
*/
function openy_gated_content_preprocess_block(&$variables): void {
switch ($variables['plugin_id']) {
case 'inline_block:virtual_y_app':
case 'inline_block:virtual_y_login':
$variables['#attached']['library'][] = 'openy_gated_content/y_lb';

break;
}
}

0 comments on commit b5711b2

Please sign in to comment.