AdminNotices.php
5 years ago
AjaxHandler.php
5 years ago
Autologin.php
5 years ago
BuddyPressBbPress.php
5 years ago
EditUserProfile.php
5 years ago
ExtensionManager.php
5 years ago
FileUploader.php
5 years ago
FormPreviewHandler.php
5 years ago
FormRepository.php
5 years ago
FormShortcodeDefaults.php
5 years ago
GDPR.php
5 years ago
GlobalSiteAccess.php
5 years ago
ImageUploader.php
5 years ago
LoginAuth.php
5 years ago
Miscellaneous.php
5 years ago
ModifyRedirectDefaultLinks.php
5 years ago
PPRESS_Session.php
5 years ago
PROFILEPRESS_sql.php
5 years ago
PasswordReset.php
5 years ago
ProfileUrlRewrite.php
5 years ago
RegistrationAuth.php
5 years ago
SendEmail.php
5 years ago
ShortcodeThemeFactory.php
5 years ago
UserAvatar.php
5 years ago
UserSignupLocationListingPage.php
5 years ago
UsernameEmailRestrictLogin.php
5 years ago
WelcomeEmailAfterSignup.php
5 years ago
default-email-template.php
5 years ago
index.php
5 years ago
default-email-template.php
294 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_text_color = DT::get_customizer_value('content_text_color'); |
| 10 | |
| 11 | $header = DT::get_customizer_value('header_text'); |
| 12 | $logo_id = DT::get_customizer_value('header_logo'); |
| 13 | if ( ! empty($logo_id)) { |
| 14 | $header = sprintf('<img src="%s">', wp_get_attachment_url($logo_id)); |
| 15 | } |
| 16 | |
| 17 | $footer_text = DT::get_customizer_value('footer_text'); |
| 18 | ?> |
| 19 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 20 | <html> |
| 21 | <head> |
| 22 | <meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
| 23 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 24 | <title><?= $email_subject ?></title> |
| 25 | <style type="text/css" rel="stylesheet" media="all"> |
| 26 | @import url("https://fonts.googleapis.com/css?family=Nunito+Sans:400,700&display=swap"); |
| 27 | |
| 28 | body { |
| 29 | width: 100% !important; |
| 30 | height: 100%; |
| 31 | margin: 0; |
| 32 | -webkit-text-size-adjust: none; |
| 33 | } |
| 34 | |
| 35 | a { |
| 36 | color: #3869D4; |
| 37 | } |
| 38 | |
| 39 | a img { |
| 40 | border: none; |
| 41 | } |
| 42 | |
| 43 | td { |
| 44 | word-break: break-word; |
| 45 | } |
| 46 | |
| 47 | /* Type ------------------------------ */ |
| 48 | |
| 49 | body, |
| 50 | td, |
| 51 | th { |
| 52 | font-family: "Nunito Sans", Helvetica, Arial, sans-serif; |
| 53 | } |
| 54 | |
| 55 | h1 { |
| 56 | margin-top: 0; |
| 57 | color: #333333; |
| 58 | font-size: 22px; |
| 59 | font-weight: bold; |
| 60 | text-align: left; |
| 61 | } |
| 62 | |
| 63 | h2 { |
| 64 | margin-top: 0; |
| 65 | color: #333333; |
| 66 | font-size: 16px; |
| 67 | font-weight: bold; |
| 68 | text-align: left; |
| 69 | } |
| 70 | |
| 71 | h3 { |
| 72 | margin-top: 0; |
| 73 | color: #333333; |
| 74 | font-size: 14px; |
| 75 | font-weight: bold; |
| 76 | text-align: left; |
| 77 | } |
| 78 | |
| 79 | td, |
| 80 | th { |
| 81 | font-size: 16px; |
| 82 | } |
| 83 | |
| 84 | p, |
| 85 | ul, |
| 86 | ol, |
| 87 | blockquote { |
| 88 | margin: .4em 0 1.1875em; |
| 89 | font-size: 16px; |
| 90 | line-height: 1.625; |
| 91 | } |
| 92 | |
| 93 | p.sub { |
| 94 | font-size: 13px; |
| 95 | } |
| 96 | |
| 97 | /* Utilities ------------------------------ */ |
| 98 | |
| 99 | .align-right { |
| 100 | text-align: right; |
| 101 | } |
| 102 | |
| 103 | .align-left { |
| 104 | text-align: left; |
| 105 | } |
| 106 | |
| 107 | .align-center { |
| 108 | text-align: center; |
| 109 | } |
| 110 | |
| 111 | /* Buttons ------------------------------ */ |
| 112 | |
| 113 | .button { |
| 114 | background-color: #3869D4; |
| 115 | border-top: 10px solid #3869D4; |
| 116 | border-right: 18px solid #3869D4; |
| 117 | border-bottom: 10px solid #3869D4; |
| 118 | border-left: 18px solid #3869D4; |
| 119 | display: inline-block; |
| 120 | color: #FFF; |
| 121 | text-decoration: none; |
| 122 | border-radius: 3px; |
| 123 | box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16); |
| 124 | -webkit-text-size-adjust: none; |
| 125 | box-sizing: border-box; |
| 126 | } |
| 127 | |
| 128 | .button--green { |
| 129 | background-color: #22BC66; |
| 130 | border-top: 10px solid #22BC66; |
| 131 | border-right: 18px solid #22BC66; |
| 132 | border-bottom: 10px solid #22BC66; |
| 133 | border-left: 18px solid #22BC66; |
| 134 | } |
| 135 | |
| 136 | .button--red { |
| 137 | background-color: #FF6136; |
| 138 | border-top: 10px solid #FF6136; |
| 139 | border-right: 18px solid #FF6136; |
| 140 | border-bottom: 10px solid #FF6136; |
| 141 | border-left: 18px solid #FF6136; |
| 142 | } |
| 143 | |
| 144 | @media only screen and (max-width: 500px) { |
| 145 | .button { |
| 146 | width: 100% !important; |
| 147 | text-align: center !important; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | body { |
| 152 | background-color: <?=$background_color?>; |
| 153 | color: <?=$content_text_color?>; |
| 154 | } |
| 155 | |
| 156 | p { |
| 157 | color: <?=$content_text_color?>; |
| 158 | } |
| 159 | |
| 160 | .email-wrapper { |
| 161 | width: 100%; |
| 162 | margin: 0; |
| 163 | padding: 0; |
| 164 | -premailer-width: 100%; |
| 165 | -premailer-cellpadding: 0; |
| 166 | -premailer-cellspacing: 0; |
| 167 | background-color: <?=$background_color?>; |
| 168 | } |
| 169 | |
| 170 | .email-content { |
| 171 | width: 100%; |
| 172 | margin: 0; |
| 173 | padding: 0; |
| 174 | -premailer-width: 100%; |
| 175 | -premailer-cellpadding: 0; |
| 176 | -premailer-cellspacing: 0; |
| 177 | } |
| 178 | |
| 179 | /* Masthead ----------------------- */ |
| 180 | |
| 181 | .email-masthead { |
| 182 | padding: 25px 0; |
| 183 | text-align: center; |
| 184 | } |
| 185 | |
| 186 | .email-masthead_name, |
| 187 | .email-masthead a.email-masthead_name { |
| 188 | font-size: 26px; |
| 189 | font-weight: bold; |
| 190 | color: <?=$background_text_color?>; |
| 191 | text-decoration: none; |
| 192 | } |
| 193 | |
| 194 | /* Body ------------------------------ */ |
| 195 | |
| 196 | .email-body { |
| 197 | width: 100%; |
| 198 | margin: 0; |
| 199 | padding: 0; |
| 200 | -premailer-width: 100%; |
| 201 | -premailer-cellpadding: 0; |
| 202 | -premailer-cellspacing: 0; |
| 203 | } |
| 204 | |
| 205 | .email-body_inner { |
| 206 | width: 570px; |
| 207 | margin: 0 auto; |
| 208 | padding: 0; |
| 209 | -premailer-width: 570px; |
| 210 | -premailer-cellpadding: 0; |
| 211 | -premailer-cellspacing: 0; |
| 212 | background-color: <?=$content_background_color?>; |
| 213 | } |
| 214 | |
| 215 | .email-footer { |
| 216 | width: 570px; |
| 217 | margin: 0 auto; |
| 218 | padding: 0; |
| 219 | -premailer-width: 570px; |
| 220 | -premailer-cellpadding: 0; |
| 221 | -premailer-cellspacing: 0; |
| 222 | text-align: center; |
| 223 | } |
| 224 | |
| 225 | .email-footer, |
| 226 | .email-footer p { |
| 227 | color: <?=$background_text_color?>; |
| 228 | } |
| 229 | |
| 230 | .content-cell { |
| 231 | padding: 45px; |
| 232 | } |
| 233 | |
| 234 | /*Media Queries ------------------------------ */ |
| 235 | |
| 236 | @media only screen and (max-width: 600px) { |
| 237 | .email-body_inner, |
| 238 | .email-footer { |
| 239 | width: 100% !important; |
| 240 | } |
| 241 | } |
| 242 | </style> |
| 243 | <!--[if mso]> |
| 244 | <style type="text/css"> |
| 245 | .f-fallback { |
| 246 | font-family: Arial, sans-serif; |
| 247 | } |
| 248 | </style> |
| 249 | <![endif]--> |
| 250 | </head> |
| 251 | <body> |
| 252 | <table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0" role="presentation"> |
| 253 | <tr> |
| 254 | <td align="center"> |
| 255 | <table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation"> |
| 256 | <tr> |
| 257 | <td class="email-masthead"> |
| 258 | <a href="<?= apply_filters('ppress_default_email_template_logo_link', home_url()) ?>" class="f-fallback email-masthead_name"> |
| 259 | <?= $header; ?> |
| 260 | </a> |
| 261 | </td> |
| 262 | </tr> |
| 263 | <!-- Email Body --> |
| 264 | <tr> |
| 265 | <td class="email-body" width="570" cellpadding="0" cellspacing="0"> |
| 266 | <table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> |
| 267 | <!-- Body content --> |
| 268 | <tr> |
| 269 | <td class="content-cell"> |
| 270 | <div class="f-fallback"> |
| 271 | <?= $email_content; ?> |
| 272 | </div> |
| 273 | </td> |
| 274 | </tr> |
| 275 | </table> |
| 276 | </td> |
| 277 | </tr> |
| 278 | <tr> |
| 279 | <td> |
| 280 | <table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation"> |
| 281 | <tr> |
| 282 | <td class="content-cell" align="center"> |
| 283 | <p class="f-fallback sub align-center"><?= $footer_text ?></p> |
| 284 | </td> |
| 285 | </tr> |
| 286 | </table> |
| 287 | </td> |
| 288 | </tr> |
| 289 | </table> |
| 290 | </td> |
| 291 | </tr> |
| 292 | </table> |
| 293 | </body> |
| 294 | </html> |