Skip to content

Commit

Permalink
Merge pull request #677 from FitzwilliamMuseum/feat/rembrandt-donate-btn
Browse files Browse the repository at this point in the history
Feat/rembrandt donate btn
  • Loading branch information
ostafinskim committed Apr 29, 2024
2 parents 32768fd + 7c9485c commit ca16a11
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions resources/views/components/exhibition-cta.blade.php
@@ -1,25 +1,31 @@
<div class="exhibition-cta">
<div class="container support-text-component support-cta mb-0">
<h2 class="cta-title exhibition-cta-title">Pay what you wish</h2>
<p class="cta-copy exhibition-cta-copy">Our exhibitions and displays remain free but you can now choose to make a donation.</p>
@if(!empty($exhibition['exhibition_url']))
<a href="{{ $exhibition['exhibition_url'] }}" class="cta-btn">
Book now
@svg('fas-chevron-right', ['width' => '16px', 'height' => '16px', 'color' => '#fff'])
</a>
@else
<p class="cta-btn">Tickets available soon...</p>
@endif
<a class="exhibition-cta-link" href="/plan-your-visit">Plan your visit</a>
</div>
@if(!empty($exhibition['exhibition_narrative']) || !empty($exhibition['promo_cta']))
<div class="container support-text-component support-cta mb-0">
<h2 class="cta-title exhibition-cta-title">Pay what you wish</h2>
<p class="cta-copy exhibition-cta-copy">Our exhibitions and displays remain free but you can now choose to make a
donation.</p>
@if ($exhibition['slug'] == 'rembrandt-rubens-van-dyck' || $exhibition['slug'] == 'rembrandt-rubens-van-dyck-drawings-by-dutch-and-flemish-masters')
<a href="{{ url('support-us/make-a-donation') }}" class="cta-btn">
Donate now
@svg('fas-chevron-right', ['width' => '16px', 'height' => '16px', 'color' => '#fff'])
</a>
@elseif(!empty($exhibition['exhibition_url']))
<a href="{{ $exhibition['exhibition_url'] }}" class="cta-btn">
Book now
@svg('fas-chevron-right', ['width' => '16px', 'height' => '16px', 'color' => '#fff'])
</a>
@else
<p class="cta-btn">Tickets available soon...</p>
@endif
<a class="exhibition-cta-link" href="/plan-your-visit">Plan your visit</a>
</div>
@if (!empty($exhibition['exhibition_narrative']) || !empty($exhibition['promo_cta']))
<div class="container support-text-component exhibition-text-component">
@if(!empty($exhibition['exhibition_narrative']))
@if (!empty($exhibition['exhibition_narrative']))
@markdown($exhibition['exhibition_narrative'])
@endif
@if(!empty($exhibition['promo_cta']))
@if (!empty($exhibition['promo_cta']))
{{-- If the Promo CTA switch is flipped to on / true --}}
@if($exhibition['promo_cta'])
@if ($exhibition['promo_cta'])
<div class="exhibition-cta--promo">
<p>Become a Friend and enjoy unlimited exhibition entry with no need to book.</p>
<a href="/support-us/become-a-friend">Find out more</a>
Expand Down

0 comments on commit ca16a11

Please sign in to comment.