PluginProbe
Age Gate / 3.7.3
Age Gate v3.7.3
3.7.3 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 All 113 releases
age-gate / src / Admin / Settings / Message.php

Message.php in Age Gate 3.7.3, at src/Admin/Settings/Message.php

199 lines 8.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace AgeGate\Admin\Settings;
4
5 trait Message
6 {
7 protected function getMessageFields()
8 {
9 return [
10 [
11 'title' => '',
12 'subtitle' => __('Customise the various messages Age Gate uses', 'age-gate'),
13 'fields' => [
14 'headline' => [
15 'label' => __('Headline', 'age-gate'),
16 'type' => 'text',
17 'attributes' => [
18 'class' => 'regular-text'
19 ],
20 'default' => '',
21 'translate' => true,
22 ],
23 'subheadline' => [
24 'label' => __('Sub headline', 'age-gate'),
25 'type' => 'text',
26 'attributes' => [
27 'class' => 'regular-text'
28 ],
29 'default' => '',
30 'translate' => true,
31 ],
32 'label_remember' => [
33 'label' => __('Remember me text', 'age-gate'),
34 'type' => 'text',
35 'attributes' => [
36 'class' => 'regular-text',
37 ],
38 'default' => __('Remember me', 'age-gate'),
39 'translate' => true,
40 ],
41 'label_aria' => [
42 'label' => __('Aria label', 'age-gate'),
43 'type' => 'text',
44 'attributes' => [
45 'class' => 'regular-text',
46 ],
47 'default' => '',
48 'translate' => true,
49 ],
50 'label_buttons' => [
51 'label' => __('Yes/No sub question', 'age-gate'),
52 'type' => 'text',
53 'attributes' => [
54 'class' => 'regular-text',
55 ],
56 'default' => __('Are you over {age} years of age?', 'age-gate'),
57 'translate' => true,
58 ],
59 'label_yes' => [
60 'label' => __('Yes button text', 'age-gate'),
61 'type' => 'text',
62 'attributes' => [
63 'class' => 'regular-text',
64 ],
65 'default' => __('Yes', 'age-gate'),
66 'translate' => true,
67 ],
68 'label_no' => [
69 'label' => __('No button text', 'age-gate'),
70 'type' => 'text',
71 'attributes' => [
72 'class' => 'regular-text',
73 ],
74 'default' => __('No', 'age-gate'),
75 'translate' => true,
76 ],
77 'label_day' => [
78 'label' => __('Day label', 'age-gate'),
79 'type' => 'text',
80 'attributes' => [
81 'class' => 'regular-text',
82 ],
83 'default' => __('Day', 'age-gate'),
84 'translate' => true,
85 ],
86 'label_month' => [
87 'label' => __('Month label', 'age-gate'),
88 'type' => 'text',
89 'attributes' => [
90 'class' => 'regular-text',
91 ],
92 'default' => __('Month', 'age-gate'),
93 'translate' => true,
94 ],
95 'label_year' => [
96 'label' => __('Year label', 'age-gate'),
97 'type' => 'text',
98 'attributes' => [
99 'class' => 'regular-text',
100 ],
101 'default' => __('Year', 'age-gate'),
102 'translate' => true,
103 ],
104 'placeholder_day' => [
105 'label' => __('Day placeholder', 'age-gate'),
106 'type' => 'text',
107 'attributes' => [
108 'class' => 'regular-text',
109 ],
110 'default' => __('DD', 'age-gate'),
111 'translate' => true,
112 ],
113 'placeholder_month' => [
114 'label' => __('Month placeholder', 'age-gate'),
115 'type' => 'text',
116 'attributes' => [
117 'class' => 'regular-text',
118 ],
119 'default' => __('MM', 'age-gate'),
120 'translate' => true,
121 ],
122 'placeholder_year' => [
123 'label' => __('Year placeholder', 'age-gate'),
124 'type' => 'text',
125 'attributes' => [
126 'class' => 'regular-text',
127 ],
128 'default' => __('YYYY', 'age-gate'),
129 'translate' => true,
130 ],
131 'label_submit' => [
132 'label' => __('Submit button text', 'age-gate'),
133 'type' => 'text',
134 'attributes' => [
135 'class' => 'regular-text',
136 ],
137 'default' => __('Submit', 'age-gate'),
138 'translate' => true,
139 ],
140 'label_no_cookies' => [
141 'label' => __('No cookies message', 'age-gate'),
142 'type' => 'text',
143 'attributes' => [
144 'class' => 'regular-text',
145 ],
146 'default' => __('Your browser does not support cookies, you may experience problems entering this site', 'age-gate'),
147 'translate' => true,
148 ],
149 'content' => [
150 'label' => __('Additional content', 'age-gate'),
151 'type' => 'textarea',
152 'attributes' => [
153 'class' => 'ag-rte',
154 ],
155 'default' => '',
156 'translate' => true,
157 ],
158 'error_invalid' => [
159 'label' => __('Invalid inputs', 'age-gate'),
160 'type' => 'text',
161 'attributes' => [
162 'class' => 'regular-text',
163 ],
164 'default' => __('Your input was invalid', 'age-gate'),
165 'translate' => true,
166 ],
167 'error_failed' => [
168 'label' => __('Failed error', 'age-gate'),
169 'type' => 'text',
170 'attributes' => [
171 'class' => 'regular-text',
172 ],
173 'default' => __('You are not old enough to view this content', 'age-gate'),
174 'translate' => true,
175 ],
176 'error_generic' => [
177 'label' => __('Generic error', 'age-gate'),
178 'type' => 'text',
179 'attributes' => [
180 'class' => 'regular-text',
181 ],
182 'default' => __('An error occurred, please try again', 'age-gate'),
183 'translate' => true,
184 ],
185 'error_date' => [
186 'label' => __('Invalid date', 'age-gate'),
187 'type' => 'text',
188 'attributes' => [
189 'class' => 'regular-text',
190 ],
191 'default' => __('The {field} must be a valid date', 'age-gate'),
192 'translate' => true,
193 ]
194 ]
195 ]
196 ];
197 }
198 }
199