-
Notifications
You must be signed in to change notification settings - Fork 0
/
thank-you.twig
60 lines (58 loc) · 3.98 KB
/
thank-you.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{{ set(this, 'title', 'Signup Successful') }}
{% set networkData = _Network.getNetworkData() %}
{% set config = _Network.getThemeConfig() %}
{% set thankyou = {} %}
{% if config['thank-you-page'] %}
{% set thankyou = config['thank-you-page'] %}
{% endif %}
<main id="main" class="site-main" role="main">
<div class="o-media-hero relative">
<figure class="o-media-slider">
<picture class="image-cover">
{% if thankyou['image']['url'] is defined and thankyou['image']['url'] != '' %}
<img class="image-cover" src="{{thankyou['image']['url']}}" alt="Banner Image" />
{% else %}
<!--[if IE 9]><video style="display:none;"><![endif]-->
<source
media="(max-width:767px)"
sizes="100vw"
srcset="{{networkData.templatePath}}/static/images/banner/slide_02_Mobile.jpg 2x" />
<source
media="(min-width:768px)"
sizes="33.3vw"
srcset="{{networkData.templatePath}}/static/images/banner/slide_02.jpg 1x" />
<!--[if IE 9]></video><![endif]-->
<img class="image-cover" sizes="(min-width:601px) 33vw, 100vw" srcset="{{networkData.templatePath}}/static/images/banner/slide_02_Mobile.jpg 767w, {{networkData.templatePath}}/static/images/banner/slide_02.jpg 1200w" alt="Banner Image" />
{% endif %}
</picture>
<div class="o-media-hero_overlay">
<div class="o-media-hero_caption">
<div class="o-media-hero_caption_balance">
<div class="container">
<div class="o-media-hero_caption_wrapper">
{% if thankyou['maintext'] is defined and thankyou['maintext'] != '' %}
<h2 class="o-media-hero_text text">{{thankyou['maintext']}}</h2>
{% else %}
<h2 class="o-media-hero_text text">Thank you for <br class="hidden-xs">subscribing.</h2>
{% endif %}
<p>Visit the <a class="u-color--main" href="{{networkData.defaultBlogUrl}}/user/edit-profile"><b>My Account</b></a> page to update your details.</p>
{% set buttonUrl = networkData.defaultBlogUrl %}
{% set buttonText = 'Start Reading' %}
{% if thankyou['button']['url'] is defined and thankyou['button']['url'] != '' %}
{% set buttonUrl = thankyou['button']['url'] %}
{% endif %}
{% if thankyou['button']['text'] is defined and thankyou['button']['text'] != '' %}
{% set buttonText = thankyou['button']['text'] %}
{% endif %}
<div class="o-media-hero_button-set">
<a class="c-button c-button--background-white c-button--blue-bordered" href="{{buttonUrl}}">{{buttonText}}</a>
</div>
</div>
</div>
</div>
</div>
</div>
</figure>
</div>
<!-- End Hero Banner -->
</main>