File: //opt/cpguard/app/resources/email_templates/cms_update.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,900" rel="stylesheet" />
<title>{{ title }}</title>
</head>
<body
style="font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;">
<div style="font-size: 1px; display: none !important;">{{ list|length }} WordPress automatically updated to
address security vulnerability</div>
<table
style="font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; background-color: #ffffff; padding-top: 20px;color: #434245;width: 100%; border: 0; text-align: center; border-collapse: collapse;">
<tr>
<td style="vertical-align: top; padding: 0;padding-top: 32px">
<table id="body"
style="max-width: 546px; margin: 0 auto; border: 0; border-collapse: collapse; margin: 0 auto; background: white; border-radius: 8px; margin-bottom: 16px;">
<tr>
<td style="width: 100%; vertical-align: top; padding-top: 18px;">
<table style="width:100%;border-collapse: collapse;">
<tr>
<td style="vertical-align: top; text-align: left;">
<a href="https://www.opsshield.com">
<img height="48"
style="margin-top: 0; margin-right: 0; margin-bottom: 32px; margin-left: -2px;"
src="https://opsshield.com/assets/img/logo_color.png"
alt="cPGuard logo" />
</a>
</td>
<td style="vertical-align: top; text-align: right;padding-top: 7px;">
<a style="font-size:16px;margin-top: 15px;color:#c9c9c9"></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 100%; vertical-align: top;text-align:left; ">
<h1
style="color: #FF822D;;font-size: 36px; line-height: 46px; letter-spacing: -.25px; margin-bottom: 28px; text-align: left; word-break: break-word;">
🔔 {{ list|length }} WordPress {{ list|length > 1 ? 'have' : 'has' }} been
automatically patched
</h1>
{% if list|length > 0 %}
<p
style="font-size: 20px; line-height: 28px; letter-spacing: -0.2px; word-break: break-word;">
{{ list|length }} WordPress installation under the account <strong>{{ user }}</strong>
has been automatically updated and secured based on the settings configured by your
server administrator.
</p>
<p
style="font-size: 20px; line-height: 28px; letter-spacing: -0.2px; word-break: break-word;">
These actions were taken to enhance security, address vulnerabilities, and improve
stability for your website.
</p>
<p
style="border-bottom: solid 1px #e6e6e6;padding-bottom:15px;margin-bottom:5px;font-size: 20px;font-weight: 500;">
Here are the details
</p>
<table style="width:100%;font-size:14px;border-collapse: collapse;">
{% set themes_list = '-' %}
{% set plugins_list = '-' %}
{% for cms_id, data in list %}
<tr>
<td
style="border-bottom:solid 1px #e6e6e6;padding:10px 0;line-height: 1.4;vertical-align: top;width:30%;text-align: left;font-size:18px;font-weight:600;">
<img src="https://opsshield.com/assets/mail/{{ data.cms.type }}-icon.png"
width="18" style="padding-top:2px;margin-right:3px;" />
{{ data.cms.domain|e }}<br />
<small style="color:#949494;">{{ data.cms.path|e }}</small>
</td>
<td
style="padding:10px 0;text-align: right;vertical-align: top;font-weight:450;line-height: 1.7;">
{% if data.core_updated %}
<span
style="background-color: yellow; color:#000; font-weight:500; font-size:14px; padding:3px 6px; border-radius:5px;text-align: right;">
Core Updated
</span><br />
{{ data.cms.version|e }} → {{ data.core_updated|e }}
{% else %}
{{ data.cms.version|e }}
{% endif %}
</td>
</tr>
{% if data.plugins_disabled is not empty or data.components_updated is not empty %}
<tr>
<td colspan="2" style="padding:0;">
<table
style="width: 100%; border-collapse: collapse; font-family: Arial, sans-serif;border-radius:10px;">
<tr>
<th
style="border: 1px solid #f3eeee;border-right: none; padding: 8px; text-align: left; background-color: #f0f0f0;">
Component</th>
<th
style="border: 1px solid #f3eeee; padding: 8px; text-align: left; background-color: #f0f0f0;">
Action Taken</th>
</tr>
{% if data.plugins_disabled is not empty %}
{% for component in data.plugins_disabled %}
<tr>
<td style="border: 1px solid #f3eeee;border-right: none;padding: 8px;">
<img src="https://opsshield.com/assets/mail/plugin.png" width="13"
style="margin-right: 5px;" /> {{
component.name }}
</td>
<td style="border: 1px solid #f3eeee; padding: 8px;"><strong
style="color: red;">Disabled</strong> (Blacklisted by Admin)
</td>
</tr>
{% endfor %}
{% endif %}
{% if data.components_updated is not empty %}
{% for component in data.components_updated %}
<tr>
<td style="border: 1px solid #f3eeee;border-right: none;padding: 8px;">
<img src="https://opsshield.com/assets/mail/{{ component.type }}.png"
width="13" style="margin-right: 5px;" />
{{ component.name }}
</td>
<td style="border: 1px solid #f3eeee; padding: 8px;"><strong
style="color: green;">Updated</strong> ({{ component.version }}
→ {{ component.latest_version }})</td>
</tr>
{% endfor %}
{% endif %}
</table>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% endif %}
<p
style="color:#949494;font-size: 12px; text-align: center; line-height: 28px; letter-spacing: -0.2px; word-break: break-word;margin-top:15px;">
Patch ran at {{ date|date("Y-m-d H:i:s") }}
</p>
<p
style="font-size: 20px; line-height: 28px; letter-spacing: -0.2px; word-break: break-word;">
Please check these and make sure your websites are working fine. You
can contact your server admin or raise a suppoprt ticket with your hosting provider
for more information.
</p>
</td>
</tr>
<tr>
<td style="width: 100%; vertical-align: top; padding-top: 35px;text-align:left; ">
<div>
<h3 style="color:#686669;">🖐 Why this email?</h3>
<p
style="font-size: 16px; line-height: 24px; letter-spacing: -0.2px; word-break: break-word; color: #868488;">
You've received this email as your server (<a>{{ hostname }}</a>) is being
actively protected by cPGuard security.
cPGuard is a comprehensive security solution for web hosting servers designed to
protect servers from malware, vulnerabilities, and other potential threats.
</p>
</div>
<div>
<p
style="font-size: 16px; line-height: 24px; letter-spacing: -0.2px; word-break: break-word; color: #868488;">
<strong>Questions?</strong>
<a style='color: #616061;' href="https://opsshield.com/cpguard-features.html">learn
more</a> about cPGuard
</p>
</div>
</td>
</tr>
<tr>
<td style="width: 100%; padding-top:30px;">
<table style="width:100%;border-collapse: collapse;">
<tr>
<td style="width:50%;vertical-align: top; text-align: left;">
<a href="https://www.opsshield.com">
<img height="46" alt="cPGuard logo"
style="margin-top: 0; margin-right: 0; margin-bottom: 32px; margin-left: 0px;"
src="https://www.opsshield.com/assets/img/opsshield-logo.png" />
</a>
</td>
<td style="width:50%;vertical-align: top; text-align: right;padding-top: 7px;">
<a href="https://x.com/opsshieldllp" style="margin-left: 20px;">
<img height="27" width="27" title="Twitter" alt="X"
src="https://opsshield.com/assets/img/twitter.png" /></a>
<a href="https://www.facebook.com/opsshield" style="margin-left: 20px;">
<img height="32" width="32" title="Facebook" alt="fb"
src="https://opsshield.com/assets/img/facebook.png" /></a>
</td>
</tr>
<tr>
<td colspan="2">
<div
style="font-size:12px; opacity:0.5; color:#696969; text-align:left; line-height:15px; margin-bottom:50px; text-align: left;">
<a style="color: #696969 !important;"
href="https://www.opsshield.com/blog/">Our Blog</a>
|
<a style="color: #696969 !important;"
href="https://opsshield.com/privacy-policy.html">Privacy Policy</a>
|
<a style="color: #696969 !important;"
href="https://opsshield.com/help/">Help Center</a>
<br /><br />
<div>©{{ __year }} OPSSHIELD LLP www.opsshield.com
</div>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>