Changeset 11785
- Timestamp:
- 01/02/2018 05:12:20 PM (7 years ago)
- Location:
- trunk/src/bp-templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress/assets/emails/single-bp-email.php
r11784 r11785 20 20 The MIT License (MIT) 21 21 22 Copyright (c) 201 3Ted Goas22 Copyright (c) 2017 Ted Goas 23 23 24 24 Permission is hereby granted, free of charge, to any person obtaining a copy of … … 45 45 $settings = bp_email_get_appearance_settings(); 46 46 47 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">48 <html xmlns="http://www.w3.org/1999/xhtml">47 ?><!DOCTYPE html> 48 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> 49 49 <head> 50 50 <meta charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>"> 51 51 <meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary --> 52 52 <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine --> 53 <meta name="x-apple-disable-message-reformatting"> <!-- Disable auto-scale in iOS 10 Mail entirely --> 54 <title></title> <!-- The title tag shows in email notifications, like Android 4.4. --> 53 55 54 56 <!-- CSS Reset --> … … 70 72 } 71 73 72 /* What it does: Forces Outlook.com to display emails full width. */73 .ExternalClass {74 width: 100%;75 }76 77 74 /* What is does: Centers email on Android 4.4 */ 78 75 div[style*="margin: 16px 0"] { … … 106 103 } 107 104 108 /* What it does: Overrides styles added when Yahoo's auto-senses a link. */109 .yshortcuts a {110 border-bottom: none !important;111 }112 113 /* What it does: A work-around for iOS meddling in triggered links. */114 a[x-apple-data-detectors] {105 /* What it does: A work-around for email clients meddling in triggered links. */ 106 *[x-apple-data-detectors], /* iOS */ 107 .x-gmail-data-detectors, /* Gmail */ 108 .x-gmail-data-detectors *, 109 .aBn { 110 border-bottom: 0 !important; 111 cursor: default !important; 115 112 color: inherit !important; 116 text-decoration: underline !important; 113 text-decoration: none !important; 114 font-size: inherit !important; 115 font-family: inherit !important; 116 font-weight: inherit !important; 117 line-height: inherit !important; 118 } 119 120 /* What it does: Prevents Gmail from displaying an download button on large, non-linked images. */ 121 .a6S { 122 display: none !important; 123 opacity: 0.01 !important; 124 } 125 126 /* If the above doesn't work, add a .g-img class to any image in question. */ 127 img.g-img + div { 128 display: none !important; 129 } 130 131 /* What it does: Prevents underlining the button text in Windows 10 */ 132 .button-link { 133 text-decoration: none !important; 117 134 } 118 135 </style> 119 136 120 137 </head> 121 <body class="email_bg" width="100%" height="100%" bgcolor="<?php echo esc_attr( $settings['email_bg'] ); ?>" style="Margin: 0;">138 <body class="email_bg" width="100%" bgcolor="<?php echo esc_attr( $settings['email_bg'] ); ?>" style="margin: 0; mso-line-height-rule: exactly;"> 122 139 <table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%" bgcolor="<?php echo esc_attr( $settings['email_bg'] ); ?>" style="border-collapse:collapse;" class="email_bg"><tr><td valign="top"> 123 <center style="width: 100%; ">140 <center style="width: 100%; text-align: left;"> 124 141 125 142 <!-- Visually Hidden Preheader Text : BEGIN --> … … 129 146 <!-- Visually Hidden Preheader Text : END --> 130 147 131 <div style="max-width: 600px; ">132 <!--[if (gte mso 9)|(IE)]>133 <table cellspacing="0" cellpadding="0" border="0" width="600" align="center">148 <div style="max-width: 600px; margin: auto;" class="email-container"> 149 <!--[if mso]> 150 <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="600" align="center"> 134 151 <tr> 135 152 <td> … … 137 154 138 155 <!-- Email Header : BEGIN --> 139 <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px; border-top: 7px solid <?php echo esc_attr( $settings['highlight_color'] ); ?>" bgcolor="<?php echo esc_attr( $settings['header_bg'] ); ?>" class="header_bg">156 <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px; border-top: 7px solid <?php echo esc_attr( $settings['highlight_color'] ); ?>" bgcolor="<?php echo esc_attr( $settings['header_bg'] ); ?>" class="header_bg"> 140 157 <tr> 141 158 <td style="text-align: center; padding: 15px 0; font-family: sans-serif; mso-height-rule: exactly; font-weight: bold; color: <?php echo esc_attr( $settings['header_text_color'] ); ?>; font-size: <?php echo esc_attr( $settings['header_text_size'] . 'px' ); ?>" class="header_text_color header_text_size"> … … 163 180 164 181 <!-- Email Body : BEGIN --> 165 <table cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="<?php echo esc_attr( $settings['body_bg'] ); ?>" width="100%" style="max-width: 600px; border-radius: 5px;" class="body_bg">182 <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="<?php echo esc_attr( $settings['body_bg'] ); ?>" width="100%" style="max-width: 600px; border-radius: 5px;" class="body_bg"> 166 183 167 184 <!-- 1 Column Text : BEGIN --> 168 185 <tr> 169 186 <td> 170 <table cellspacing="0" cellpadding="0" border="0" width="100%">187 <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> 171 188 <tr> 172 189 <td style="padding: 20px; font-family: sans-serif; mso-height-rule: exactly; line-height: <?php echo esc_attr( floor( $settings['body_text_size'] * 1.618 ) . 'px' ) ?>; color: <?php echo esc_attr( $settings['body_text_color'] ); ?>; font-size: <?php echo esc_attr( $settings['body_text_size'] . 'px' ); ?>" class="body_text_color body_text_size"> … … 186 203 <!-- Email Footer : BEGIN --> 187 204 <br> 188 <table cellspacing="0" cellpadding="0" border="0" align="left" width="100%" style="max-width: 600px; border-radius: 5px;" bgcolor="<?php echo esc_attr( $settings['footer_bg'] ); ?>" class="footer_bg">205 <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="left" width="100%" style="max-width: 600px; border-radius: 5px;" bgcolor="<?php echo esc_attr( $settings['footer_bg'] ); ?>" class="footer_bg"> 189 206 <tr> 190 207 <td style="padding: 20px; width: 100%; font-size: <?php echo esc_attr( $settings['footer_text_size'] . 'px' ); ?>; font-family: sans-serif; mso-height-rule: exactly; line-height: <?php echo esc_attr( floor( $settings['footer_text_size'] * 1.618 ) . 'px' ) ?>; text-align: left; color: <?php echo esc_attr( $settings['footer_text_color'] ); ?>;" class="footer_text_color footer_text_size"> … … 215 232 <!-- Email Footer : END --> 216 233 217 <!--[if (gte mso 9)|(IE)]>234 <!--[if mso]> 218 235 </td> 219 236 </tr> -
trunk/src/bp-templates/bp-nouveau/buddypress/assets/emails/single-bp-email.php
r11784 r11785 20 20 The MIT License (MIT) 21 21 22 Copyright (c) 201 3Ted Goas22 Copyright (c) 2017 Ted Goas 23 23 24 24 Permission is hereby granted, free of charge, to any person obtaining a copy of … … 45 45 $settings = bp_email_get_appearance_settings(); 46 46 47 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">48 <html xmlns="http://www.w3.org/1999/xhtml">47 ?><!DOCTYPE html> 48 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> 49 49 <head> 50 50 <meta charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>"> 51 51 <meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary --> 52 52 <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine --> 53 <meta name="x-apple-disable-message-reformatting"> <!-- Disable auto-scale in iOS 10 Mail entirely --> 54 <title></title> <!-- The title tag shows in email notifications, like Android 4.4. --> 53 55 54 56 <!-- CSS Reset --> … … 70 72 } 71 73 72 /* What it does: Forces Outlook.com to display emails full width. */73 .ExternalClass {74 width: 100%;75 }76 77 74 /* What is does: Centers email on Android 4.4 */ 78 75 div[style*="margin: 16px 0"] { … … 106 103 } 107 104 108 /* What it does: Overrides styles added when Yahoo's auto-senses a link. */109 .yshortcuts a {110 border-bottom: none !important;111 }112 113 /* What it does: A work-around for iOS meddling in triggered links. */114 a[x-apple-data-detectors] {105 /* What it does: A work-around for email clients meddling in triggered links. */ 106 *[x-apple-data-detectors], /* iOS */ 107 .x-gmail-data-detectors, /* Gmail */ 108 .x-gmail-data-detectors *, 109 .aBn { 110 border-bottom: 0 !important; 111 cursor: default !important; 115 112 color: inherit !important; 116 text-decoration: underline !important; 113 text-decoration: none !important; 114 font-size: inherit !important; 115 font-family: inherit !important; 116 font-weight: inherit !important; 117 line-height: inherit !important; 118 } 119 120 /* What it does: Prevents Gmail from displaying an download button on large, non-linked images. */ 121 .a6S { 122 display: none !important; 123 opacity: 0.01 !important; 124 } 125 126 /* If the above doesn't work, add a .g-img class to any image in question. */ 127 img.g-img + div { 128 display: none !important; 129 } 130 131 /* What it does: Prevents underlining the button text in Windows 10 */ 132 .button-link { 133 text-decoration: none !important; 117 134 } 118 135 </style> 119 136 120 137 </head> 121 <body class="email_bg" width="100%" height="100%" bgcolor="<?php echo esc_attr( $settings['email_bg'] ); ?>" style="Margin: 0;">138 <body class="email_bg" width="100%" bgcolor="<?php echo esc_attr( $settings['email_bg'] ); ?>" style="margin: 0; mso-line-height-rule: exactly;"> 122 139 <table cellpadding="0" cellspacing="0" border="0" height="100%" width="100%" bgcolor="<?php echo esc_attr( $settings['email_bg'] ); ?>" style="border-collapse:collapse;" class="email_bg"><tr><td valign="top"> 123 <center style="width: 100%; ">140 <center style="width: 100%; text-align: left;"> 124 141 125 142 <!-- Visually Hidden Preheader Text : BEGIN --> … … 129 146 <!-- Visually Hidden Preheader Text : END --> 130 147 131 <div style="max-width: 600px; ">132 <!--[if (gte mso 9)|(IE)]>133 <table cellspacing="0" cellpadding="0" border="0" width="600" align="center">148 <div style="max-width: 600px; margin: auto;" class="email-container"> 149 <!--[if mso]> 150 <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="600" align="center"> 134 151 <tr> 135 152 <td> … … 137 154 138 155 <!-- Email Header : BEGIN --> 139 <table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px; border-top: 7px solid <?php echo esc_attr( $settings['highlight_color'] ); ?>" bgcolor="<?php echo esc_attr( $settings['header_bg'] ); ?>" class="header_bg">156 <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px; border-top: 7px solid <?php echo esc_attr( $settings['highlight_color'] ); ?>" bgcolor="<?php echo esc_attr( $settings['header_bg'] ); ?>" class="header_bg"> 140 157 <tr> 141 158 <td style="text-align: center; padding: 15px 0; font-family: sans-serif; mso-height-rule: exactly; font-weight: bold; color: <?php echo esc_attr( $settings['header_text_color'] ); ?>; font-size: <?php echo esc_attr( $settings['header_text_size'] . 'px' ); ?>" class="header_text_color header_text_size"> … … 163 180 164 181 <!-- Email Body : BEGIN --> 165 <table cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="<?php echo esc_attr( $settings['body_bg'] ); ?>" width="100%" style="max-width: 600px; border-radius: 5px;" class="body_bg">182 <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" bgcolor="<?php echo esc_attr( $settings['body_bg'] ); ?>" width="100%" style="max-width: 600px; border-radius: 5px;" class="body_bg"> 166 183 167 184 <!-- 1 Column Text : BEGIN --> 168 185 <tr> 169 186 <td> 170 <table cellspacing="0" cellpadding="0" border="0" width="100%">187 <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%"> 171 188 <tr> 172 189 <td style="padding: 20px; font-family: sans-serif; mso-height-rule: exactly; line-height: <?php echo esc_attr( floor( $settings['body_text_size'] * 1.618 ) . 'px' ) ?>; color: <?php echo esc_attr( $settings['body_text_color'] ); ?>; font-size: <?php echo esc_attr( $settings['body_text_size'] . 'px' ); ?>" class="body_text_color body_text_size"> … … 186 203 <!-- Email Footer : BEGIN --> 187 204 <br> 188 <table cellspacing="0" cellpadding="0" border="0" align="left" width="100%" style="max-width: 600px; border-radius: 5px;" bgcolor="<?php echo esc_attr( $settings['footer_bg'] ); ?>" class="footer_bg">205 <table role="presentation" cellspacing="0" cellpadding="0" border="0" align="left" width="100%" style="max-width: 600px; border-radius: 5px;" bgcolor="<?php echo esc_attr( $settings['footer_bg'] ); ?>" class="footer_bg"> 189 206 <tr> 190 207 <td style="padding: 20px; width: 100%; font-size: <?php echo esc_attr( $settings['footer_text_size'] . 'px' ); ?>; font-family: sans-serif; mso-height-rule: exactly; line-height: <?php echo esc_attr( floor( $settings['footer_text_size'] * 1.618 ) . 'px' ) ?>; text-align: left; color: <?php echo esc_attr( $settings['footer_text_color'] ); ?>;" class="footer_text_color footer_text_size"> … … 215 232 <!-- Email Footer : END --> 216 233 217 <!--[if (gte mso 9)|(IE)]>234 <!--[if mso]> 218 235 </td> 219 236 </tr>
Note: See TracChangeset
for help on using the changeset viewer.