Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/templates/email/mailer.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * Manual email template.
4 + *
5 + * @since 2.5.0
6 + *
7 + * @package TutorPro\Addons
8 + * @subpackage Email\Views
9 + * @author Themeum
10 + */
11 +
12 + use TUTOR_EMAIL\ManualEmail;
13 +
14 + ?>
15 + <!DOCTYPE html>
16 + <html>
17 +
18 + <head>
19 + <meta http-equiv="Content-Type" content="text/html charset=UTF-8" />
20 + <?php
21 + $mailer_data = get_option( ManualEmail::OPTION_KEY );
22 + $email_template_colors = $mailer_data['email_template_colors'] ?? array();
23 + $action_button = $mailer_data['email_action_button'] ?? 'on';
24 + $button_label = $mailer_data['email_action_label'] ?? __( 'Get Started', 'tutor-pro' );
25 + $button_link = $mailer_data['email_action_link'] ?? '#';
26 + $button_position = $mailer_data['email_action_position'] ?? 'left';
27 + $email_footer = $mailer_data['email_footer'] ?? '';
28 +
29 + add_filter(
30 + 'tutor_email_template_colors',
31 + function( $colors ) use ( $email_template_colors ) {
32 + foreach ( $colors as $key => &$color ) {
33 + if ( isset( $email_template_colors[ $key ] ) ) {
34 + $color['value'] = $email_template_colors[ $key ];
35 + }
36 + }
37 + return $colors;
38 + }
39 + );
40 +
41 + require TUTOR()->path . 'templates/email/email_styles.php';
42 + ?>
43 + </head>
44 +
45 + <body>
46 + <div class="tutor-email-body">
47 + <div class="tutor-email-wrapper" style="background-color: #fff;">
48 +
49 + <?php require TUTOR_PRO()->path . 'templates/email/email_header.php'; ?>
50 +
51 + <div class="tutor-email-content">
52 + <table>
53 + <tr>
54 + <td>
55 + <h2 class="tutor-email-heading" data-source="email_heading">{email_heading}</h2>
56 + <br>
57 + <div data-source="email_body">{email_body}</div>
58 + <br>
59 + <div
60 + class="tutor-email-buttons"
61 + style="<?php echo 'off' === $action_button ? 'display:none' : 'text-align:' . esc_attr( $button_position ); ?>"
62 + >
63 + <a href="<?php echo esc_url( $button_link ); ?>" class="tutor-email-button" data-source="email_action_label"><?php echo esc_html( $button_label ); ?></a>
64 + </div>
65 + </td>
66 + </tr>
67 + </table>
68 + </div>
69 +
70 + <div class="tutor-email-footer" style="<?php echo empty( $email_footer ) ? 'display:none;' : ''; ?>">
71 + <table>
72 + <tr>
73 + <td>
74 + <div class="tutor-email-footer-text" data-source="email_footer">
75 + {footer_text}
76 + </div>
77 + </td>
78 + </tr>
79 + </table>
80 + </div>
81 + </div>
82 + </div>
83 + </body>
84 + </html>
85 +