CustomizerTrait.php
5 years ago
DefaultTemplateCustomizer.php
3 years ago
EmailSettingsPage.php
1 year ago
WPListTable.php
4 years ago
email-template-preview.php
5 years ago
email-template-preview.php
19 lines
| 1 | <?php |
| 2 | |
| 3 | use ProfilePress\Core\Classes\SendEmail; |
| 4 | |
| 5 | $message = <<<MESSAGE |
| 6 | <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> |
| 7 | <p>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> |
| 8 | <p>Contrary to popular belief, Lorem Ipsum is not simply random text.</p> |
| 9 | MESSAGE; |
| 10 | |
| 11 | $subject = esc_html__('ProfilePress Email Template', 'wp-user-avatar'); |
| 12 | echo (new SendEmail('', $subject, $message))->templatified_email(); |
| 13 | |
| 14 | // this is not in AbstractTemplate as in AbstractOptinForm so it doesn't get templatified/emogrified along with the email template |
| 15 | // on customizer preview. |
| 16 | // hide any element that might have been injected to footer by any plugin. |
| 17 | echo '<div style="display:none">'; |
| 18 | wp_footer(); |
| 19 | echo '</div>'; |