Skip to content

Commit

Permalink
10.2.1
Browse files Browse the repository at this point in the history
10.2.1
  • Loading branch information
joegl authored May 1, 2024
2 parents 5dd7a5e + c9c4b10 commit f8011ee
Show file tree
Hide file tree
Showing 35 changed files with 2,786 additions and 310 deletions.
1 change: 1 addition & 0 deletions blt/blt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ multisites:
- mcs2023
- mediterraneanstudies
- memorylab
- middleeast
- morrisoninstitute
- mrc
- mtl
Expand Down
532 changes: 271 additions & 261 deletions composer.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.hs_accordion.field_accordion_style
- field.field.paragraph.hs_accordion.field_hs_accord_expcol
- field.field.paragraph.hs_accordion.field_hs_accordion_description
- field.field.paragraph.hs_accordion.field_hs_accordion_summary
Expand All @@ -16,6 +17,12 @@ targetEntityType: paragraph
bundle: hs_accordion
mode: default
content:
field_accordion_style:
type: options_select
weight: 1
region: content
settings: { }
third_party_settings: { }
field_hs_accord_expcol:
type: boolean_checkbox
weight: 0
Expand All @@ -25,23 +32,23 @@ content:
third_party_settings: { }
field_hs_accordion_description:
type: text_textarea
weight: 2
weight: 3
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_hs_accordion_summary:
type: string_textfield
weight: 1
weight: 2
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_hs_accordion_views:
type: viewfield_select
weight: 3
weight: 4
region: content
settings: { }
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.paragraph.hs_accordion.field_accordion_style
- field.field.paragraph.hs_accordion.field_hs_accord_expcol
- field.field.paragraph.hs_accordion.field_hs_accordion_description
- field.field.paragraph.hs_accordion.field_hs_accordion_summary
Expand Down Expand Up @@ -70,5 +71,6 @@ content:
weight: 2
region: description
hidden:
field_accordion_style: true
field_hs_accord_expcol: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 41f97b80-7f73-4254-8534-9075b34e71bb
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_accordion_style
- paragraphs.paragraphs_type.hs_accordion
module:
- options
id: paragraph.hs_accordion.field_accordion_style
field_name: field_accordion_style
entity_type: paragraph
bundle: hs_accordion
label: Style
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string
24 changes: 24 additions & 0 deletions config/default/field.storage.paragraph.field_accordion_style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 12ace6d2-c690-49dd-b4bf-ea2e93d97d3e
langcode: en
status: true
dependencies:
module:
- options
- paragraphs
id: paragraph.field_accordion_style
field_name: field_accordion_style
entity_type: paragraph
type: list_string
settings:
allowed_values:
-
value: secondary
label: Secondary
allowed_values_function: ''
module: options
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
1 change: 1 addition & 0 deletions config/default/stanford_samlauth.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ role_mapping:
workgroup_api:
cert: /var/www/suhumsci/docroot/../keys/saml/workgroup_api.cert
key: /var/www/suhumsci/docroot/../keys/saml/workgroup_api.key
timeout: 30
reevaluate: new
mapping:
-
Expand Down
12 changes: 11 additions & 1 deletion docroot/modules/humsci/hs_layouts/hs_layouts.module
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,22 @@ function hs_layouts_preprocess_pattern_spotlight(&$variables) {
*/
function hs_layouts_preprocess_pattern_accordion(&$variables) {
$paragraph = $variables['context']->getProperty('entity');
if (!($paragraph instanceof ParagraphInterface)) {
return;
}

if (
$paragraph instanceof ParagraphInterface &&
$paragraph->hasField('field_hs_accord_expcol') &&
!$paragraph->field_hs_accord_expcol->isEmpty() &&
$paragraph->get('field_hs_accord_expcol')->getString()
) {
$variables['attributes']->addClass('hb-accordion_toggle-all');
}

if (
$paragraph->hasField('field_accordion_style') &&
$paragraph->get('field_accordion_style')->getString() == 'secondary'
) {
$variables['attributes']->addClass('hb-accordion-secondary');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% endif %}

{% set text_content = overlay_text %}
{% if overlay_text['field_hs_gradient_hero_title'] is defined %}
{% if overlay_text['field_hs_gradient_hero_title'] is defined and overlay_text['field_hs_gradient_hero_title'][0] is defined %}
{% set text_content %}
<{{ heading_tag }}>
{{ overlay_text['field_hs_gradient_hero_title'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% endif %}

{% set text_content = overlay_text %}
{% if overlay_text['field_hs_spotlight_title'] is defined %}
{% if overlay_text['field_hs_spotlight_title'] is defined and overlay_text['field_hs_spotlight_title'][0] is defined %}
{% set text_content %}
<{{ heading_tag }} class="hb-spotlight__title">
{{ overlay_text['field_hs_spotlight_title'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endif %}

{% set timeline_content = timeline %}
{% if timeline['field_hs_time_title'] is defined %}
{% if timeline['field_hs_time_title'] is defined and timeline['field_hs_time_title'][0] is defined %}
{% set timeline_content %}
<{{ heading_tag }} class="hb-timeline__title">
{{ timeline['field_hs_time_title'] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,13 @@ function hs_paragraph_types_field_widget_complete_paragraphs_browser_form_alter(
$field_widget_form['widget'][$key] = $element;
}
}

/**
* Implements hook_field_widget_complete_WIDGET_TYPE_form_alter().
*/
function hs_paragraph_types_field_widget_complete_options_select_form_alter(array &$field_widget_form, FormStateInterface &$form_state, array $context) {
// Change the default option label for field_accordion_style.
if (isset($context['items']) && $context['items']->getName() == 'field_accordion_style') {
$field_widget_form['widget']['#options']['_none'] = t('Default');
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Stanford HumSci'
type: profile
description: 'Installation profile for HumSci Drupal'
version: 10.1.9
version: 10.2.1
core_version_requirement: '^9.4 || ^10'
themes:
- material_admin
Expand Down
12 changes: 12 additions & 0 deletions docroot/sites/middleeast/blt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
project:
machine_name: middleeast
human_name: middleeast
local:
protocol: http
hostname: local.middleeast.com
drush:
aliases:
local: middleeast.local
remote: middleeast.prod
drupal:
db: { }
2 changes: 2 additions & 0 deletions docroot/sites/middleeast/default.local.drush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
options:
uri: '${project.local.uri}'
Loading

0 comments on commit f8011ee

Please sign in to comment.