-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.php
126 lines (98 loc) · 3.07 KB
/
variables.php
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
// ---------------- WARNING ---------------- //
// //
// DO NOT CHANGE THE VALUES IN THIS FILE //
// //
// ----------------------------------------- //
// DEFAULT TEMPLATE VARIABLES & EXPLANATIONS ----------------------------------------------//
// Each are set to false by default. They are overridden with the statements in the next section
$hasSlateForm = false; // Toggles the background for the form
$isLongForm = false; // Toggles long-form layout
// Full Width Layouts
$noSidebar = false; // Toggles fullwidth layout
$hasWebinar = false; // Toggles the Webinar section
$isThankYouPage = false; // Toggles thank you page layout
$hasForm = false; // Toggles the form on the thank you page layout
$hasDownloadButton = false; // Toggles the download button on the thank you page
// Special eBook template
$isEBook = false;
// Special Form Forwarding Templates
$isFormForwarding = false; // Adds HO Branding to template
// OVERRIDES BASED UPON THEME SELECTION ----------------------------------------------//
// STANDARD TEMPLATES ---------------------------- //
// WHITE FORM
if($template == 'standard-white') {
}
// SLATE FORM
if($template == 'standard-slate') {
$hasSlateForm = true;
}
// HO FORM FORWARDING TEMPLATES ---------------------------- //
// WHITE FORM
if($template == 'standard-white-hasoffers') {
$isFormForwarding = true;
}
// SLATE FORM
if($template == 'standard-slate-hasoffers') {
$hasSlateForm = true;
$isFormForwarding = true;
}
// LONG COPY FORMAT TEMPLATES ---------------------------- //
// WHITE FORM
if($template == 'longcopy-white') {
$isLongForm = true;
}
// SLATE FORM
if($template == 'longcopy-slate') {
$hasSlateForm = true;
$isLongForm = true;
}
// FULL WIDTH TEMPLATES ---------------------------- //
// WITHOUT WEBINAR
if($template == 'fullwidth-slate') {
$hasSlateForm = true;
$noSidebar = true;
}
// WITH WEBINAR
if($template == 'webinar-slate') {
$hasSlateForm = true;
$noSidebar = true;
$hasWebinar = true;
}
// EBOOK TEMPLATES ---------------------------- //
// WHITE FORM
if($template == 'ebook-ltgrey') {
$isEBook = true;
}
// SLATE FORM
if($template == 'ebook-slate') {
$hasSlateForm = true;
$isEBook = true;
}
// THANK YOU TEMPLATES ---------------------------- //
// NO FORM, NO BUTTON
if($template == 'thankyou-slate') {
$hasSlateForm = true;
$noSidebar = true;
$isThankYouPage = true;
$hasForm = true;
}
// SLATE FORM, NO BUTTON
if($template == 'thankyou-noform') {
$noSidebar = true;
$isThankYouPage = true;
}
// NO FORM, WITH BUTTON
if($template == 'thankyou-hasbutton-slate') {
$hasSlateForm = true;
$noSidebar = true;
$isThankYouPage = true;
$hasDownloadButton = true;
$hasForm = true;
}
// SLATE FORM, WITH BUTTON
if($template == 'thankyou-hasbutton-noform') {
$noSidebar = true;
$isThankYouPage = true;
$hasDownloadButton = true;
}