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 13, 2024
1 parent a0610a1 commit 8ddc98f
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 8 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
2 changes: 1 addition & 1 deletion config/sync/field.field.media.file.field_media_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ settings:
handler_settings: { }
file_directory: media/file
file_extensions: 'txt rtf doc docx ppt pptx xls xlsx pdf'
max_filesize: ''
max_filesize: '10 MB'
description_field: false
field_type: file
13 changes: 10 additions & 3 deletions src/EventSubscriber/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,20 @@ public function onEntityInsert(EntityInsertEvent $event) {
* @param \Drupal\core_event_dispatcher\Event\Entity\EntityPresaveEvent $event
* Entity presave event.
*/
public function onEntityPreSave(EntityPresaveEvent $event) {
public static function onEntityPreSave(EntityPresaveEvent $event) {
$entity = $event->getEntity();

// Invalidate the site renewal redirect logic in case the user now has
// permissions to make the needed changes.
if ($entity->getEntityTypeId() == 'user') {
\Drupal::cache()->invalidate('su_renew_site:' . $entity->id());
}
if (
PHP_SAPI != 'cli' &&
$entity->getEntityTypeId() == 'config_pages' &&
$entity->bundle() == 'stanford_basic_site_settings'
) {
$renewal_date = time() + (InstallerKernel::installationAttempted() ? 0 : 60 * 60 * 24 * 365);
$renewal_date = time() + 60 * 60 * 24 * 365;
$entity->set('su_site_renewal_due', date(DateTimeItemInterface::DATETIME_STORAGE_FORMAT, $renewal_date));
Cache::invalidateTags(['site-renew-date']);
}
Expand Down Expand Up @@ -167,7 +174,7 @@ protected static function redirectUser() {

// If the renewal date has passed, they should be redirected.
$needs_renewal = !getenv('CI') && $site_manager && (strtotime($renewal_date) - time() < 60 * 60 * 24);
$cache->set('su_renew_site:' . $current_user->id(), $needs_renewal, time() + 60 * 60 * 24, ['site-renew-date']);
$cache->set('su_renew_site:' . $current_user->id(), $needs_renewal, Cache::PERMANENT, ['site-renew-date']);

return $needs_renewal;
}
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 themes/stanford_basic/dist/css/components.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

.content {
.paragraph-item {
&:not(.ptype-stanford-accordion) {
@include modular-spacing("margin-bottom", 5);
@include modular-spacing("margin-bottom", 5);

&.ptype-stanford-accordion {
margin-bottom: 0;
}

&.ptype-stanford-accordion {
Expand Down

0 comments on commit 8ddc98f

Please sign in to comment.