333 lines
14 KiB
PHP
333 lines
14 KiB
PHP
<?php
|
|
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
|
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables are injected by the caller via extract() or direct scope.
|
|
?>
|
|
<!doctype html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
|
|
<head>
|
|
<title>
|
|
</title>
|
|
<!--[if !mso]><!-->
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<!--<![endif]-->
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style type="text/css">
|
|
#outlook a {
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
-webkit-text-size-adjust: 100%;
|
|
-ms-text-size-adjust: 100%;
|
|
}
|
|
|
|
table,
|
|
td {
|
|
border-collapse: collapse;
|
|
mso-table-lspace: 0pt;
|
|
mso-table-rspace: 0pt;
|
|
}
|
|
|
|
img {
|
|
border: 0;
|
|
height: auto;
|
|
line-height: 100%;
|
|
outline: none;
|
|
text-decoration: none;
|
|
-ms-interpolation-mode: bicubic;
|
|
}
|
|
|
|
p {
|
|
display: block;
|
|
margin: 13px 0;
|
|
}
|
|
|
|
</style>
|
|
<!--[if mso]>
|
|
<noscript>
|
|
<xml>
|
|
<o:OfficeDocumentSettings>
|
|
<o:AllowPNG/>
|
|
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
</o:OfficeDocumentSettings>
|
|
</xml>
|
|
</noscript>
|
|
<![endif]-->
|
|
<!--[if lte mso 11]>
|
|
<style type="text/css">
|
|
.mj-outlook-group-fix { width:100% !important; }
|
|
</style>
|
|
<![endif]-->
|
|
<style type="text/css">
|
|
@media only screen and (min-width:480px) {
|
|
.mj-column-per-100 {
|
|
width: 100% !important;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
<style media="screen and (min-width:480px)">
|
|
.moz-text-html .mj-column-per-100 {
|
|
width: 100% !important;
|
|
max-width: 100%;
|
|
}
|
|
|
|
</style>
|
|
<style type="text/css">
|
|
@media only screen and (max-width:480px) {
|
|
table.mj-full-width-mobile {
|
|
width: 100% !important;
|
|
}
|
|
|
|
td.mj-full-width-mobile {
|
|
width: auto !important;
|
|
}
|
|
}
|
|
|
|
</style>
|
|
<style type="text/css">
|
|
.answer div,
|
|
.notification-intro div {
|
|
line-height: 20px !important;
|
|
color: #676767 !important;
|
|
}
|
|
|
|
.notification-intro {
|
|
padding: 20px 40px 20px !important;
|
|
}
|
|
|
|
.notification-intro div a {
|
|
color: #676767;
|
|
}
|
|
|
|
.notification-intro__content {
|
|
border-bottom: 1px solid #efefef;
|
|
padding: 0 0 30px;
|
|
}
|
|
|
|
.answer {
|
|
padding: 0 40px 30px !important;
|
|
}
|
|
|
|
.answer__content {
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.answer a {
|
|
color: #2D87F1;
|
|
}
|
|
|
|
.answer:not(:last-child) .answer__content {
|
|
border-bottom: 1px solid #efefef;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body style="word-spacing:normal;background-color:#F6F7F8;">
|
|
<div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;"> <?php echo esc_html( $preview_title ); ?> </div>
|
|
<div style="background-color:#F6F7F8;">
|
|
<!-- Header Start -->
|
|
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
<div style="margin:0px auto;max-width:600px;">
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="direction:ltr;font-size:0px;padding:20px 0;padding-bottom:30px;padding-top:50px;text-align:center;">
|
|
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
|
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
<tbody>
|
|
<?php
|
|
if ( ! empty( $header_image ) ) :
|
|
?>
|
|
<?php
|
|
if ( ! empty( $header_image['2x'] ) ) :
|
|
?>
|
|
<tr>
|
|
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="width:180px;">
|
|
<a href="<?php echo esc_url( get_site_url() ); ?>" target="_blank">
|
|
<img alt="<?php echo esc_attr__( 'UserFeedback Summary', 'userfeedback-lite' ); ?>" height="auto" src="<?php echo esc_url( $header_image['url'] ); ?>" srcset="<?php echo esc_url( $header_image['2x'] ) . ' 2x'; ?>" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="180">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
else :
|
|
?>
|
|
<tr>
|
|
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="width:180px;">
|
|
<a href="<?php echo esc_url( get_site_url() ); ?>" target="_blank">
|
|
<img alt="<?php echo esc_attr__( 'UserFeedback Summary', 'userfeedback-lite' ); ?>" height="auto" src="<?php echo esc_url( $header_image['url'] ); ?>" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="180">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr> <?php endif; ?> <?php endif; ?> </tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
<!-- Header End --><!-- Body Start -->
|
|
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="main-card-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
<div class="main-card" style="margin:0px auto;max-width:600px;">
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="direction:ltr;font-size:0px;padding:20px;text-align:center;">
|
|
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="notification-intro-outlook" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="notification-intro-outlook" role="presentation" style="width:560px;" width="560" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
<div class="notification-intro" style="background-color: #fff; margin: 0px auto; max-width: 560px; color: #676767; font-size: 14px;">
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="direction:ltr;font-size:0px;padding:0;text-align:center;">
|
|
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="notification-intro__content-outlook" style="vertical-align:top;width:560px;" ><![endif]-->
|
|
<div class="mj-column-per-100 mj-outlook-group-fix notification-intro__content" style="background-color: #fff; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #676767; font-size: 14px;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td align="left" style="font-size:0px;padding:10px 25px;padding-right:0;padding-bottom:10px;padding-left:0;word-break:break-word;">
|
|
<div style="background-color: #fff; font-family: Helvetica,Arial,sans-serif; line-height: 1; text-align: left; color: #676767; font-size: 14px;"><?php echo esc_html( $title ); ?></div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" style="font-size:0px;padding:10px 25px;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
|
|
<div style="background-color: #fff; font-family: Helvetica,Arial,sans-serif; line-height: 1; text-align: left; color: #676767; font-size: 14px;"><?php echo esc_html($description); ?></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table></td></tr><![endif]-->
|
|
<?php
|
|
foreach ( $answers as $answer ) :
|
|
?>
|
|
<!--[if mso | IE]><tr><td class="answer-outlook" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="answer-outlook" role="presentation" style="width:560px;" width="560" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
<div class="answer" style="background-color: #fff; margin: 0px auto; max-width: 560px; color: #676767; font-size: 14px;">
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="direction:ltr;font-size:0px;padding:0;text-align:center;">
|
|
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="answer__content-outlook" style="vertical-align:top;width:560px;" ><![endif]-->
|
|
<div class="mj-column-per-100 mj-outlook-group-fix answer__content" style="background-color: #fff; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #676767; font-size: 14px;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td align="left" class="title" style="font-weight: bold; margin: 0; font-size: 0px; padding: 10px 25px; padding-right: 0; padding-left: 0; word-break: break-word; color: #4e4e4e; padding-bottom: 0;">
|
|
<div style="background-color: #fff; font-weight: bold; margin: 0; font-family: Helvetica,Arial,sans-serif; line-height: 1; text-align: left; font-size: 14px; color: #4e4e4e; padding-bottom: 0;"><?php echo esc_html( $answer['question_title'] ); ?></div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" style="font-size:0px;padding:10px 25px;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
|
|
<div style="background-color: #fff; font-family: Helvetica,Arial,sans-serif; line-height: 1; text-align: left; color: #676767; font-size: 14px;"><?php echo esc_html( $answer['value'] ); ?></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table></td></tr><![endif]--> <?php endforeach; ?> <!--[if mso | IE]></table><![endif]-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
<!-- Body End --><!-- Footer Start -->
|
|
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="footer-from-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
<div class="footer-from" style="margin:0px auto;max-width:600px;">
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="direction:ltr;font-size:0px;padding:0px 40px 0;text-align:center;">
|
|
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:520px;" ><![endif]-->
|
|
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #989898;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td style="vertical-align:top;padding:0;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td align="center" style="font-size:0px;padding:0;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
|
|
<div style="font-family: Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1; text-align: center; color: #989898;"><?php echo esc_html__( 'Sent from ', 'userfeedback-lite' ); ?> <a style="color: #989898" target="_blank" href="<?php echo esc_url( get_site_url() ); ?>"><?php echo esc_url( get_site_url() ); ?></a></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="footer-content-outlook" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
<div class="footer-content" style="margin:0px auto;max-width:600px;">
|
|
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="direction:ltr;font-size:0px;padding:0px 40px 24px;text-align:center;">
|
|
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:520px;" ><![endif]-->
|
|
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size: 0px; text-align: left; direction: ltr; display: inline-block; vertical-align: top; width: 100%; color: #989898;">
|
|
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
<tbody>
|
|
<tr>
|
|
<td align="center" style="font-size:0px;padding:10px 25px;padding-right:0;padding-bottom:0;padding-left:0;word-break:break-word;">
|
|
<div style="font-family: Helvetica,Arial,sans-serif; font-size: 13px; line-height: 1; text-align: center; color: #989898;"><a target="_blank" href="<?php echo esc_url( $settings_tab_url ); ?>" style="font-size: 12px; line-height: 24px; color: #2D87F1;">Want to change these notifications?</a>.</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
<!-- Footer End -->
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|