Skip to content

Commit

Permalink
11.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Nov 20, 2024
1 parent a634495 commit 2feb438
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 16 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Stanford Profile

11.5.0
-------------------------------------------------------------------------------
- Updated metatag module config
- Exposed opportunity in graphql
- D8CORE-7194 Embed codes with captions respect 100% widths on iframes
- D8CORE-6644 Omit default favicons if one is uploaded in the theme settings
- D8CORE-5828 If home page starts with a wysiwyg, add some space at the top
- Added aria label to masthead section
- D8CORE-6821 Adjust skip to main content location
- D8CORE-7454: Move back-to-top inside the <main> element
- D8CORE-7434 D8CORE-7435 D8CORE-7436 | Opportunity full content layout and configure card and list display (#813)
- D8CORE-7578 Adjust person display for lists and improve resolution (#828)
- D8CORE-7558: added the global footer to minimal theme in dark with no logo (#820)
- Added FAQ Accordion List paragraph type based on CAW (#827)
- Added modal colorbox image display choices in the wysiwyg (#826)

11.4.5
-------------------------------------------------------------------------------
- Remove edit links in views (#821)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- field.storage.paragraph.su_faq_description
- filter.format.stanford_minimal_html
- paragraphs.paragraphs_type.stanford_faq
module:
- text
Expand All @@ -18,5 +19,6 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
allowed_formats:
- stanford_minimal_html
field_type: text_long
10 changes: 5 additions & 5 deletions content/config_pages/5a3a16f1-adb6-4946-b957-49c5bb13ef8f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ default:
title: 'Campus Map'
options: { }
-
uri: 'https://stanford.edu/'
uri: 'https://www.stanford.edu/'
title: 'Contact Us'
options: { }
su_local_foot_address:
Expand All @@ -49,23 +49,23 @@ default:
value: a
su_local_foot_primary:
-
uri: 'https://stanford.edu/'
uri: 'https://www.stanford.edu/'
title: 'Example Link'
options: { }
-
uri: 'https://stanford.edu/'
uri: 'https://www.stanford.edu/'
title: 'Example Link'
options: { }
su_local_foot_prime_h:
-
value: 'Links to'
su_local_foot_second:
-
uri: 'https://stanford.edu/'
uri: 'https://www.stanford.edu/'
title: 'Example Link'
options: { }
-
uri: 'https://stanford.edu/'
uri: 'https://www.stanford.edu/'
title: 'Example Link'
options: { }
su_local_foot_second_h:
Expand Down
4 changes: 2 additions & 2 deletions content/node/6df8090b-5dca-4386-9d72-d86e0156c0a9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ default:
title: 'Stanford University'
options: { }
-
uri: 'https://stanford.edu/'
uri: 'https://www.stanford.edu/'
title: Stanford
options: { }
su_person_education:
Expand Down Expand Up @@ -76,7 +76,7 @@ default:
title: Google
options: { }
-
uri: 'https://stanford.edu'
uri: 'https://www.stanford.edu'
title: Stanford
options: { }
su_person_location_address:
Expand Down
9 changes: 8 additions & 1 deletion src/EventSubscriber/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,14 @@ protected static function redirectUser() {
/** @var \Drupal\Core\Routing\CurrentRouteMatch $route_match */
$route_match = \Drupal::service('current_route_match');
$name = $route_match->getCurrentRouteMatch()->getRouteName();
if (in_array($name, ['system.css_asset', 'system.js_asset'])) {
$ignore_routes = [
'system.css_asset',
'system.js_asset',
'image.style_private',
'system.files',
'system.private_file_download',
];
if (in_array($name, $ignore_routes)) {
return FALSE;
}

Expand Down
2 changes: 1 addition & 1 deletion stanford_profile.info.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 'Stanford Profile'
description: 'Jumpstart Website Profile'
version: 11.4.5
version: 11.5.0
type: profile
project: Stanford
core_version_requirement: ^10 || ^11
Expand Down
2 changes: 1 addition & 1 deletion tests/codeception/acceptance/Content/EventsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ protected function createEventNode(AcceptanceTester $I, $external = FALSE, $node
'organization' => 'Asfdasdfa sdfasd fasf',
],
'su_event_map_link' => [
'uri' => 'https://stanford.edu/',
'uri' => 'https://www.stanford.edu/',
'title' => 'map link',
],
'su_event_sponsor' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testFormSettings(AcceptanceTester $I) {
$I->fillField('#edit-su-super-foot-text-0-value', '<p>Super footers are super.</p>');
$I->fillField('#edit-su-super-foot-link-0-uri', '<front>');
$I->fillField('#edit-su-super-foot-link-0-title', 'Action link');
$I->fillField('#edit-su-super-foot-intranet-0-uri', 'https://stanford.edu/');
$I->fillField('#edit-su-super-foot-intranet-0-uri', 'https://www.stanford.edu/');
$I->fillField('#edit-su-super-foot-intranet-0-title', 'Intranet Link');
$I->click('Save');
$I->see('Super Footer has been', '.messages-list');
Expand Down
4 changes: 2 additions & 2 deletions tests/codeception/functional/Contrib/ExtLinkCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public function testExtLink(FunctionalTester $I) {
$I->fillField('su_local_foot_primary[0][title]', 'Primary Link');
$I->click('Add another item', '.field--name-su-local-foot-primary');
$I->waitForElement('[name="su_local_foot_primary[1][uri]"]');
$I->fillField('su_local_foot_primary[1][uri]', 'https://stanford.edu');
$I->fillField('su_local_foot_primary[1][uri]', 'https://www.stanford.edu');
$I->fillField('su_local_foot_primary[1][title]', 'Another primary link');

$I->fillField('su_local_foot_second[0][uri]', 'https://stanford.edu');
$I->fillField('su_local_foot_second[0][uri]', 'https://www.stanford.edu');
$I->fillField('su_local_foot_second[0][title]', 'Secondary Link');
$I->click('Add another item', '.field--name-su-local-foot-second');
$I->waitForElement('[name="su_local_foot_second[1][uri]"]');
Expand Down
4 changes: 2 additions & 2 deletions themes/stanford_basic/templates/html.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-BECJQXLNCY');
gtag('config', 'G-BECJQXLNCY', {cookie_domain: window.location.host, cookie_prefix: "sws", "ga-expire": 15552000});
</script>
{% else %}
<script>
gtag('config', 'G-BECJQXLNCY');
gtag('config', 'G-BECJQXLNCY', {cookie_domain: window.location.host, cookie_prefix: "sws", "ga-expire": 15552000});
</script>
{% endif %}
{% endif %}
Expand Down

0 comments on commit 2feb438

Please sign in to comment.