PluginProbe ʕ •ᴥ•ʔ
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress / trunk
Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress vtrunk
4.16.18 4.16.17 4.16.16 trunk 1.0 1.0.1 1.0.2 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5a 1.1.6 1.1.7 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4 1.4.1 1.4.2 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.7 1.7.1 1.7.2 1.8 1.8.1 1.8.10 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.1.9 2.2.10 2.2.11 2.2.12 2.2.13 2.2.14 2.2.15 2.2.16 2.2.2 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 3.0 3.1 3.1.1 3.1.10 3.1.11 3.1.12 3.1.13 3.1.14 3.1.15 3.1.16 3.1.17 3.1.18 3.1.19 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.10 3.2.11 3.2.12 3.2.13 3.2.14 3.2.15 3.2.16 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10.0 4.10.1 4.10.2 4.10.3 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.13.3 4.13.4 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.15.0 4.15.1 4.15.10 4.15.11 4.15.12 4.15.13 4.15.14 4.15.15 4.15.16 4.15.17 4.15.18 4.15.19 4.15.2 4.15.20 4.15.20.1 4.15.21 4.15.22 4.15.23 4.15.24 4.15.25 4.15.3 4.15.4 4.15.5 4.15.6 4.15.7 4.15.8 4.15.9 4.16.0 4.16.1 4.16.10 4.16.11 4.16.12 4.16.13 4.16.14 4.16.15 4.16.2 4.16.3 4.16.4 4.16.5 4.16.6 4.16.7 4.16.8 4.16.9 4.2.0 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.5.3 4.5.4 4.5.5 4.6.0 4.7.0 4.8.0 4.9.0
wp-user-avatar / src / Classes / default-email-template.php
wp-user-avatar / src / Classes Last commit date
Installer 3 years ago AdminNotices.php 2 months ago AjaxHandler.php 1 year ago Autologin.php 9 months ago BlockRegistrations.php 10 months ago BuddyPressBbPress.php 3 years ago DisableConcurrentLogins.php 2 years ago EditUserProfile.php 5 months ago ExtensionManager.php 1 month ago FileUploader.php 3 months ago FormPreviewHandler.php 5 months ago FormRepository.php 1 year ago FormShortcodeDefaults.php 1 month ago GDPR.php 3 years ago Geolocation.php 3 years ago GlobalSiteAccess.php 3 years ago ImageUploader.php 1 year ago LoginAuth.php 1 year ago Miscellaneous.php 3 years ago ModifyRedirectDefaultLinks.php 2 hours ago PPRESS_Session.php 1 year ago PROFILEPRESS_sql.php 1 year ago PasswordReset.php 1 year ago ProfileUrlRewrite.php 4 years ago RegistrationAuth.php 1 week ago SendEmail.php 3 years ago ShortcodeThemeFactory.php 5 years ago UserAvatar.php 1 year ago UserSignupLocationListingPage.php 3 years ago UsernameEmailRestrictLogin.php 4 years ago WPProfileFieldParserTrait.php 1 year ago WelcomeEmailAfterSignup.php 1 year ago default-email-template.php 1 year ago index.php 3 years ago
default-email-template.php
297 lines
1 <?php
2
3 use ProfilePress\Core\Admin\SettingsPages\EmailSettings\DefaultTemplateCustomizer as DT;
4
5 $background_color = DT::get_customizer_value('background_color');
6 $background_text_color = DT::get_customizer_value('background_text_color');
7
8 $content_background_color = DT::get_customizer_value('content_background_color');
9 $content_header_color = DT::get_customizer_value('content_header_color');
10 $content_text_color = DT::get_customizer_value('content_text_color');
11
12 $header = DT::get_customizer_value('header_text');
13 $logo_id = DT::get_customizer_value('header_logo');
14 if ( ! empty($logo_id)) {
15 $header = sprintf('<img src="%s">', wp_get_attachment_url($logo_id));
16 }
17
18 $footer_text = DT::get_customizer_value('footer_text');
19 ?>
20 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21 <html>
22 <head>
23 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
24 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
25 <title><?= esc_attr($email_subject) ?></title>
26 <style type="text/css" rel="stylesheet" media="all">
27 @import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap");
28
29 body {
30 width: 100% !important;
31 height: 100%;
32 margin: 0;
33 -webkit-text-size-adjust: none;
34 }
35
36 a {
37 color: #3869D4;
38 }
39
40 a img {
41 border: none;
42 }
43
44 td {
45 word-break: break-word;
46 }
47
48 /* Type ------------------------------ */
49
50 body,
51 td,
52 th {
53 font-family: "Nunito Sans", Helvetica, Arial, sans-serif;
54 }
55
56 h1 {
57 margin-top: 0;
58 color: <?=$content_header_color?>;
59 font-size: 22px;
60 font-weight: bold;
61 text-align: left;
62 }
63
64 h2 {
65 margin-top: 0;
66 color: <?=$content_header_color?>;
67 font-size: 16px;
68 font-weight: bold;
69 text-align: left;
70 }
71
72 h3 {
73 margin-top: 0;
74 color: <?=$content_header_color?>;
75 font-size: 14px;
76 font-weight: bold;
77 text-align: left;
78 }
79
80 td,
81 th {
82 font-size: 16px;
83 }
84
85 p,
86 ul,
87 ol,
88 blockquote {
89 margin: .4em 0 1.1875em;
90 font-size: 16px;
91 line-height: 1.625;
92 }
93
94 p.sub {
95 font-size: 13px;
96 }
97
98 /* Utilities ------------------------------ */
99
100 .align-right {
101 text-align: right;
102 }
103
104 .align-left {
105 text-align: left;
106 }
107
108 .align-center {
109 text-align: center;
110 }
111
112 /* Buttons ------------------------------ */
113
114 .button {
115 background-color: #3869D4;
116 border-top: 10px solid #3869D4;
117 border-right: 18px solid #3869D4;
118 border-bottom: 10px solid #3869D4;
119 border-left: 18px solid #3869D4;
120 display: inline-block;
121 color: #FFF;
122 text-decoration: none;
123 border-radius: 3px;
124 box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16);
125 -webkit-text-size-adjust: none;
126 box-sizing: border-box;
127 }
128
129 .button--green {
130 background-color: #22BC66;
131 border-top: 10px solid #22BC66;
132 border-right: 18px solid #22BC66;
133 border-bottom: 10px solid #22BC66;
134 border-left: 18px solid #22BC66;
135 }
136
137 .button--red {
138 background-color: #FF6136;
139 border-top: 10px solid #FF6136;
140 border-right: 18px solid #FF6136;
141 border-bottom: 10px solid #FF6136;
142 border-left: 18px solid #FF6136;
143 }
144
145 @media only screen and (max-width: 500px) {
146 .button {
147 width: 100% !important;
148 text-align: center !important;
149 }
150 }
151
152 body {
153 background-color: <?=esc_attr($background_color)?>;
154 color: <?=esc_attr($content_text_color)?>;
155 }
156
157 p {
158 color: <?=esc_attr($content_text_color)?>;
159 }
160
161 .email-wrapper {
162 width: 100%;
163 margin: 0;
164 padding: 0;
165 -premailer-width: 100%;
166 -premailer-cellpadding: 0;
167 -premailer-cellspacing: 0;
168 background-color: <?=esc_attr($background_color)?>;
169 }
170
171 .email-content {
172 width: 100%;
173 margin: 0;
174 padding: 0;
175 -premailer-width: 100%;
176 -premailer-cellpadding: 0;
177 -premailer-cellspacing: 0;
178 }
179
180 /* Masthead ----------------------- */
181
182 .email-masthead {
183 padding: 25px 0;
184 text-align: center;
185 }
186
187 .email-masthead_name,
188 .email-masthead a.email-masthead_name {
189 font-size: 26px;
190 font-weight: bold;
191 color: <?=esc_attr($background_text_color)?>;
192 text-decoration: none;
193 }
194
195 /* Body ------------------------------ */
196
197 .email-body {
198 width: 100%;
199 margin: 0;
200 padding: 0;
201 -premailer-width: 100%;
202 -premailer-cellpadding: 0;
203 -premailer-cellspacing: 0;
204 }
205
206 .email-body_inner {
207 width: 570px;
208 margin: 0 auto;
209 padding: 0;
210 -premailer-width: 570px;
211 -premailer-cellpadding: 0;
212 -premailer-cellspacing: 0;
213 background-color: <?=esc_attr($content_background_color)?>;
214 }
215
216 .email-footer {
217 width: 570px;
218 margin: 0 auto;
219 padding: 0;
220 -premailer-width: 570px;
221 -premailer-cellpadding: 0;
222 -premailer-cellspacing: 0;
223 text-align: center;
224 }
225
226 .email-footer,
227 .email-footer p {
228 color: <?=esc_attr($background_text_color)?>;
229 }
230
231 .content-cell {
232 padding: 45px;
233 }
234
235 /*Media Queries ------------------------------ */
236
237 @media only screen and (max-width: 600px) {
238 .email-body_inner,
239 .email-footer {
240 width: 100% !important;
241 }
242 }
243
244 <?php do_action('ppress_send_email_default_template_style'); ?>
245
246 </style>
247 <!--[if mso]>
248 <style type="text/css">
249 .f-fallback {
250 font-family: Arial, sans-serif;
251 }
252 </style><![endif]-->
253 </head>
254 <body>
255 <table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation">
256 <tr>
257 <td align="center">
258 <table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
259 <tr>
260 <td class="email-masthead">
261 <a href="<?= apply_filters('ppress_default_email_template_logo_link', home_url()) ?>" class="f-fallback email-masthead_name">
262 <?= $header; ?>
263 </a>
264 </td>
265 </tr>
266 <!-- Email Body -->
267 <tr>
268 <td class="email-body" width="570" cellpadding="0" cellspacing="0">
269 <table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
270 <!-- Body content -->
271 <tr>
272 <td class="content-cell">
273 <div class="f-fallback">
274 <?= $email_content; ?>
275 </div>
276 </td>
277 </tr>
278 </table>
279 </td>
280 </tr>
281 <tr>
282 <td>
283 <table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
284 <tr>
285 <td class="content-cell" align="center">
286 <p class="f-fallback sub align-center"><?= $footer_text ?></p>
287 </td>
288 </tr>
289 </table>
290 </td>
291 </tr>
292 </table>
293 </td>
294 </tr>
295 </table>
296 </body>
297 </html>