Skip to content

Soundcloud embeds (2nd attempt)#847

Open
ChrisButterworth wants to merge 15 commits into
masterfrom
fix/soundcloud-accordion-embed
Open

Soundcloud embeds (2nd attempt)#847
ChrisButterworth wants to merge 15 commits into
masterfrom
fix/soundcloud-accordion-embed

Conversation

@ChrisButterworth
Copy link
Copy Markdown
Contributor

  • Updated cookie consent to track consent
  • Added helper to hide embed until consent given
  • Updating faq template to include the helper functon

Copy link
Copy Markdown
Contributor

@sean-dunwoody sean-dunwoody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ChrisButterworth ,

This looks good to me. I've just added a couple of minor comments and questions for review if you have time.

Please make sure this gets tested on staging before merging it in.

Comment thread resources/js/config.js Outdated
Comment thread resources/sass/exhibition/_soundcloud-component.scss Outdated
Comment thread resources/sass/exhibition/_soundcloud-component.scss Outdated
Comment thread resources/views/exhibitions/components/soundcloud-embed.blade.php
$accordion_image_alt = !empty($accodion_image['data']['description']) ? $accodion_image['data']['description'] : '';
}
@endphp
<img class="mt-2 mb-4" src="{{ $accordion_image_src }}" alt="{{ $accordion_image_alt }}" load="lazy">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not make more sense to wrap this in the if(!empty($accordion_image)) check?

Otherwise this image could be empty?

@ChrisButterworth
Copy link
Copy Markdown
Contributor Author

Deployed to staging ready to test!

@sean-dunwoody
Copy link
Copy Markdown
Contributor

@ChrisButterworth I fixed a couple of issues with the template code (check commits for more information).

I've deployed this to staging but there is still an issue with the JavaScript code that is preventing this from working correctly:

https://fitzmuseum.studio24.dev/plan-your-visit/exhibitions/test-exhibition-2025-2

Can you please look into this and resolve it.

@ChrisButterworth
Copy link
Copy Markdown
Contributor Author

@ChrisButterworth I fixed a couple of issues with the template code (check commits for more information).

I've deployed this to staging but there is still an issue with the JavaScript code that is preventing this from working correctly:

https://fitzmuseum.studio24.dev/plan-your-visit/exhibitions/test-exhibition-2025-2

Can you please look into this and resolve it.

It was a single line that needed to be fixed!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants