Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for default messages if cookies are not allowed #4

Open
mrk-j opened this issue Feb 27, 2020 · 0 comments
Open

Allow for default messages if cookies are not allowed #4

mrk-j opened this issue Feb 27, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@mrk-j
Copy link
Member

mrk-j commented Feb 27, 2020

Maybe we can add default views for when cookies are not accepted. So we can do something like this:

@cookieConsentMarketing
    <iframe width="560" height="315" src="https://www.youtube.com/embed/fzQSE_3eLKk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
@endShowGiveMarketingConsentWarning

Or maybe use syntax like this:

@cookieConsentMarketing
    <iframe width="560" height="315" src="https://www.youtube.com/embed/fzQSE_3eLKk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
@else
    @showGiveMarketingConsentWarning
@endcookieConsentMarketing

The blade can contain something like this:

Please allow marketing cookies to view this video. Click <a href="javascript: Cookiebot.renew()">here</a> to renew or change your cookie consent.

We can then override this on a per project basis to include styling:

<div class="alert alert-warning">
    Please allow marketing cookies to view this video. Click <a href="javascript: Cookiebot.renew()">here</a> to renew or change your cookie consent.
</div>
@mrk-j mrk-j added the enhancement New feature or request label Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant